public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Panu Matilainen <pmatilai@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rpm] pmatilai-v6: - Fix duplicate trigger indexes caused by beta1.3 fix (#1131960)
Date: Mon, 23 Nov 2026 09:29:05 GMT	[thread overview]
Message-ID: <179542614509.1.6706969600890806460.rpms-rpm-d2ca31c3f637@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-11-23  9:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542614509.1.6706969600890806460.rpms-rpm-d2ca31c3f637@fedoraproject.org \
    --to=pmatilai@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox