From 9527e8f6dd6e505a3deda54372574023d9724b3e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Mar 31 2020 09:39:18 +0000 Subject: import rpm-4.11.3-43.el7 --- diff --git a/SOURCES/rpm-4.11.x-correct-g-libs.patch b/SOURCES/rpm-4.11.x-correct-g-libs.patch new file mode 100644 index 0000000..70ed760 --- /dev/null +++ b/SOURCES/rpm-4.11.x-correct-g-libs.patch @@ -0,0 +1,11 @@ +--- rpm-4.11.3/scripts/find-debuginfo.sh.old 2019-07-26 10:03:50.390264038 +0200 ++++ rpm-4.11.3/scripts/find-debuginfo.sh 2019-07-26 10:24:12.540154792 +0200 +@@ -109,7 +109,7 @@ + shift + done + +-if ("$strip_g" = "true") && ("$strip_glibs" = "true"); then ++if [ "$strip_g" = "true" ] && [ "$strip_glibs" = "true" ]; then + echo >&2 "*** ERROR: -g and --g-libs cannot be used together" + exit 2 + fi diff --git a/SOURCES/rpm-4.11.x-dependson.patch b/SOURCES/rpm-4.11.x-dependson.patch new file mode 100644 index 0000000..7b084fd --- /dev/null +++ b/SOURCES/rpm-4.11.x-dependson.patch @@ -0,0 +1,13 @@ +diff -up rpm-4.11.3/lib/depends.c.dependson rpm-4.11.3/lib/depends.c +--- rpm-4.11.3/lib/depends.c.dependson 2019-10-04 10:46:35.399545965 +0300 ++++ rpm-4.11.3/lib/depends.c 2019-10-04 10:47:10.693542015 +0300 +@@ -117,7 +117,8 @@ static int removePackage(rpmts ts, Heade + tsmem->order = xrealloc(tsmem->order, sizeof(*tsmem->order) * tsmem->orderAlloced); + } + +- rpmteSetDependsOn(p, depends); ++ if (depends) ++ rpmteSetDependsOn(p, depends); + + tsmem->order[tsmem->orderCount] = p; + tsmem->orderCount++; diff --git a/SOURCES/rpm-4.13.x-fix-segfault-on-fingerprint-symlink.patch b/SOURCES/rpm-4.13.x-fix-segfault-on-fingerprint-symlink.patch new file mode 100644 index 0000000..0b26687 --- /dev/null +++ b/SOURCES/rpm-4.13.x-fix-segfault-on-fingerprint-symlink.patch @@ -0,0 +1,21 @@ +--- rpm-4.11.3/lib/fprint.c.old 2014-02-05 14:04:01.000000000 +0100 ++++ rpm-4.11.3/lib/fprint.c 2019-08-21 16:28:03.255538275 +0200 +@@ -484,7 +484,7 @@ + (void) rpmdbCheckSignals(); + + if ((fi = rpmteFI(p)) == NULL) +- continue; /* XXX can't happen */ ++ continue; + + (void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_FINGERPRINT), 0); + rpmfiFpLookup(fi, fpc); +@@ -518,6 +518,9 @@ + while ((p = rpmtsiNext(pi, 0)) != NULL) { + (void) rpmdbCheckSignals(); + ++ if ((fi = rpmteFI(p)) == NULL) ++ continue; ++ + fs = rpmteGetFileStates(p); + fc = rpmfsFC(fs); + (void) rpmswEnter(rpmtsOp(ts, RPMTS_OP_FINGERPRINT), 0); diff --git a/SPECS/rpm.spec b/SPECS/rpm.spec index 1d14d23..3018662 100644 --- a/SPECS/rpm.spec +++ b/SPECS/rpm.spec @@ -21,7 +21,7 @@ Summary: The RPM package management system Name: rpm Version: %{rpmver} -Release: %{?snapver:0.%{snapver}.}40%{?dist} +Release: %{?snapver:0.%{snapver}.}43%{?dist} Group: System Environment/Base Url: http://www.rpm.org/ Source0: http://rpm.org/releases/rpm-4.11.x/%{name}-%{srcver}.tar.bz2 @@ -97,6 +97,8 @@ Patch194: rpm-4.11.x-disk-space-calculation.patch Patch195: rpm-4.11.x-remove-perl-provides-from-requires.patch Patch196: rpm-4.13.x-bad-owner-group.patch Patch197: rpm-4.11.x-perl.req-6.patch +Patch198: rpm-4.13.x-fix-segfault-on-fingerprint-symlink.patch +Patch199: rpm-4.11.x-dependson.patch # Filter soname dependencies by name Patch200: rpm-4.11.x-filter-soname-deps.patch @@ -146,6 +148,7 @@ Patch504: rpm-4.11.x-add-g-libs.patch # Fixed upstream: # https://github.com/rpm-software-management/rpm/commit/a8e51b3bb05c6acb1d9b2e3d34f859ddda1677be Patch505: rpm-4.11.3-brp-python-bytecompile-Fix-when-default-python-is-no.patch +Patch506: rpm-4.11.x-correct-g-libs.patch # Partially GPL/LGPL dual-licensed and some bits with BSD # SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD @@ -383,6 +386,8 @@ Requires: rpm-libs%{_isa} = %{version}-%{release} %patch195 -p1 -b .perl.req5 %patch196 -p1 -b .badowner %patch197 -p1 -b .perl.req6 +%patch198 -p1 -b .sf_fingerprint +%patch199 -p1 -b .dependson %patch200 -p1 -b .filter-soname-deps %patch201 -p1 -b .dont-filter-ld64 @@ -416,6 +421,7 @@ Requires: rpm-libs%{_isa} = %{version}-%{release} %patch503 -p1 -b .reinstall %patch504 -p1 -b .g-libs %patch505 -p1 -b .brp-python-bytecompile +%patch506 -p1 -b .fix-g-libs %if %{with int_bdb} ln -s db-%{bdbver} db @@ -647,6 +653,15 @@ exit 0 %doc COPYING doc/librpm/html/* %changelog +* Fri Oct 04 2019 Panu Matilainen - 4.11.3-43 +- Fix packages getting removed on failed update via dnf (#1710691) + +* Wed Aug 21 2019 Pavlina Moravcova Varekova - 4.11.3-42 +- Fix segfault on fingerprint symlink (#1660232) + +* Fri Aug 16 2019 Pavlina Moravcova Varekova - 4.11.3-41 +- Fix bogus if-condition in find-debuginfo.sh (#1720590) + * Sun May 26 2019 Pavlina Moravcova Varekova - 4.11.3-40 - Remove only special perl dependencies provided in the same file (#1570181)