From: wangmy@fujitsu.com
To: openembedded-devel@lists.openembedded.org
Cc: Wang Mingyu <wangmy@fujitsu.com>
Subject: [PATCH] libdnf: upgrade 0.73.4 -> 0.74.0
Date: Mon, 31 Mar 2025 17:11:22 +0800 [thread overview]
Message-ID: <1743412308-21887-3-git-send-email-wangmy@fujitsu.com> (raw)
In-Reply-To: <1743412308-21887-1-git-send-email-wangmy@fujitsu.com>
From: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
...n-iterator-of-a-ConfigParser-section.patch | 84 -------------------
.../libdnf/enable_test_data_dir_set.patch | 13 +--
.../{libdnf_0.73.4.bb => libdnf_0.74.0.bb} | 3 +-
3 files changed, 9 insertions(+), 91 deletions(-)
delete mode 100644 meta/recipes-devtools/libdnf/libdnf/0001-Fix-a-segfault-in-iterator-of-a-ConfigParser-section.patch
rename meta/recipes-devtools/libdnf/{libdnf_0.73.4.bb => libdnf_0.74.0.bb} (93%)
diff --git a/meta/recipes-devtools/libdnf/libdnf/0001-Fix-a-segfault-in-iterator-of-a-ConfigParser-section.patch b/meta/recipes-devtools/libdnf/libdnf/0001-Fix-a-segfault-in-iterator-of-a-ConfigParser-section.patch
deleted file mode 100644
index 1c62d02455..0000000000
--- a/meta/recipes-devtools/libdnf/libdnf/0001-Fix-a-segfault-in-iterator-of-a-ConfigParser-section.patch
+++ /dev/null
@@ -1,84 +0,0 @@
-From f3302a865b230e021e9defbcea978ed1290a9b2f Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
-Date: Fri, 6 Dec 2024 18:01:16 +0100
-Subject: [PATCH] Fix a segfault in iterator of a ConfigParser section
-
-An iterator should return self on __iter__.
-
-So that this works:
-
- >>> it1 = iter(sectObj)
- >>> it2 = iter(it1)
- >>> it1 is it2
- True
-
-Previously, this iterator did not return self on __iter__, it was like this:
-
- class PreserveOrderMapStringStringIterator(object):
- ...
- def __iter__(self):
- return _common_types.PreserveOrderMapStringStringIterator___iter__(self)
-
-And that returned a new Python object.
-
-This fixes https://bugzilla.redhat.com/2330562 by avoiding a second iterator object.
-
-My SWIG skills are close to zero,
-perhaps this is not the best way to return self, but it seems to work.
-
-Upstream-Status: Backport
-(https://github.com/rpm-software-management/libdnf/commit/f3302a865b)
-
-Backport so that it works properly with Python 3.13.1.
-
-Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
-
----
- bindings/swig/common_types.i | 11 +++++++----
- bindings/swig/conf.i | 4 ----
- 2 files changed, 7 insertions(+), 8 deletions(-)
-
-diff --git a/bindings/swig/common_types.i b/bindings/swig/common_types.i
-index c9ae798a..a1f90d9e 100644
---- a/bindings/swig/common_types.i
-+++ b/bindings/swig/common_types.i
-@@ -63,10 +63,6 @@ template<class T>
- class Iterator {
- public:
- Iterator(typename T::iterator _cur, typename T::iterator _end) : cur(_cur), end(_end) {}
-- Iterator* __iter__()
-- {
-- return this;
-- }
-
- typename T::iterator cur;
- typename T::iterator end;
-@@ -165,3 +161,10 @@ EXTEND_TEMPLATE_PreserveOrderMapIterator(std::string, std::string)
- EXTEND_TEMPLATE_PreserveOrderMapIterator(std::string, libdnf::PreserveOrderMap<std::string, std::string>)
-
- %exception; // beware this resets all exception handlers if you import this file after defining any
-+
-+%pythoncode %{
-+def PreserveOrderMapStringStringIterator___iter__(self):
-+ return self
-+PreserveOrderMapStringStringIterator.__iter__ = PreserveOrderMapStringStringIterator___iter__
-+del PreserveOrderMapStringStringIterator___iter__
-+%}
-diff --git a/bindings/swig/conf.i b/bindings/swig/conf.i
-index b6a0ce88..2f77003f 100644
---- a/bindings/swig/conf.i
-+++ b/bindings/swig/conf.i
-@@ -71,10 +71,6 @@ template<class T>
- class Iterator {
- public:
- Iterator(typename T::iterator _cur, typename T::iterator _end) : cur(_cur), end(_end) {}
-- Iterator* __iter__()
-- {
-- return this;
-- }
-
- typename T::iterator cur;
- typename T::iterator end;
---
-2.39.5
-
diff --git a/meta/recipes-devtools/libdnf/libdnf/enable_test_data_dir_set.patch b/meta/recipes-devtools/libdnf/libdnf/enable_test_data_dir_set.patch
index 5620b51d4c..6fc05d9ff8 100644
--- a/meta/recipes-devtools/libdnf/libdnf/enable_test_data_dir_set.patch
+++ b/meta/recipes-devtools/libdnf/libdnf/enable_test_data_dir_set.patch
@@ -1,4 +1,4 @@
-From 05fff53c13fc5969e17f1e887b0b59bf0a088a6e Mon Sep 17 00:00:00 2001
+From 870f50ba4761317f2db018ac130a42087230dded Mon Sep 17 00:00:00 2001
From: Joe Slater <joe.slater@windriver.com>
Date: Wed, 22 Jul 2020 13:31:11 -0700
Subject: [PATCH] libdnf: allow reproducible binary builds
@@ -14,14 +14,14 @@ Signed-off-by: Joe Slater <joe.slater@windriver.com>
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 60c66e94..1459dfbf 100644
+index b1daacb..f461e54 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
-@@ -132,7 +132,12 @@ add_definitions(-DGETTEXT_DOMAIN=\\"libdnf\\")
- add_definitions(-DG_LOG_DOMAIN=\\"libdnf\\")
+@@ -131,7 +131,12 @@ add_definitions(-DGETTEXT_DOMAIN="libdnf")
+ add_definitions(-DG_LOG_DOMAIN="libdnf")
# tests
--add_definitions(-DTESTDATADIR=\\"${CMAKE_SOURCE_DIR}/data/tests\\")
+-add_definitions(-DTESTDATADIR="${CMAKE_SOURCE_DIR}/data/tests")
+if(NOT WITH_TESTS)
+ set(TEST_DATA_DIR "/notests")
+elseif(NOT DEFINED TEST_DATA_DIR)
@@ -31,3 +31,6 @@ index 60c66e94..1459dfbf 100644
# librhsm
if(ENABLE_RHSM_SUPPORT)
+--
+2.43.0
+
diff --git a/meta/recipes-devtools/libdnf/libdnf_0.73.4.bb b/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb
similarity index 93%
rename from meta/recipes-devtools/libdnf/libdnf_0.73.4.bb
rename to meta/recipes-devtools/libdnf/libdnf_0.74.0.bb
index 5b9e734e82..5a2d4d9364 100644
--- a/meta/recipes-devtools/libdnf/libdnf_0.73.4.bb
+++ b/meta/recipes-devtools/libdnf/libdnf_0.74.0.bb
@@ -11,10 +11,9 @@ SRC_URI = "git://github.com/rpm-software-management/libdnf;branch=dnf-4-master;p
file://enable_test_data_dir_set.patch \
file://0001-drop-FindPythonInstDir.cmake.patch \
file://armarch.patch \
- file://0001-Fix-a-segfault-in-iterator-of-a-ConfigParser-section.patch \
"
-SRCREV = "79ed383cd5a822e6d8d9d549835383f5c5106204"
+SRCREV = "91a0bf9aada36a722855051526f012e0b5ab1af9"
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>(?!4\.90)\d+(\.\d+)+)"
S = "${WORKDIR}/git"
--
2.43.0
next prev parent reply other threads:[~2025-03-31 9:12 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-31 9:11 [oe] [meta-oe] [PATCH 01/26] ctags: upgrade 6.1.20250316.0 -> 6.1.20250330.0 wangmy
2025-03-31 9:11 ` [OE-core] [PATCH V2] dnf: upgrade 4.22.0 -> 4.23.0 wangmy
2025-03-31 9:11 ` wangmy [this message]
2025-03-31 14:30 ` [oe] [PATCH] libdnf: upgrade 0.73.4 -> 0.74.0 Khem Raj
2025-03-31 9:11 ` [oe] [meta-python] [PATCH] protobuf: upgrade 5.29.4 -> 6.30.1 wangmy
2025-03-31 11:02 ` Gyorgy Sarvari
2025-03-31 9:11 ` [oe] [meta-oe] [PATCH 02/26] opencl-clhpp: upgrade 2024.05.08 -> 2024.10.24 wangmy
2025-03-31 22:00 ` Khem Raj
2025-03-31 9:11 ` [oe] [meta-oe] [PATCH 03/26] parallel: upgrade 20250222 -> 20250322 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 04/26] python3-alembic: upgrade 1.15.1 -> 1.15.2 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 05/26] python3-apiflask: upgrade 2.3.2 -> 2.4.0 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 06/26] python3-argcomplete: upgrade 3.6.0 -> 3.6.1 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 07/26] python3-cmake: upgrade 3.31.6 -> 4.0.0 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 08/26] python3-dbus-fast: upgrade 2.39.6 -> 2.43.0 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 09/26] python3-djangorestframework: upgrade 3.15.2 -> 3.16.0 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 10/26] python3-expandvars: upgrade 0.12.0 -> 1.0.0 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 11/26] python3-humanize: upgrade 4.12.1 -> 4.12.2 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 12/26] python3-icu: upgrade 2.14 -> 2.15 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 13/26] python3-inline-snapshot: upgrade 0.20.8 -> 0.21.1 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 14/26] python3-libusb1: upgrade 3.3.0 -> 3.3.1 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 15/26] python3-moteus: upgrade 0.3.76 -> 0.3.78 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 16/26] python3-nanobind: upgrade 2.5.0 -> 2.6.1 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 17/26] python3-prettytable: upgrade 3.15.1 -> 3.16.0 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 18/26] python3-propcache: upgrade 0.3.0 -> 0.3.1 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 19/26] python3-pyasn1-modules: upgrade 0.4.1 -> 0.4.2 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 20/26] python3-pycodestyle: upgrade 2.12.1 -> 2.13.0 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 21/26] python3-pyflakes: upgrade 3.2.0 -> 3.3.1 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 22/26] python3-pymisp: upgrade 2.5.8.1 -> 2.5.9 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 23/26] python3-sqlalchemy: upgrade 2.0.39 -> 2.0.40 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 24/26] python3-tox: upgrade 4.24.2 -> 4.25.0 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 25/26] python3-tzdata: upgrade 2025.1 -> 2025.2 wangmy
2025-03-31 9:11 ` [oe] [meta-python] [PATCH 26/26] python3-web3: upgrade 7.9.0 -> 7.10.0 wangmy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1743412308-21887-3-git-send-email-wangmy@fujitsu.com \
--to=wangmy@fujitsu.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.