From d2ca31c3f6374394bedca2979fc9dbafca16c757 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Aug 20 2014 12:18:29 +0000 Subject: - Fix duplicate trigger indexes caused by beta1.3 fix (#1131960) --- diff --git a/rpm-4.12-beta-triggerindex.patch b/rpm-4.12-beta-triggerindex.patch new file mode 100644 index 0000000..602a4d7 --- /dev/null +++ b/rpm-4.12-beta-triggerindex.patch @@ -0,0 +1,27 @@ +commit 1566c18b6efbda7b4c367f4c0ee31b4d5be2d2fe +Author: Panu Matilainen +Date: Wed Aug 20 15:10:36 2014 +0300 + + Delete trigger indexes too from header before adding again (RhBug:1131892) + + - Fixes regression introduced in the regression-fix + commit 0bda2faa4de368a87f85084856a5fed701774acb, *facepalm* + - Unlike other dependency types, trigger dependencies involve a fourth + tag which we forgot to delete before adding again, causing duplicate + trigger indexes + +diff --git a/build/pack.c b/build/pack.c +index 4abca48..78a4f0e 100644 +--- a/build/pack.c ++++ b/build/pack.c +@@ -617,8 +617,9 @@ rpmRC packageBinaries(rpmSpec spec, const char *cookie, int cheating) + headerPutString(pkg->header, RPMTAG_BUILDHOST, buildHost()); + headerPutUint32(pkg->header, RPMTAG_BUILDTIME, getBuildTime(), 1); + ++ /* Nuke any previously added dependencies from the header */ ++ headerDel(pkg->header, RPMTAG_TRIGGERINDEX); + for (int i=0; iheader, rpmdsTagN(pkg->dependencies[i])); + headerDel(pkg->header, rpmdsTagEVR(pkg->dependencies[i])); + headerDel(pkg->header, rpmdsTagF(pkg->dependencies[i])); diff --git a/rpm.spec b/rpm.spec index 592d872..112e05f 100644 --- a/rpm.spec +++ b/rpm.spec @@ -27,7 +27,7 @@ Summary: The RPM package management system Name: rpm Version: %{rpmver} -Release: %{?snapver:0.%{snapver}.}4%{?dist} +Release: %{?snapver:0.%{snapver}.}5%{?dist} Group: System Environment/Base Url: http://www.rpm.org/ Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2 @@ -50,6 +50,7 @@ Patch4: rpm-4.8.1-use-gpg2.patch # Patches already upstream: Patch100: rpm-4.12-beta1-fix-buildrequires.patch Patch101: rpm-4.12-beta1-spec-header-deps.patch +Patch102: rpm-4.12-beta-triggerindex.patch # These are not yet upstream # Emergency hack for rpmdeps crash (#1131892) @@ -530,6 +531,9 @@ exit 0 %doc doc/librpm/html/* %changelog +* Wed Aug 20 2014 Panu Matilainen - 4.12.0-0.beta1.5 +- Fix duplicate trigger indexes caused by beta1.3 fix (#1131960) + * Wed Aug 20 2014 Panu Matilainen - 4.12.0-0.beta1.4 - Emergency hack for #1131892