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 signfiles regression from refactoring (#2291183)
Date: Mon, 23 Nov 2026 09:35:30 GMT	[thread overview]
Message-ID: <179542653019.1.17241194794760305069.rpms-rpm-434f3b1a1dfd@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 434f3b1a1dfde3aea11964d6cf9e3529f9bef1f9
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2024-06-11T09:10:58+03:00
Stats  : +36/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/434f3b1a1dfde3aea11964d6cf9e3529f9bef1f9?branch=pmatilai-v6

Log:
Fix signfiles regression from refactoring (#2291183)

---
diff --git a/0001-Fix-signfiles-regression-from-13a02b15d6552bc8e44023.patch b/0001-Fix-signfiles-regression-from-13a02b15d6552bc8e44023.patch
new file mode 100644
index 0000000..90bab7c
--- /dev/null
+++ b/0001-Fix-signfiles-regression-from-13a02b15d6552bc8e44023.patch
@@ -0,0 +1,31 @@
+From e69b79fa7d4757983873083a0f12164a1ad1a70b Mon Sep 17 00:00:00 2001
+Message-ID: <e69b79fa7d4757983873083a0f12164a1ad1a70b.1718086167.git.pmatilai@redhat.com>
+From: Panu Matilainen <pmatilai@redhat.com>
+Date: Tue, 11 Jun 2024 08:51:58 +0300
+Subject: [PATCH] Fix signfiles regression from
+ 13a02b15d6552bc8e440235b846ea5257514d397
+
+The sneaky construct hid more than just values starting from 1: there's
+no value 4 in rpmHashAlgo enum, so skipping that causes all the later
+hash names to be off by one.
+
+Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2291183
+---
+ sign/rpmsignfiles.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/sign/rpmsignfiles.c b/sign/rpmsignfiles.c
+index ecd49aac5..9095d9a27 100644
+--- a/sign/rpmsignfiles.c
++++ b/sign/rpmsignfiles.c
+@@ -23,6 +23,7 @@ static const char *hash_algo_name[] = {
+     "md5", 	/* RPM_HASH_MD5 */
+     "sha1", 	/* RPM_HASH_SHA1 */
+     "rmd160",	/* RPM_HASH_RIPEMD160 */
++    "reserved1",/* reserved */
+     "md2",	/* RPM_HASH_MD2 */
+     "tgr192", 	/* RPM_HASH_TIGER192 */
+     "haval5160",/* RPM_HASH_HAVAL_5_160 */
+-- 
+2.45.1
+

diff --git a/rpm.spec b/rpm.spec
index eecfdc4..8e10133 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -28,7 +28,7 @@
 %global rpmver 4.19.91
 #global snapver rc1
 %global baserelease 10
-%global sover 10
+%global sover 11
 
 %global srcver %{rpmver}%{?snapver:-%{snapver}}
 %global srcdir %{?snapver:testing}%{!?snapver:rpm-%(echo %{rpmver} | cut -d'.' -f1-2).x}
@@ -161,6 +161,7 @@ rpm-4.19.91-weak-user-group.patch
 0003-Require-buildsubdir-to-be-defined-to-get-debuginfo-p.patch
 0001-Always-clear-the-RPMEXPAND_KEEP_QUOTED-flag-if-we-do.patch
 0001-Improve-_builddir-backwards-compatibility.patch
+0001-Fix-signfiles-regression-from-13a02b15d6552bc8e44023.patch
 
 # These are not yet upstream
 rpm-4.7.1-geode-i686.patch
@@ -663,6 +664,9 @@ fi
 %doc %{_defaultdocdir}/rpm/API/
 
 %changelog
+* Tue Jun 11 2024 Panu Matilainen <pmatilai@redhat.com> - 4.19.91-11
+- Fix signfiles regression from refactoring (#2291183)
+
 * Mon Jun 10 2024 Panu Matilainen <pmatilai@redhat.com> - 4.19.91-10
 - Improve backwards compatibility wrt %%{_builddir} use in specs (#2284193)
 

                 reply	other threads:[~2026-11-23  9:35 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=179542653019.1.17241194794760305069.rpms-rpm-434f3b1a1dfd@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