public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: Rebase to 6.0 beta2 (https://rpm.org/releases/5.99.92)
@ 2026-11-23  9:36 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:36 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 7c556befdc86e67dd5adbd39af0420dab41a6702
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2025-08-27T14:17:07+03:00
Stats  : +8/-539 in 7 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/7c556befdc86e67dd5adbd39af0420dab41a6702?branch=pmatilai-v6

Log:
Rebase to 6.0 beta2 (https://rpm.org/releases/5.99.92)

---
diff --git a/.gitignore b/.gitignore
index 903e242..e5c2b5b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -71,3 +71,4 @@
 /rpm-4.20.1.tar.bz2
 /rpm-5.99.90.tar.bz2
 /rpm-5.99.91.tar.bz2
+/rpm-5.99.92.tar.bz2

diff --git a/0001-Fix-fingerprinting-regression-from-08a6a5e848f007c2e.patch b/0001-Fix-fingerprinting-regression-from-08a6a5e848f007c2e.patch
deleted file mode 100644
index fd55b42..0000000
--- a/0001-Fix-fingerprinting-regression-from-08a6a5e848f007c2e.patch
+++ /dev/null
@@ -1,115 +0,0 @@
-From ac944c1e1420f1cf0905dee02fe9d84dbfcc4ecf Mon Sep 17 00:00:00 2001
-Message-ID: <ac944c1e1420f1cf0905dee02fe9d84dbfcc4ecf.1756121756.git.pmatilai@redhat.com>
-From: Panu Matilainen <pmatilai@redhat.com>
-Date: Thu, 14 Aug 2025 13:12:55 +0300
-Subject: [PATCH] Fix fingerprinting regression from
- 08a6a5e848f007c2e8d83fc1df8712d1a43229f4
-
-Commit 08a6a5e848f007c2e8d83fc1df8712d1a43229f4 is rather botched, was
-a bit too eager to get rid of the trusty old rpmhash implementation.
-
-First, we need a multimap for this task as there can be several packaged
-file entries sharing a fingerprint. Secondly, the code handling overlapped
-files relies on the entries being in the order they were added,
-whereas STL unordered map does not promise any particular iteration order.
-
-As it happens, a regular map does have that guarantee since C++11.
-It also happens to be somewhat less code since we no longer need separate
-hash and comparison functions. Drop the failure expectation from the
-testcase.
-
-There's a slight performance penalty compared to the original rpmhash
-implementation but not by orders of magnitude, so we don't care just now.
-The fingerprinting and file disposition code had been tightly knit together
-over the course of almost three decades, that'll take some unwrapping
-before we can compete.
-
-Fixes: #3762
----
- lib/fprint.cc | 46 +++++++++++++---------------------------------
- tests/rpme.at |  1 -
- 2 files changed, 13 insertions(+), 34 deletions(-)
-
-diff --git a/lib/fprint.cc b/lib/fprint.cc
-index 436d607f7..d97976728 100644
---- a/lib/fprint.cc
-+++ b/lib/fprint.cc
-@@ -4,6 +4,7 @@
- 
- #include "system.h"
- 
-+#include <map>
- #include <unordered_map>
- 
- #include <rpm/rpmfileutil.h>	/* for rpmCleanPath */
-@@ -19,13 +20,6 @@
- #include "debug.h"
- #include <libgen.h>
- 
--
--static unsigned int sidHash(rpmsid sid)
--{
--    return sid;
--}
--
--
- /**
-  * Finger print cache entry.
-  * This is really a directory and symlink cache. We don't differentiate between
-@@ -58,41 +52,27 @@ struct fingerPrint {
- 	    ((a).subDirId == (b).subDirId) \
-     )
- 
--/* Hash value for a finger print pointer, based on dev and inode only! */
--struct fpHash
--{
--    size_t operator() (const fingerPrint *fp) const
--    {
--	unsigned int hash = 0;
--	int j;
--
--	hash = sidHash(fp->baseNameId);
--	if (fp->subDirId) hash ^= sidHash(fp->subDirId);
--
--	hash ^= ((unsigned)fp->entry->dev);
--	for (j=0; j<4; j++) hash ^= ((fp->entry->ino >> (8*j)) & 0xFF) << ((3-j)*8);
--
--	return hash;
--    }
--};
--
--struct fpEqual
-+struct fpLess
- {
-     bool operator()(const fingerPrint * k1, const fingerPrint * k2) const
-     {
--	/* If the addresses are the same, so are the values. */
-+	/* An item cannot be less than itself */
- 	if (k1 == k2)
--	    return true;
-+	    return false;
- 
--	/* Otherwise, compare fingerprints by value. */
--	if (FP_EQUAL(*k1, *k2))
--	    return true;
--	return false;
-+	if (FP_ENTRY_EQUAL(k1->entry, k2->entry)) {
-+	    if (k1->subDirId == k2->subDirId)
-+		return k1->baseNameId < k2->baseNameId;
-+	    return k1->subDirId < k2->subDirId;
-+	}
-+	if (k1->entry->dev == k2->entry->dev)
-+	    return k1->entry->ino < k2->entry->ino;
-+	return k1->entry->dev < k2->entry->dev;
-     }
- };
- 
- using rpmFpEntryHash = std::unordered_multimap<rpmsid,fprintCacheEntry_s>;
--using rpmFpHash = std::unordered_map<fingerPrint *,rpmffi_s,fpHash,fpEqual>;
-+using rpmFpHash = std::multimap<fingerPrint *,rpmffi_s,fpLess>;
- 
- /**
-  * Finger print cache.
--- 
-2.51.0
-

diff --git a/0001-Only-ever-call-pgpDigParamsSalt-on-signatures.patch b/0001-Only-ever-call-pgpDigParamsSalt-on-signatures.patch
deleted file mode 100644
index b222984..0000000
--- a/0001-Only-ever-call-pgpDigParamsSalt-on-signatures.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From fd1d728f2e929e6162376f45716d1904421ba891 Mon Sep 17 00:00:00 2001
-Message-ID: <fd1d728f2e929e6162376f45716d1904421ba891.1754390785.git.pmatilai@redhat.com>
-From: Panu Matilainen <pmatilai@redhat.com>
-Date: Tue, 5 Aug 2025 13:22:36 +0300
-Subject: [PATCH] Only ever call pgpDigParamsSalt() on signatures
-
-Ensure the verification item is a signature before calling
-pgpDigParamsSalt(). Otherwise we can end up calling it with the
-character array of a digest instead, which may not end well.
-
-The test relies on debug output from rpm-sequoia so it's a bit feeble,
-but it's the best we can do here.
-
-Should've been in c36c717f41683953b9c23e447a8df0d0ac7c845c.
----
- lib/rpmvs.cc       | 2 +-
- tests/rpmsigdig.at | 7 +++++++
- 2 files changed, 8 insertions(+), 1 deletion(-)
-
-diff --git a/lib/rpmvs.cc b/lib/rpmvs.cc
-index dae9cd647..99a325099 100644
---- a/lib/rpmvs.cc
-+++ b/lib/rpmvs.cc
-@@ -462,7 +462,7 @@ void rpmvsInitRange(struct rpmvs_s *sis, int range)
- 
- 	    rpmDigestBundleAddID(sis->bundle, sinfo->hashalgo, sinfo->id, 0);
- 	    /* OpenPGP v6 signatures need a grain of salt to go */
--	    if (sinfo->sig) {
-+	    if (sinfo->type == RPMSIG_SIGNATURE_TYPE && sinfo->sig) {
- 		const uint8_t *salt = NULL;
- 		size_t slen = 0;
- 		if (pgpDigParamsSalt(sinfo->sig, &salt, &slen) == 0 && salt) {
-diff --git a/tests/rpmsigdig.at b/tests/rpmsigdig.at
-index 13f47c885..f9dfff2c5 100644
---- a/tests/rpmsigdig.at
-+++ b/tests/rpmsigdig.at
-@@ -89,6 +89,13 @@ runroot rpmkeys -Kv --nosignature /data/RPMS/hello-1.0-1.i386.rpm
-     Legacy MD5 digest: NOTFOUND
- ],
- [])
-+
-+RPMTEST_CHECK([
-+RPM_TRACE=1 rpmkeys -K --nosignature /data/RPMS/hello-2.0-1.x86_64.rpm 2>&1 | grep -q pgpDigParamsSalt
-+],
-+[1],
-+[],
-+[])
- RPMTEST_CLEANUP
- 
- RPMTEST_SETUP_RW([rpmkeys key update and delete (rpmdb)])
--- 
-2.50.1
-

diff --git a/0001-Support-updating-individual-IDs-in-a-digest-bundle.patch b/0001-Support-updating-individual-IDs-in-a-digest-bundle.patch
deleted file mode 100644
index 9111163..0000000
--- a/0001-Support-updating-individual-IDs-in-a-digest-bundle.patch
+++ /dev/null
@@ -1,162 +0,0 @@
-From 28e4f05c71202b2614619e9d9a51af9443014f34 Mon Sep 17 00:00:00 2001
-Message-ID: <28e4f05c71202b2614619e9d9a51af9443014f34.1754384752.git.pmatilai@redhat.com>
-From: Panu Matilainen <pmatilai@redhat.com>
-Date: Tue, 1 Jul 2025 11:48:12 +0300
-Subject: [PATCH 1/2] Support updating individual IDs in a digest bundle
-
-Up to now, rpm digest bundles have only needed to support data from a
-single stream - just covering different ranges and algorithms. But
-OpenPGP v6 signature salt is a random per-signature thing that we need
-to feed into the digest before the actual data, so we need to be able to
-update each ID in a bundle individually too.
-
-Luckily this is easy to do. Add a small test-program to exercise it,
-we can't yet actually use it for testing a real-world V6 scenario
-anyway.
-
-Fixes: #3845
----
- include/rpm/rpmcrypto.h | 11 +++++++++++
- rpmio/digest.cc         | 11 +++++++++++
- tests/CMakeLists.txt    |  2 +-
- tests/rpmdig.c          | 40 ++++++++++++++++++++++++++++++++++++++++
- tests/rpmsigdig.at      | 15 +++++++++++++++
- 5 files changed, 78 insertions(+), 1 deletion(-)
- create mode 100644 tests/rpmdig.c
-
-diff --git a/include/rpm/rpmcrypto.h b/include/rpm/rpmcrypto.h
-index d8e31a222..e9ab646fc 100644
---- a/include/rpm/rpmcrypto.h
-+++ b/include/rpm/rpmcrypto.h
-@@ -144,6 +144,17 @@ int rpmDigestBundleAddID(rpmDigestBundle bundle, int algo, int id,
-  */
- int rpmDigestBundleUpdate(rpmDigestBundle bundle, const void *data, size_t len);
- 
-+/** \ingroup rpmcrypto
-+ * Update context of an individual ID within bundle with next plain text buffer.
-+ * @param bundle	digest bundle
-+ * @param id		id of digest (arbitrary, must be > 0)
-+ * @param data		next data buffer
-+ * @param len		no. bytes of data
-+ * @return		0 on success
-+ */
-+int rpmDigestBundleUpdateID(rpmDigestBundle bundle, int id,
-+			const void *data, size_t len);
-+
- /** \ingroup rpmcrypto
-  * Return digest from a bundle and destroy context, see rpmDigestFinal().
-  *
-diff --git a/rpmio/digest.cc b/rpmio/digest.cc
-index 47e4df913..ac9ad07e0 100644
---- a/rpmio/digest.cc
-+++ b/rpmio/digest.cc
-@@ -66,6 +66,17 @@ int rpmDigestBundleUpdate(rpmDigestBundle bundle, const void *data, size_t len)
-     return rc;
- }
- 
-+int rpmDigestBundleUpdateID(rpmDigestBundle bundle, int id,
-+			    const void *data, size_t len)
-+{
-+    int rc = -1;
-+    if (bundle && data && len > 0 && id > 0) {
-+	auto it = bundle->digs.find(id);
-+	if (it != bundle->digs.end())
-+	    rc = rpmDigestUpdate(it->second, data, len);
-+    }
-+    return rc;
-+}
- int rpmDigestBundleFinal(rpmDigestBundle bundle, int id,
- 			 void ** datap, size_t * lenp, int asAscii)
- {
-diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
-index bef9c8bd2..5def091d9 100644
---- a/tests/CMakeLists.txt
-+++ b/tests/CMakeLists.txt
-@@ -62,7 +62,7 @@ foreach(at ${TESTSUITE_AT})
- 	FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/rpmtests.at "m4_include([${at}])\n")
- endforeach()
- 
--set(TESTPROGS rpmpgpcheck rpmpgppubkeyfingerprint readpkgnullts)
-+set(TESTPROGS rpmpgpcheck rpmpgppubkeyfingerprint readpkgnullts rpmdig)
- foreach(prg ${TESTPROGS})
- 	add_executable(${prg} EXCLUDE_FROM_ALL ${prg}.c)
- 	target_link_libraries(${prg} PRIVATE librpm)
-diff --git a/tests/rpmdig.c b/tests/rpmdig.c
-new file mode 100644
-index 000000000..fc04797d5
---- /dev/null
-+++ b/tests/rpmdig.c
-@@ -0,0 +1,40 @@
-+#include <stddef.h>
-+#include <stdio.h>
-+#include <stdlib.h>
-+#include <string.h>
-+
-+#include <rpm/rpmcrypto.h>
-+
-+static void printID(rpmDigestBundle b, int id)
-+{
-+    char *s = NULL;
-+    if (rpmDigestBundleFinal(b, id, (void **)&s, NULL, 1) == 0) {
-+	printf("%d: %s\n", id, s);
-+	free(s);
-+    }
-+}
-+
-+int main(int argc, char *argv[])
-+{
-+    const char *AAA = "AAA";
-+    const char *BBB = "BBB";
-+
-+    if (rpmInitCrypto())
-+	return EXIT_FAILURE;
-+
-+    rpmDigestBundle b = rpmDigestBundleNew();
-+    rpmDigestBundleAddID(b, RPM_HASH_SHA256, 1, 0);
-+    rpmDigestBundleAddID(b, RPM_HASH_SHA256, 2, 0);
-+    rpmDigestBundleAddID(b, RPM_HASH_SHA256, 3, 0);
-+    rpmDigestBundleAddID(b, RPM_HASH_SHA512, 4, 0);
-+    
-+    rpmDigestBundleUpdateID(b, 2, BBB, strlen(BBB));
-+    rpmDigestBundleUpdate(b, AAA, strlen(AAA));
-+
-+    for (int i = 1; i < 5; ++i)
-+	printID(b, i);
-+
-+    rpmDigestBundleFree(b);
-+    rpmFreeCrypto();
-+    return 0;
-+}
-diff --git a/tests/rpmsigdig.at b/tests/rpmsigdig.at
-index d0154aeec..cbb4d4c07 100644
---- a/tests/rpmsigdig.at
-+++ b/tests/rpmsigdig.at
-@@ -7,6 +7,20 @@ m4_define([RPMOUTPUT_SEQUOIA], [m4_if(RPM_PGP, [sequoia], [$1
- m4_define([RPMOUTPUT_LEGACY], [m4_if(RPM_PGP, [legacy], [$1
- ])])
- 
-+RPMTEST_SETUP([Digest bundle])
-+AT_KEYWORDS([digest])
-+RPMTEST_CHECK([
-+rpmdig
-+],
-+[0],
-+[1: cb1ad2119d8fafb69566510ee712661f9f14b83385006ef92aec47f523a38358
-+2: e6c9f16ad216ab08c2511d9e67b450dbef6e0522a735ae2b0a61cef453fbcaa2
-+3: cb1ad2119d8fafb69566510ee712661f9f14b83385006ef92aec47f523a38358
-+4: 8d708d18b54df3962d696f069ad42dad7762b5d4d3c97ee5fa2dae0673ed46545164c078b8db3d59c4b96020e4316f17bb3d91bf1f6bc0896bbe75416eb8c385
-+],
-+[])
-+RPMTEST_CLEANUP
-+
- RPMTEST_SETUP([seen signer id tracking])
- AT_KEYWORDS([query signature])
- RPMTEST_CHECK([
-@@ -2455,3 +2469,4 @@ runroot rpmkeys --delete 036824f0ac60aed6f1a3256f88190469f6d7255e3d8e41c577233aa
- [],
- [])
- RPMTEST_CLEANUP
-+
--- 
-2.50.1
-

diff --git a/0002-Support-OpenPGP-v6-signature-pre-salting.patch b/0002-Support-OpenPGP-v6-signature-pre-salting.patch
deleted file mode 100644
index 3bb9331..0000000
--- a/0002-Support-OpenPGP-v6-signature-pre-salting.patch
+++ /dev/null
@@ -1,202 +0,0 @@
-From c36c717f41683953b9c23e447a8df0d0ac7c845c Mon Sep 17 00:00:00 2001
-Message-ID: <c36c717f41683953b9c23e447a8df0d0ac7c845c.1754384752.git.pmatilai@redhat.com>
-In-Reply-To: <28e4f05c71202b2614619e9d9a51af9443014f34.1754384752.git.pmatilai@redhat.com>
-References: <28e4f05c71202b2614619e9d9a51af9443014f34.1754384752.git.pmatilai@redhat.com>
-From: Panu Matilainen <pmatilai@redhat.com>
-Date: Tue, 1 Jul 2025 12:15:03 +0300
-Subject: [PATCH 2/2] Support OpenPGP v6 signature pre-salting
-
-OpenPGP v6 signature salt is a random per-signature thing that we need
-to feed into the digest before the actual data. For that we need
-rpm-sequoia support, the first version to have it is 1.9.0.
-
-The tests for this are already written, just need to be adjusted a bit
-and uncommented, so do that. Kudos to Jakub for covering this part via
-PR #3844 (squashed into this commit)!
-
-Co-authored-by: Jakub Jelen <jjelen@redhat.com>
-
-Fixes: #3846
----
- INSTALL                 |  2 +-
- include/rpm/rpmpgp.h    |  2 ++
- lib/rpmvs.cc            | 14 ++++++++--
- rpmio/CMakeLists.txt    |  2 +-
- rpmio/rpmpgp_sequoia.cc |  3 ++
- tests/Dockerfile.fedora |  2 +-
- tests/rpmsigdig.at      | 61 ++++++++++++++++-------------------------
- 7 files changed, 44 insertions(+), 42 deletions(-)
-
-diff --git a/INSTALL b/INSTALL
-index 0fbb72dcf..bfd129b95 100644
---- a/INSTALL
-+++ b/INSTALL
-@@ -42,7 +42,7 @@ The scdoc manual page generator, available from
-     https://git.sr.ht/~sircmpwn/scdoc
- 
- You will need a cryptographic library to support digests and an OpenPGP
--implementation to support signatures. rpm-sequoia (>= 1.3.0 required) is
-+implementation to support signatures. rpm-sequoia (>= 1.9.0 required) is
- the most complete option, covering both, and also the default:
-     https://github.com/rpm-software-management/rpm-sequoia
- 
-diff --git a/include/rpm/rpmpgp.h b/include/rpm/rpmpgp.h
-index f5efbbf68..ee9d8f5a5 100644
---- a/include/rpm/rpmpgp.h
-+++ b/include/rpm/rpmpgp.h
-@@ -489,6 +489,8 @@ int pgpDigParamsVersion(pgpDigParams digp);
-  */
- uint32_t pgpDigParamsCreationTime(pgpDigParams digp);
- 
-+int pgpDigParamsSalt(pgpDigParams digp, const uint8_t **datap, size_t *lenp);
-+
- /** \ingroup rpmpgp
-  * Destroy parsed OpenPGP packet parameter(s).
-  * @param digp		parameter container
-diff --git a/lib/rpmvs.cc b/lib/rpmvs.cc
-index 5d7079206..dae9cd647 100644
---- a/lib/rpmvs.cc
-+++ b/lib/rpmvs.cc
-@@ -457,8 +457,18 @@ void rpmvsInitRange(struct rpmvs_s *sis, int range)
-     for (int i = 0; i < sis->nsigs; i++) {
- 	struct rpmsinfo_s *sinfo = &sis->sigs[i];
- 	if (sinfo->range & range) {
--	    if (sinfo->rc == RPMRC_OK)
--		rpmDigestBundleAddID(sis->bundle, sinfo->hashalgo, sinfo->id, 0);
-+	    if (sinfo->rc != RPMRC_OK)
-+		continue;
-+
-+	    rpmDigestBundleAddID(sis->bundle, sinfo->hashalgo, sinfo->id, 0);
-+	    /* OpenPGP v6 signatures need a grain of salt to go */
-+	    if (sinfo->sig) {
-+		const uint8_t *salt = NULL;
-+		size_t slen = 0;
-+		if (pgpDigParamsSalt(sinfo->sig, &salt, &slen) == 0 && salt) {
-+		    rpmDigestBundleUpdateID(sis->bundle, sinfo->id, salt, slen);
-+		}
-+	    }
- 	}
-     }
- }
-diff --git a/rpmio/CMakeLists.txt b/rpmio/CMakeLists.txt
-index 3148522dd..65d22f620 100644
---- a/rpmio/CMakeLists.txt
-+++ b/rpmio/CMakeLists.txt
-@@ -22,7 +22,7 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/rpmio/rpmpgp_legacy/CMakeLists.txt)
- endif()
- 
- if (WITH_SEQUOIA)
--	pkg_check_modules(RPMSEQUOIA REQUIRED IMPORTED_TARGET rpm-sequoia>=1.8.0)
-+	pkg_check_modules(RPMSEQUOIA REQUIRED IMPORTED_TARGET rpm-sequoia>=1.9.0)
- 	target_sources(librpmio PRIVATE rpmpgp_sequoia.cc)
- 	target_link_libraries(librpmio PRIVATE PkgConfig::RPMSEQUOIA)
- else()
-diff --git a/rpmio/rpmpgp_sequoia.cc b/rpmio/rpmpgp_sequoia.cc
-index d7f362994..84313e6a5 100644
---- a/rpmio/rpmpgp_sequoia.cc
-+++ b/rpmio/rpmpgp_sequoia.cc
-@@ -37,6 +37,9 @@ W(const uint8_t *, pgpDigParamsSignID, (pgpDigParams digp), (digp))
- W(const char *, pgpDigParamsUserID, (pgpDigParams digp), (digp))
- W(int, pgpDigParamsVersion, (pgpDigParams digp), (digp))
- W(uint32_t, pgpDigParamsCreationTime, (pgpDigParams digp), (digp))
-+W(int, pgpDigParamsSalt,
-+  (pgpDigParams digp, const uint8_t **datap, size_t *lenp),
-+  (digp, datap, lenp))
- W(rpmRC, pgpVerifySignature,
-   (pgpDigParams key, pgpDigParams sig, DIGEST_CTX hashctx),
-   (key, sig, hashctx))
-diff --git a/tests/Dockerfile.fedora b/tests/Dockerfile.fedora
-index 8fc61ba2b..0e8041b1d 100644
---- a/tests/Dockerfile.fedora
-+++ b/tests/Dockerfile.fedora
-@@ -60,7 +60,7 @@ RUN dnf -y install \
- # Incapacitate IMA, needed until #3234 lands in fedora
- RUN rm -f /usr/lib/rpm/macros.d/macros.transaction_ima
- # If updates to specific packages are needed, do it here
--RUN dnf -y --enablerepo=rawhide install "sequoia-sq >= 1.3" "rpm-sequoia >= 1.8" "crypto-policies >= 20250402"
-+RUN dnf -y --enablerepo=rawhide install "sequoia-sq >= 1.3" "rpm-sequoia >= 1.9" "crypto-policies >= 20250402"
- RUN dnf clean all
- 
- # Workaround for pkgconf(1)'s unlisted dependency on rpm.
-diff --git a/tests/rpmsigdig.at b/tests/rpmsigdig.at
-index cbb4d4c07..13f47c885 100644
---- a/tests/rpmsigdig.at
-+++ b/tests/rpmsigdig.at
-@@ -2408,28 +2408,20 @@ runroot rpmsign --addsign --rpmv6 /tmp/hello-2.0-1.x86_64.rpm
- [],
- [])
- 
--# The test reflects what I *assume* this should return as v6 key ids are the
--# first 64 bits of the fingerprint, but this is very cursory skim through
--# rfc-9580 and might not be right. What we're currently getting as the
--# signer key is the last 64bit as with v4 keys, and when this doesn't match
--# with what we get from the subkey ids, rpm does not find the key.
--# In addition, rpm-sequoia 1.8 doesn't handle the v6 trailer so it's BAD
--# instead of NOKEY.
--# Header OpenPGP V6 Ed25519/SHA512 signature, key ID 0e00df3ed2d7b65e: BAD
--#RPMTEST_CHECK([
--#runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm
--#],
--#[0],
--#[/tmp/hello-2.0-1.x86_64.rpm:
--#    Header OpenPGP V6 Ed25519/SHA512 signature, key ID 6118abe481c41473: NOKEY
--#    Header OpenPGP RSA signature: NOTFOUND
--#    Header OpenPGP DSA signature: NOTFOUND
--#    Header SHA256 digest: OK
--#    Payload SHA256 digest: OK
--#    Legacy OpenPGP RSA signature: NOTFOUND
--#    Legacy OpenPGP DSA signature: NOTFOUND
--#],
--#[])
-+RPMTEST_CHECK([
-+runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm
-+],
-+[1],
-+[/tmp/hello-2.0-1.x86_64.rpm:
-+    Header OpenPGP V6 Ed25519/SHA512 signature, key ID 6118abe481c41473: NOKEY
-+    Header OpenPGP RSA signature: NOTFOUND
-+    Header OpenPGP DSA signature: NOTFOUND
-+    Header SHA256 digest: OK
-+    Payload SHA256 digest: OK
-+    Legacy OpenPGP RSA signature: NOTFOUND
-+    Legacy OpenPGP DSA signature: NOTFOUND
-+],
-+[])
- 
- RPMTEST_CHECK([
- runroot rpmkeys --import /data/keys/rpm.org-v6-ed25519-test.asc
-@@ -2446,21 +2438,16 @@ runroot rpmkeys --list 036824f0ac60aed6f1a3256f88190469f6d7255e3d8e41c577233aa03
- ],
- [])
- 
--# This is currently failing, see the NOKEY case above
--#RPMTEST_CHECK([
--#runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm
--#],
--#[0],
--#[/tmp/hello-2.0-1.x86_64.rpm:
--#    Header OpenPGP V6 Ed25519/SHA512 signature, key fingerprint 036824f0ac60aed6f1a3256f88190469f6d7255e3d8e41c577233aa03e0bb9d3 OK
--#    Header OpenPGP RSA signature: NOTFOUND
--#    Header OpenPGP DSA signature: NOTFOUND
--#    Header SHA256 digest: OK
--#    Payload SHA256 digest: OK
--#    Legacy OpenPGP RSA signature: NOTFOUND
--#    Legacy OpenPGP DSA signature: NOTFOUND
--#],
--#[])
-+RPMTEST_CHECK([
-+runroot rpmkeys -Kv /tmp/hello-2.0-1.x86_64.rpm
-+],
-+[0],
-+[/tmp/hello-2.0-1.x86_64.rpm:
-+    Header OpenPGP V6 Ed25519/SHA512 signature, key fingerprint: 036824f0ac60aed6f1a3256f88190469f6d7255e3d8e41c577233aa03e0bb9d3: OK
-+    Header SHA256 digest: OK
-+    Payload SHA256 digest: OK
-+],
-+[])
- 
- RPMTEST_CHECK([
- runroot rpmkeys --delete 036824f0ac60aed6f1a3256f88190469f6d7255e3d8e41c577233aa03e0bb9d3
--- 
-2.50.1
-

diff --git a/rpm.spec b/rpm.spec
index ec8b417..8f26c52 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -22,9 +22,9 @@
 
 %define rpmhome /usr/lib/rpm
 
-%global rpmver 5.99.91
+%global rpmver 5.99.92
 #global snapver rc1
-%global baserelease 5
+%global baserelease 1
 %global sover 10
 
 %global srcver %{rpmver}%{?snapver:-%{snapver}}
@@ -124,10 +124,6 @@ rpm-6.0-rpmformat.patch
 0001-Revert-Add-a-deprecation-warning-for-clamp_mtime_to_.patch
 
 # Patches already upstream:
-0001-Support-updating-individual-IDs-in-a-digest-bundle.patch
-0002-Support-OpenPGP-v6-signature-pre-salting.patch
-0001-Only-ever-call-pgpDigParamsSalt-on-signatures.patch
-0001-Fix-fingerprinting-regression-from-08a6a5e848f007c2e.patch
 
 # These are not yet upstream
 rpm-4.7.1-geode-i686.patch
@@ -462,6 +458,7 @@ fi
 %{_mandir}/man1/rpmsort.1*
 %{_mandir}/man5/rpm-config.5*
 %{_mandir}/man5/rpm-macrofile.5*
+%{_mandir}/man5/rpm-manifest.5*
 %{_mandir}/man5/rpm-rpmrc.5*
 %{_mandir}/man7/rpm-lua.7*
 %{_mandir}/man7/rpm-macros.7*
@@ -625,6 +622,9 @@ fi
 %doc %{_defaultdocdir}/rpm/API/
 
 %changelog
+* Wed Aug 27 2025 Panu Matilainen <pmatilai@redhat.com> - 5.99.92-1
+- Rebase to 6.0 beta2 (https://rpm.org/releases/5.99.92)
+
 * Mon Aug 25 2025 Panu Matilainen <pmatilai@redhat.com> - 5.99.91-5
 - Fix fingerprinting regression causing files left behind
 

diff --git a/sources b/sources
index 9cf0aa8..61164fa 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (rpm-5.99.91.tar.bz2) = fef131241c9a0443201fc04554b5afa8fa4dd15d808c1ffca802429b7e836c97c2264589c1614203fc747b07cbf1e36b1fce5318c5208f31649617b0f770bd91
+SHA512 (rpm-5.99.92.tar.bz2) = bcfcd2fbdffcf425669e8115e1cc9fb3ccfb79b68829cea914a2b0eab5afcc90bfaa7ebc34fbd06e26bdd51a03557bd36e7c89cce695827af89c62a6625bd766

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

only message in thread, other threads:[~2026-11-23  9:36 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:36 [rpms/rpm] pmatilai-v6: Rebase to 6.0 beta2 (https://rpm.org/releases/5.99.92) Panu Matilainen

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