public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Fix signfiles regression from refactoring (#2291183)
@ 2026-11-23  9:35 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:35 UTC (permalink / raw)
  To: git-commits

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)
 

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

only message in thread, other threads:[~2026-11-23  9:35 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:35 [rpms/rpm] pmatilai-v6: Fix signfiles regression from refactoring (#2291183) Panu Matilainen

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