* [PATCHv2 1/2] libdnf: update to 0.9.1
@ 2017-06-20 13:56 Alexander Kanavin
2017-06-20 13:56 ` [PATCHv2 2/2] dnf: update to 2.5.1 Alexander Kanavin
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kanavin @ 2017-06-20 13:56 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
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%)
diff --git a/meta/recipes-devtools/libdnf/libdnf_git.bb b/meta/recipes-devtools/libdnf/libdnf_0.9.1.bb
similarity index 94%
rename from meta/recipes-devtools/libdnf/libdnf_git.bb
rename to meta/recipes-devtools/libdnf/libdnf_0.9.1.bb
index 2acbd89659a..e5c47bf8dbe 100644
--- a/meta/recipes-devtools/libdnf/libdnf_git.bb
+++ b/meta/recipes-devtools/libdnf/libdnf_0.9.1.bb
@@ -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"
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCHv2 2/2] dnf: update to 2.5.1
2017-06-20 13:56 [PATCHv2 1/2] libdnf: update to 0.9.1 Alexander Kanavin
@ 2017-06-20 13:56 ` Alexander Kanavin
2017-06-21 11:04 ` Jussi Kukkonen
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kanavin @ 2017-06-20 13:56 UTC (permalink / raw)
To: openembedded-core
Drop 0001-Revert-proper-check-of-releasever-when-using-install.patch
as the problem has been solved upstream.
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
---
...er-check-of-releasever-when-using-install.patch | 105 ---------------------
.../dnf/{dnf_git.bb => dnf_2.5.1.bb} | 4 +-
2 files changed, 1 insertion(+), 108 deletions(-)
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%)
diff --git a/meta/recipes-devtools/dnf/dnf/0001-Revert-proper-check-of-releasever-when-using-install.patch b/meta/recipes-devtools/dnf/dnf/0001-Revert-proper-check-of-releasever-when-using-install.patch
deleted file mode 100644
index 879ecfa30d7..00000000000
--- a/meta/recipes-devtools/dnf/dnf/0001-Revert-proper-check-of-releasever-when-using-install.patch
+++ /dev/null
@@ -1,105 +0,0 @@
-From 8cd0503612573c455f34db74cd1c2216ed25b69c Mon Sep 17 00:00:00 2001
-From: Alexander Kanavin <alex.kanavin@gmail.com>
-Date: Wed, 12 Apr 2017 15:42:06 +0300
-Subject: [PATCH] Revert "proper check of releasever, when using installroot
- (RhBug:1417542)"
-
-This reverts commit 3ddf684b7c67a2b384aa99dde53d8a43218f2e68, as it's causing
-breakage when installing packages into a pristin rootfs. Upstream has been notified:
-https://bugzilla.redhat.com/show_bug.cgi?id=1441636
-
-Upstream-Status: Inappropriate [pending proper fix]
-Signed-off-by: Alex Kanavin <alex.kanavin@gmail.com>
----
- dnf/rpm/__init__.py | 59 +++++++++++++++++++++++++----------------------------
- doc/command_ref.rst | 3 +--
- 2 files changed, 29 insertions(+), 33 deletions(-)
-
-diff --git a/dnf/rpm/__init__.py b/dnf/rpm/__init__.py
-index 5976acd6..1d50e6a0 100644
---- a/dnf/rpm/__init__.py
-+++ b/dnf/rpm/__init__.py
-@@ -30,38 +30,35 @@ def detect_releasever(installroot):
- # :api
- """Calculate the release version for the system."""
-
-- # if installroot is empty dir releasever is None,
-- # that's why releasever is checked from '/'
-- for root in [installroot, "/"]:
-- ts = transaction.initReadOnlyTransaction(root=root)
-- ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES | rpm._RPMVSF_NODIGESTS))
-- for distroverpkg in dnf.const.DISTROVERPKG:
-- try:
-- idx = ts.dbMatch('provides', distroverpkg)
-- except (TypeError, rpm.error) as e:
-- raise dnf.exceptions.Error('Error: %s' % str(e))
-- if not len(idx):
-- continue
-- try:
-- hdr = next(idx)
-- except StopIteration:
-- msg = 'Error: rpmdb failed to list provides. Try: rpm --rebuilddb'
-- raise dnf.exceptions.Error(msg)
-- releasever = hdr['version']
-- try:
-- off = hdr[rpm.RPMTAG_PROVIDENAME].index(distroverpkg)
-- flag = hdr[rpm.RPMTAG_PROVIDEFLAGS][off]
-- ver = hdr[rpm.RPMTAG_PROVIDEVERSION][off]
-- if flag == rpm.RPMSENSE_EQUAL and ver:
-- if hdr['name'] != distroverpkg:
-- # override the package version
-- releasever = ver
-- except (ValueError, KeyError, IndexError):
-- pass
-+ ts = transaction.initReadOnlyTransaction(root=installroot)
-+ ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES | rpm._RPMVSF_NODIGESTS))
-+ for distroverpkg in dnf.const.DISTROVERPKG:
-+ try:
-+ idx = ts.dbMatch('provides', distroverpkg)
-+ except (TypeError, rpm.error) as e:
-+ raise dnf.exceptions.Error('Error: %s' % str(e))
-+ if not len(idx):
-+ continue
-+ try:
-+ hdr = next(idx)
-+ except StopIteration:
-+ msg = 'Error: rpmdb failed to list provides. Try: rpm --rebuilddb'
-+ raise dnf.exceptions.Error(msg)
-+ releasever = hdr['version']
-+ try:
-+ off = hdr[rpm.RPMTAG_PROVIDENAME].index(distroverpkg)
-+ flag = hdr[rpm.RPMTAG_PROVIDEFLAGS][off]
-+ ver = hdr[rpm.RPMTAG_PROVIDEVERSION][off]
-+ if flag == rpm.RPMSENSE_EQUAL and ver:
-+ if hdr['name'] != distroverpkg:
-+ # override the package version
-+ releasever = ver
-+ except (ValueError, KeyError, IndexError):
-+ pass
-
-- if is_py3bytes(releasever):
-- releasever = str(releasever, "utf-8")
-- return releasever
-+ if is_py3bytes(releasever):
-+ releasever = str(releasever, "utf-8")
-+ return releasever
- return None
-
-
-diff --git a/doc/command_ref.rst b/doc/command_ref.rst
-index 77e885ab..3dd451b5 100644
---- a/doc/command_ref.rst
-+++ b/doc/command_ref.rst
-@@ -205,8 +205,7 @@ Options
- Note: You may also want to use the command-line option
- ``--releasever=<release>`` when creating the installroot otherwise the
- *$releasever* value is taken from the rpmdb within the installroot (and thus
-- it is empty at time of creation and *$releasever* is taken from rpmdb using
-- installroot=/).
-+ it is empty at time of creation, the transaction will fail).
- The new installroot path at time of creation do not contain *repository*,
- *releasever*, and *dnf.conf* file.
-
---
-2.11.0
-
diff --git a/meta/recipes-devtools/dnf/dnf_git.bb b/meta/recipes-devtools/dnf/dnf_2.5.1.bb
similarity index 94%
rename from meta/recipes-devtools/dnf/dnf_git.bb
rename to meta/recipes-devtools/dnf/dnf_2.5.1.bb
index c975900f85e..a07a509b768 100644
--- a/meta/recipes-devtools/dnf/dnf_git.bb
+++ b/meta/recipes-devtools/dnf/dnf_2.5.1.bb
@@ -10,11 +10,9 @@ SRC_URI = "git://github.com/rpm-software-management/dnf.git \
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"
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCHv2 2/2] dnf: update to 2.5.1
2017-06-20 13:56 ` [PATCHv2 2/2] dnf: update to 2.5.1 Alexander Kanavin
@ 2017-06-21 11:04 ` Jussi Kukkonen
0 siblings, 0 replies; 3+ messages in thread
From: Jussi Kukkonen @ 2017-06-21 11:04 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 7307 bytes --]
These sanity test failures look related.
https://autobuilder.yocto.io/builders/nightly-x86-64/builds/333/steps/Running%20Sanity%20Tests/logs/stdio
On 20 June 2017 at 16:56, Alexander Kanavin <
alexander.kanavin@linux.intel.com> wrote:
> Drop 0001-Revert-proper-check-of-releasever-when-using-install.patch
> as the problem has been solved upstream.
>
> Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
> ---
> ...er-check-of-releasever-when-using-install.patch | 105
> ---------------------
> .../dnf/{dnf_git.bb => dnf_2.5.1.bb} | 4 +-
> 2 files changed, 1 insertion(+), 108 deletions(-)
> 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%)
>
> diff --git a/meta/recipes-devtools/dnf/dnf/0001-Revert-proper-check-
> of-releasever-when-using-install.patch b/meta/recipes-devtools/dnf/
> dnf/0001-Revert-proper-check-of-releasever-when-using-install.patch
> deleted file mode 100644
> index 879ecfa30d7..00000000000
> --- a/meta/recipes-devtools/dnf/dnf/0001-Revert-proper-check-
> of-releasever-when-using-install.patch
> +++ /dev/null
> @@ -1,105 +0,0 @@
> -From 8cd0503612573c455f34db74cd1c2216ed25b69c Mon Sep 17 00:00:00 2001
> -From: Alexander Kanavin <alex.kanavin@gmail.com>
> -Date: Wed, 12 Apr 2017 15:42:06 +0300
> -Subject: [PATCH] Revert "proper check of releasever, when using
> installroot
> - (RhBug:1417542)"
> -
> -This reverts commit 3ddf684b7c67a2b384aa99dde53d8a43218f2e68, as it's
> causing
> -breakage when installing packages into a pristin rootfs. Upstream has
> been notified:
> -https://bugzilla.redhat.com/show_bug.cgi?id=1441636
> -
> -Upstream-Status: Inappropriate [pending proper fix]
> -Signed-off-by: Alex Kanavin <alex.kanavin@gmail.com>
> ----
> - dnf/rpm/__init__.py | 59 +++++++++++++++++++++++++-----
> -----------------------
> - doc/command_ref.rst | 3 +--
> - 2 files changed, 29 insertions(+), 33 deletions(-)
> -
> -diff --git a/dnf/rpm/__init__.py b/dnf/rpm/__init__.py
> -index 5976acd6..1d50e6a0 100644
> ---- a/dnf/rpm/__init__.py
> -+++ b/dnf/rpm/__init__.py
> -@@ -30,38 +30,35 @@ def detect_releasever(installroot):
> - # :api
> - """Calculate the release version for the system."""
> -
> -- # if installroot is empty dir releasever is None,
> -- # that's why releasever is checked from '/'
> -- for root in [installroot, "/"]:
> -- ts = transaction.initReadOnlyTransaction(root=root)
> -- ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES |
> rpm._RPMVSF_NODIGESTS))
> -- for distroverpkg in dnf.const.DISTROVERPKG:
> -- try:
> -- idx = ts.dbMatch('provides', distroverpkg)
> -- except (TypeError, rpm.error) as e:
> -- raise dnf.exceptions.Error('Error: %s' % str(e))
> -- if not len(idx):
> -- continue
> -- try:
> -- hdr = next(idx)
> -- except StopIteration:
> -- msg = 'Error: rpmdb failed to list provides. Try: rpm
> --rebuilddb'
> -- raise dnf.exceptions.Error(msg)
> -- releasever = hdr['version']
> -- try:
> -- off = hdr[rpm.RPMTAG_PROVIDENAME].index(distroverpkg)
> -- flag = hdr[rpm.RPMTAG_PROVIDEFLAGS][off]
> -- ver = hdr[rpm.RPMTAG_PROVIDEVERSION][off]
> -- if flag == rpm.RPMSENSE_EQUAL and ver:
> -- if hdr['name'] != distroverpkg:
> -- # override the package version
> -- releasever = ver
> -- except (ValueError, KeyError, IndexError):
> -- pass
> -+ ts = transaction.initReadOnlyTransaction(root=installroot)
> -+ ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES | rpm._RPMVSF_NODIGESTS))
> -+ for distroverpkg in dnf.const.DISTROVERPKG:
> -+ try:
> -+ idx = ts.dbMatch('provides', distroverpkg)
> -+ except (TypeError, rpm.error) as e:
> -+ raise dnf.exceptions.Error('Error: %s' % str(e))
> -+ if not len(idx):
> -+ continue
> -+ try:
> -+ hdr = next(idx)
> -+ except StopIteration:
> -+ msg = 'Error: rpmdb failed to list provides. Try: rpm
> --rebuilddb'
> -+ raise dnf.exceptions.Error(msg)
> -+ releasever = hdr['version']
> -+ try:
> -+ off = hdr[rpm.RPMTAG_PROVIDENAME].index(distroverpkg)
> -+ flag = hdr[rpm.RPMTAG_PROVIDEFLAGS][off]
> -+ ver = hdr[rpm.RPMTAG_PROVIDEVERSION][off]
> -+ if flag == rpm.RPMSENSE_EQUAL and ver:
> -+ if hdr['name'] != distroverpkg:
> -+ # override the package version
> -+ releasever = ver
> -+ except (ValueError, KeyError, IndexError):
> -+ pass
> -
> -- if is_py3bytes(releasever):
> -- releasever = str(releasever, "utf-8")
> -- return releasever
> -+ if is_py3bytes(releasever):
> -+ releasever = str(releasever, "utf-8")
> -+ return releasever
> - return None
> -
> -
> -diff --git a/doc/command_ref.rst b/doc/command_ref.rst
> -index 77e885ab..3dd451b5 100644
> ---- a/doc/command_ref.rst
> -+++ b/doc/command_ref.rst
> -@@ -205,8 +205,7 @@ Options
> - Note: You may also want to use the command-line option
> - ``--releasever=<release>`` when creating the installroot otherwise the
> - *$releasever* value is taken from the rpmdb within the installroot (and
> thus
> -- it is empty at time of creation and *$releasever* is taken from rpmdb
> using
> -- installroot=/).
> -+ it is empty at time of creation, the transaction will fail).
> - The new installroot path at time of creation do not contain
> *repository*,
> - *releasever*, and *dnf.conf* file.
> -
> ---
> -2.11.0
> -
> diff --git a/meta/recipes-devtools/dnf/dnf_git.bb
> b/meta/recipes-devtools/dnf/dnf_2.5.1.bb
> similarity index 94%
> rename from meta/recipes-devtools/dnf/dnf_git.bb
> rename to meta/recipes-devtools/dnf/dnf_2.5.1.bb
> index c975900f85e..a07a509b768 100644
> --- a/meta/recipes-devtools/dnf/dnf_git.bb
> +++ b/meta/recipes-devtools/dnf/dnf_2.5.1.bb
> @@ -10,11 +10,9 @@ SRC_URI = "git://github.com/rpm-
> software-management/dnf.git \
> 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"
> --
> 2.11.0
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
[-- Attachment #2: Type: text/html, Size: 10254 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-21 11:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-20 13:56 [PATCHv2 1/2] libdnf: update to 0.9.1 Alexander Kanavin
2017-06-20 13:56 ` [PATCHv2 2/2] dnf: update to 2.5.1 Alexander Kanavin
2017-06-21 11:04 ` Jussi Kukkonen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox