diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-06-22 13:21:12 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-06-26 11:27:16 +0100 |
commit | e5cdf655b8dbfbf52b37ac14e39146bda0b35b35 (patch) | |
tree | 535777d62ed236f570918f4a35c56ce49d127a5c /meta/recipes-devtools/dnf | |
parent | 8897e63ab9688c1b00a12d545faa20ae7d892696 (diff) | |
download | poky-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-_.patch | 39 | ||||
-rw-r--r-- | meta/recipes-devtools/dnf/dnf/0002-dnf-rpm-miscutils.py-do-not-hardcode-usr-bin-rpmkeys.patch | 37 | ||||
-rw-r--r-- | meta/recipes-devtools/dnf/dnf/0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch | 8 | ||||
-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 @@ | |||
1 | From 2729c00f0060beab8537a9bebc796b170949093d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 4 May 2021 22:03:30 +0200 | ||
4 | Subject: [PATCH 1/2] dnf/rpm/miscutils.py: fix usage of _() | ||
5 | |||
6 | Specifically: | ||
7 | - an import of _ was missing | ||
8 | - _ was reused for a different purpose | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/rpm-software-management/dnf/pull/1762] | ||
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
12 | --- | ||
13 | dnf/rpm/miscutils.py | 3 ++- | ||
14 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/dnf/rpm/miscutils.py b/dnf/rpm/miscutils.py | ||
17 | index 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 | -- | ||
38 | 2.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 @@ | |||
1 | From dc14022a99dc017c52c484efb32729729baf854c Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 4 May 2021 22:07:32 +0200 | ||
4 | Subject: [PATCH 2/2] dnf/rpm/miscutils.py: do not hardcode /usr/bin/rpmkeys | ||
5 | |||
6 | Some build systems (e.g. Yocto) place a specially configured | ||
7 | rpmkeys executable elsewhere and set up PATH accordingly; | ||
8 | it's better to always take it from there. | ||
9 | |||
10 | Upstream-Status: Submitted [https://github.com/rpm-software-management/dnf/pull/1763] | ||
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
12 | --- | ||
13 | dnf/rpm/miscutils.py | 8 +++----- | ||
14 | 1 file changed, 3 insertions(+), 5 deletions(-) | ||
15 | |||
16 | diff --git a/dnf/rpm/miscutils.py b/dnf/rpm/miscutils.py | ||
17 | index 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 | -- | ||
36 | 2.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 @@ | |||
1 | From 6be13143a54c79085d400d5bd4c7a6e1cb6ffaf5 Mon Sep 17 00:00:00 2001 | 1 | From ceb1043c4f3de095e36908232320b74a4128a94e Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Fri, 30 Dec 2016 18:29:07 +0200 | 3 | Date: Fri, 30 Dec 2016 18:29:07 +0200 |
4 | Subject: [PATCH] Do not set PYTHON_INSTALL_DIR by running python | 4 | Subject: [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 | ||
13 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 13 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
14 | index 38cf4fbf..6c5debd8 100644 | 14 | index 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 | ||
23 | SRCREV = "395541fbf8f87f81cdca7567f22be1182e55bea7" | 21 | SRCREV = "e7b29753dce94769d30f92e671f55863985d24f0" |
24 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" | 22 | UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" |
25 | 23 | ||
26 | S = "${WORKDIR}/git" | 24 | S = "${WORKDIR}/git" |