libdnf: update to 0.9.1
PATCH v2 1/3 libdnf: update to 0.9.1
Signed-off-by Alexander Kanavin <[email protected]>
---
meta/recipes-devtools/libdnf/{libdnf_git.bb => libdnf_0.9.1.bb} | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
rename meta/recipes-devtools/libdnf/{libdnf_git.bb => libdnf_0.9.1.bb} (94%)meta/recipes-devtools/libdnf/libdnf_0.9.1.bb renamed from meta/recipes-devtools/libdnf/libdnf_git.bb +1 -2
@@ -10,8 +10,7 @@ SRC_URI = "git://github.com/rpm-software-management/libdnf \ file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \ " -PV = "0.8.1" -SRCREV = "233287f4f80e24a917d5f6a26967f54080ffa255" +SRCREV = "d5ecb17c0fde4f99c6a80e6f162510465b8d28f9" S = "${WORKDIR}/git"
Signature · 1 line
2.11.0
PATCH v2 2/3 dnf: update to 2.5.1
Drop 0001-Revert-proper-check-of-releasever-when-using-install.patch as the problem has been solved upstream.
Add 0001-Move-releasever-check-after-the-etc-dnf-vars-substit.patch, as the warning for missing releasever is issued prematurely in our case.
Signed-off-by Alexander Kanavin <[email protected]>
---
...ever-check-after-the-etc-dnf-vars-substit.patch | 37 ++++++++
...er-check-of-releasever-when-using-install.patch | 105 ---------------------
.../dnf/{dnf_git.bb => dnf_2.5.1.bb} | 5 +-
3 files changed, 39 insertions(+), 108 deletions(-)
create mode 100644 meta/recipes-devtools/dnf/dnf/0001-Move-releasever-check-after-the-etc-dnf-vars-substit.patch
delete mode 100644 meta/recipes-devtools/dnf/dnf/0001-Revert-proper-check-of-releasever-when-using-install.patch
rename meta/recipes-devtools/dnf/{dnf_git.bb => dnf_2.5.1.bb} (94%)meta/recipes-devtools/dnf/dnf/0001-Move-releasever-check-after-the-etc-dnf-vars-substit.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 3d0cdd8af1b415712eeb00e377c307001684ad06 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Wed, 21 Jun 2017 15:35:20 +0300 +Subject: [PATCH] Move releasever check after the etc/dnf/vars substitutions. + +The substitutions may actually set the releasever correctly, +and so the check is premature. + +Upstream-Status: Pending +Signed-off-by: Alexander Kanavin <[email protected]> +--- + dnf/cli/cli.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py +index c53c2a52..f9f2c13a 100644 +--- a/dnf/cli/cli.py ++++ b/dnf/cli/cli.py +@@ -882,12 +882,12 @@ class Cli(object): + releasever = dnf.rpm.detect_releasever(conf.installroot) + elif releasever == '/': + releasever = dnf.rpm.detect_releasever(releasever) +- if releasever is None: +- logger.warning(_("Unable to detect release version (use '--releasever' to specify " +- "release version)")) + conf.releasever = releasever + subst = conf.substitutions + subst.update_from_etc(conf.installroot) ++ if releasever is None: ++ logger.warning(_("Unable to detect release version (use '--releasever' to specify " ++ "release version)")) + + for opt in ('cachedir', 'logdir', 'persistdir'): + conf.prepend_installroot(opt) +-- +2.11.0 +
meta/recipes-devtools/dnf/dnf/0001-Revert-proper-check-of-releasever-when-using-install.patch deleted +0 -105
105 lines not on this page · raw message
meta/recipes-devtools/dnf/dnf_2.5.1.bb renamed from meta/recipes-devtools/dnf/dnf_git.bb +2 -3
@@ -5,16 +5,15 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ " SRC_URI = "git://github.com/rpm-software-management/dnf.git \ + file://0001-Move-releasever-check-after-the-etc-dnf-vars-substit.patch \ file://0029-Do-not-set-PYTHON_INSTALL_DIR-by-running-python.patch \ file://0030-Run-python-scripts-using-env.patch \ file://0001-Do-not-prepend-installroot-to-logdir.patch \ file://0001-Do-not-hardcode-etc-and-systemd-unit-directories.patch \ file://0001-Corretly-install-tmpfiles.d-configuration.patch \ - file://0001-Revert-proper-check-of-releasever-when-using-install.patch \ " -PV = "2.3.0" -SRCREV = "242079563b54b4714c889fd4ee32e8dd9960f3b8" +SRCREV = "32e6ffdc8902b868cd8f98f9c399c98c9de0c7b8" UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+)" S = "${WORKDIR}/git"
Signature · 1 line
2.11.0
PATCH v2 3/3 package_manager.py: set dnf's releasever setting from DISTRO_CODENAME
In reply to Alexander KanavinSo that:
1) dnf does not complain anymore about releasever not being set and then fail for the same reason;
2) it's possible to refer to $releasever in dnf package feed configuration (repo paths in particular) without hardconding the release name (pyro, morty, etc.)
Signed-off-by Alexander Kanavin <[email protected]>
--- meta/lib/oe/package_manager.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
meta/lib/oe/package_manager.py +5 -3
@@ -494,9 +494,11 @@ class RpmPM(PackageManager): # This prevents accidental matching against libsolv's built-in policies if len(archs) <= 1: archs = archs + ["bogusarch"] - archconfdir = "%s/%s" %(self.target_rootfs, "etc/dnf/vars/") - bb.utils.mkdirhier(archconfdir) - open(archconfdir + "arch", 'w').write(":".join(archs)) + confdir = "%s/%s" %(self.target_rootfs, "etc/dnf/vars/") + bb.utils.mkdirhier(confdir) + open(confdir + "arch", 'w').write(":".join(archs)) + distro_codename = self.d.getVar('DISTRO_CODENAME') + open(confdir + "releasever", 'w').write(distro_codename if distro_codename is not None else '') open(oe.path.join(self.target_rootfs, "etc/dnf/dnf.conf"), 'w').write("")
Signature · 1 line
2.11.0