public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - Fix duplicate trigger indexes caused by beta1.3 fix (#1131960)
@ 2026-11-23  9:29 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:29 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : d2ca31c3f6374394bedca2979fc9dbafca16c757
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2014-08-20T15:18:29+03:00
Stats  : +32/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/d2ca31c3f6374394bedca2979fc9dbafca16c757?branch=pmatilai-v6

Log:
- 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 <pmatilai@redhat.com>
+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; i<PACKAGE_NUM_DEPS; i++) {
+-	    /* Nuke any previously added dependencies from the header */
+ 	    headerDel(pkg->header, 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 <pmatilai@redhat.com> - 4.12.0-0.beta1.5
+- Fix duplicate trigger indexes caused by beta1.3 fix (#1131960)
+
 * Wed Aug 20 2014 Panu Matilainen <pmatilai@redhat.com> - 4.12.0-0.beta1.4
 - Emergency hack for #1131892
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:29 [rpms/rpm] pmatilai-v6: - Fix duplicate trigger indexes caused by beta1.3 fix (#1131960) Panu Matilainen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox