summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dnf
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-06-22 13:21:12 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-06-26 11:27:16 +0100
commite5cdf655b8dbfbf52b37ac14e39146bda0b35b35 (patch)
tree535777d62ed236f570918f4a35c56ce49d127a5c /meta/recipes-devtools/dnf
parent8897e63ab9688c1b00a12d545faa20ae7d892696 (diff)
downloadpoky-e5cdf655b8dbfbf52b37ac14e39146bda0b35b35.tar.gz
dnf: updatee 4.7.0 -> 4.8.0
Remove patches merged upstream. (From OE-Core rev: f647f368899c88b64d9feffb8d1cde7c3f96bdaa) (From OE-Core rev: cd66d0c0b08f2e5a64a67f257350456f0f2cbc02) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/dnf')
-rw-r--r--meta/recipes-devtools/dnf/dnf/0001-dnf-rpm-miscutils.py-fix-usage-of-_.patch39
-rw-r--r--meta/recipes-devtools/dnf/dnf/0002-dnf-rpm-miscutils.py-do-not-hardcode-usr-bin-rpmkeys.patch37
-rw-r--r--meta/recipes-devtools/dnf/dnf/0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch8
-rw-r--r--meta/recipes-devtools/dnf/dnf_4.8.0.bb (renamed from meta/recipes-devtools/dnf/dnf_4.7.0.bb)4
4 files changed, 5 insertions, 83 deletions
diff --git a/meta/recipes-devtools/dnf/dnf/0001-dnf-rpm-miscutils.py-fix-usage-of-_.patch b/meta/recipes-devtools/dnf/dnf/0001-dnf-rpm-miscutils.py-fix-usage-of-_.patch
deleted file mode 100644
index 99afe09840..0000000000
--- a/meta/recipes-devtools/dnf/dnf/0001-dnf-rpm-miscutils.py-fix-usage-of-_.patch
+++ /dev/null
@@ -1,39 +0,0 @@
1From 2729c00f0060beab8537a9bebc796b170949093d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 4 May 2021 22:03:30 +0200
4Subject: [PATCH 1/2] dnf/rpm/miscutils.py: fix usage of _()
5
6Specifically:
7- an import of _ was missing
8- _ was reused for a different purpose
9
10Upstream-Status: Submitted [https://github.com/rpm-software-management/dnf/pull/1762]
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12---
13 dnf/rpm/miscutils.py | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16diff --git a/dnf/rpm/miscutils.py b/dnf/rpm/miscutils.py
17index 235aaf28f..7e33d4c42 100644
18--- a/dnf/rpm/miscutils.py
19+++ b/dnf/rpm/miscutils.py
20@@ -22,6 +22,7 @@ import subprocess
21 import logging
22
23 from dnf.i18n import ucd
24+from dnf.i18n import _
25 from shutil import which
26
27
28@@ -46,7 +47,7 @@ def _verifyPkgUsingRpmkeys(package, installroot):
29 env={'LC_ALL': 'C'},
30 stdout=subprocess.PIPE,
31 cwd='/') as p:
32- data, _ = p.communicate()
33+ data, err = p.communicate()
34 if p.returncode != 0 or data != (package.encode('ascii', 'strict') + b': digests signatures OK\n'):
35 return 0
36 else:
37--
382.31.1
39
diff --git a/meta/recipes-devtools/dnf/dnf/0002-dnf-rpm-miscutils.py-do-not-hardcode-usr-bin-rpmkeys.patch b/meta/recipes-devtools/dnf/dnf/0002-dnf-rpm-miscutils.py-do-not-hardcode-usr-bin-rpmkeys.patch
deleted file mode 100644
index b4c9e074d6..0000000000
--- a/meta/recipes-devtools/dnf/dnf/0002-dnf-rpm-miscutils.py-do-not-hardcode-usr-bin-rpmkeys.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From dc14022a99dc017c52c484efb32729729baf854c Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Tue, 4 May 2021 22:07:32 +0200
4Subject: [PATCH 2/2] dnf/rpm/miscutils.py: do not hardcode /usr/bin/rpmkeys
5
6Some build systems (e.g. Yocto) place a specially configured
7rpmkeys executable elsewhere and set up PATH accordingly;
8it's better to always take it from there.
9
10Upstream-Status: Submitted [https://github.com/rpm-software-management/dnf/pull/1763]
11Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
12---
13 dnf/rpm/miscutils.py | 8 +++-----
14 1 file changed, 3 insertions(+), 5 deletions(-)
15
16diff --git a/dnf/rpm/miscutils.py b/dnf/rpm/miscutils.py
17index 7e33d4c42..fcd956db9 100644
18--- a/dnf/rpm/miscutils.py
19+++ b/dnf/rpm/miscutils.py
20@@ -30,11 +30,9 @@ logger = logging.getLogger('dnf')
21
22
23 def _verifyPkgUsingRpmkeys(package, installroot):
24- rpmkeys_binary = '/usr/bin/rpmkeys'
25- if not os.path.isfile(rpmkeys_binary):
26- rpmkeys_binary = which("rpmkeys")
27- logger.info(_('Using rpmkeys executable from {path} to verify signature for package: {package}.').format(
28- path=rpmkeys_binary, package=package))
29+ rpmkeys_binary = which("rpmkeys")
30+ logger.info(_('Using rpmkeys executable from {path} to verify signature for package: {package}.').format(
31+ path=rpmkeys_binary, package=package))
32
33 if not os.path.isfile(rpmkeys_binary):
34 logger.critical(_('Cannot find rpmkeys executable to verify signatures.'))
35--
362.31.1
37
diff --git a/meta/recipes-devtools/dnf/dnf/0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch b/meta/recipes-devtools/dnf/dnf/0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch
index 0ed9afc58d..5cffc9dce1 100644
--- a/meta/recipes-devtools/dnf/dnf/0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch
+++ b/meta/recipes-devtools/dnf/dnf/0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch
@@ -1,4 +1,4 @@
1From 6be13143a54c79085d400d5bd4c7a6e1cb6ffaf5 Mon Sep 17 00:00:00 2001 1From ceb1043c4f3de095e36908232320b74a4128a94e Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 30 Dec 2016 18:29:07 +0200 3Date: Fri, 30 Dec 2016 18:29:07 +0200
4Subject: [PATCH] Do not set PYTHON_INSTALL_DIR by running python 4Subject: [PATCH] Do not set PYTHON_INSTALL_DIR by running python
@@ -11,15 +11,15 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
11 1 file changed, 1 insertion(+), 1 deletion(-) 11 1 file changed, 1 insertion(+), 1 deletion(-)
12 12
13diff --git a/CMakeLists.txt b/CMakeLists.txt 13diff --git a/CMakeLists.txt b/CMakeLists.txt
14index 38cf4fbf..6c5debd8 100644 14index 9e2e9e9e..2056089d 100644
15--- a/CMakeLists.txt 15--- a/CMakeLists.txt
16+++ b/CMakeLists.txt 16+++ b/CMakeLists.txt
17@@ -19,7 +19,7 @@ ELSE () 17@@ -19,7 +19,7 @@ ELSE ()
18 MESSAGE (FATAL_ERROR "Invalid PYTHON_DESIRED value: " ${PYTHON_DESIRED}) 18 MESSAGE (FATAL_ERROR "Invalid PYTHON_DESIRED value: " ${PYTHON_DESIRED})
19 ENDIF() 19 ENDIF()
20 20
21-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib())" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) 21-EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('purelib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
22+#EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib())" OUTPUT_VARIABLE PYTHON_INSTALL_DIR) 22+#EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('purelib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
23 MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}") 23 MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}")
24 24
25 ADD_SUBDIRECTORY (dnf) 25 ADD_SUBDIRECTORY (dnf)
diff --git a/meta/recipes-devtools/dnf/dnf_4.7.0.bb b/meta/recipes-devtools/dnf/dnf_4.8.0.bb
index 7314eaf7b8..44c4405939 100644
--- a/meta/recipes-devtools/dnf/dnf_4.7.0.bb
+++ b/meta/recipes-devtools/dnf/dnf_4.8.0.bb
@@ -16,11 +16,9 @@ SRC_URI = "git://github.com/rpm-software-management/dnf.git \
16 file://0030-Run-python-scripts-using-env.patch \ 16 file://0030-Run-python-scripts-using-env.patch \
17 file://0001-set-python-path-for-completion_helper.patch \ 17 file://0001-set-python-path-for-completion_helper.patch \
18 file://0001-dnf-write-the-log-lock-to-root.patch \ 18 file://0001-dnf-write-the-log-lock-to-root.patch \
19 file://0001-dnf-rpm-miscutils.py-fix-usage-of-_.patch \
20 file://0002-dnf-rpm-miscutils.py-do-not-hardcode-usr-bin-rpmkeys.patch \
21 " 19 "
22 20
23SRCREV = "395541fbf8f87f81cdca7567f22be1182e55bea7" 21SRCREV = "e7b29753dce94769d30f92e671f55863985d24f0"
24UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" 22UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
25 23
26S = "${WORKDIR}/git" 24S = "${WORKDIR}/git"