mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
8897e63ab9
commit
e5cdf655b8
@@ -1,39 +0,0 @@
|
|||||||
From 2729c00f0060beab8537a9bebc796b170949093d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
||||||
Date: Tue, 4 May 2021 22:03:30 +0200
|
|
||||||
Subject: [PATCH 1/2] dnf/rpm/miscutils.py: fix usage of _()
|
|
||||||
|
|
||||||
Specifically:
|
|
||||||
- an import of _ was missing
|
|
||||||
- _ was reused for a different purpose
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://github.com/rpm-software-management/dnf/pull/1762]
|
|
||||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
||||||
---
|
|
||||||
dnf/rpm/miscutils.py | 3 ++-
|
|
||||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/dnf/rpm/miscutils.py b/dnf/rpm/miscutils.py
|
|
||||||
index 235aaf28f..7e33d4c42 100644
|
|
||||||
--- a/dnf/rpm/miscutils.py
|
|
||||||
+++ b/dnf/rpm/miscutils.py
|
|
||||||
@@ -22,6 +22,7 @@ import subprocess
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from dnf.i18n import ucd
|
|
||||||
+from dnf.i18n import _
|
|
||||||
from shutil import which
|
|
||||||
|
|
||||||
|
|
||||||
@@ -46,7 +47,7 @@ def _verifyPkgUsingRpmkeys(package, installroot):
|
|
||||||
env={'LC_ALL': 'C'},
|
|
||||||
stdout=subprocess.PIPE,
|
|
||||||
cwd='/') as p:
|
|
||||||
- data, _ = p.communicate()
|
|
||||||
+ data, err = p.communicate()
|
|
||||||
if p.returncode != 0 or data != (package.encode('ascii', 'strict') + b': digests signatures OK\n'):
|
|
||||||
return 0
|
|
||||||
else:
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
||||||
-37
@@ -1,37 +0,0 @@
|
|||||||
From dc14022a99dc017c52c484efb32729729baf854c Mon Sep 17 00:00:00 2001
|
|
||||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
||||||
Date: Tue, 4 May 2021 22:07:32 +0200
|
|
||||||
Subject: [PATCH 2/2] dnf/rpm/miscutils.py: do not hardcode /usr/bin/rpmkeys
|
|
||||||
|
|
||||||
Some build systems (e.g. Yocto) place a specially configured
|
|
||||||
rpmkeys executable elsewhere and set up PATH accordingly;
|
|
||||||
it's better to always take it from there.
|
|
||||||
|
|
||||||
Upstream-Status: Submitted [https://github.com/rpm-software-management/dnf/pull/1763]
|
|
||||||
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
|
||||||
---
|
|
||||||
dnf/rpm/miscutils.py | 8 +++-----
|
|
||||||
1 file changed, 3 insertions(+), 5 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/dnf/rpm/miscutils.py b/dnf/rpm/miscutils.py
|
|
||||||
index 7e33d4c42..fcd956db9 100644
|
|
||||||
--- a/dnf/rpm/miscutils.py
|
|
||||||
+++ b/dnf/rpm/miscutils.py
|
|
||||||
@@ -30,11 +30,9 @@ logger = logging.getLogger('dnf')
|
|
||||||
|
|
||||||
|
|
||||||
def _verifyPkgUsingRpmkeys(package, installroot):
|
|
||||||
- rpmkeys_binary = '/usr/bin/rpmkeys'
|
|
||||||
- if not os.path.isfile(rpmkeys_binary):
|
|
||||||
- rpmkeys_binary = which("rpmkeys")
|
|
||||||
- logger.info(_('Using rpmkeys executable from {path} to verify signature for package: {package}.').format(
|
|
||||||
- path=rpmkeys_binary, package=package))
|
|
||||||
+ rpmkeys_binary = which("rpmkeys")
|
|
||||||
+ logger.info(_('Using rpmkeys executable from {path} to verify signature for package: {package}.').format(
|
|
||||||
+ path=rpmkeys_binary, package=package))
|
|
||||||
|
|
||||||
if not os.path.isfile(rpmkeys_binary):
|
|
||||||
logger.critical(_('Cannot find rpmkeys executable to verify signatures.'))
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
||||||
+4
-4
@@ -1,4 +1,4 @@
|
|||||||
From 6be13143a54c79085d400d5bd4c7a6e1cb6ffaf5 Mon Sep 17 00:00:00 2001
|
From ceb1043c4f3de095e36908232320b74a4128a94e Mon Sep 17 00:00:00 2001
|
||||||
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
From: Alexander Kanavin <alex.kanavin@gmail.com>
|
||||||
Date: Fri, 30 Dec 2016 18:29:07 +0200
|
Date: Fri, 30 Dec 2016 18:29:07 +0200
|
||||||
Subject: [PATCH] Do not set PYTHON_INSTALL_DIR by running python
|
Subject: [PATCH] Do not set PYTHON_INSTALL_DIR by running python
|
||||||
@@ -11,15 +11,15 @@ Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
|||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
index 38cf4fbf..6c5debd8 100644
|
index 9e2e9e9e..2056089d 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -19,7 +19,7 @@ ELSE ()
|
@@ -19,7 +19,7 @@ ELSE ()
|
||||||
MESSAGE (FATAL_ERROR "Invalid PYTHON_DESIRED value: " ${PYTHON_DESIRED})
|
MESSAGE (FATAL_ERROR "Invalid PYTHON_DESIRED value: " ${PYTHON_DESIRED})
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
-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)
|
-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)
|
||||||
+#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)
|
+#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)
|
||||||
MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}")
|
MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}")
|
||||||
|
|
||||||
ADD_SUBDIRECTORY (dnf)
|
ADD_SUBDIRECTORY (dnf)
|
||||||
|
|||||||
@@ -16,11 +16,9 @@ SRC_URI = "git://github.com/rpm-software-management/dnf.git \
|
|||||||
file://0030-Run-python-scripts-using-env.patch \
|
file://0030-Run-python-scripts-using-env.patch \
|
||||||
file://0001-set-python-path-for-completion_helper.patch \
|
file://0001-set-python-path-for-completion_helper.patch \
|
||||||
file://0001-dnf-write-the-log-lock-to-root.patch \
|
file://0001-dnf-write-the-log-lock-to-root.patch \
|
||||||
file://0001-dnf-rpm-miscutils.py-fix-usage-of-_.patch \
|
|
||||||
file://0002-dnf-rpm-miscutils.py-do-not-hardcode-usr-bin-rpmkeys.patch \
|
|
||||||
"
|
"
|
||||||
|
|
||||||
SRCREV = "395541fbf8f87f81cdca7567f22be1182e55bea7"
|
SRCREV = "e7b29753dce94769d30f92e671f55863985d24f0"
|
||||||
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
|
UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
Reference in New Issue
Block a user