public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/abrt] update-2.17.8: added patch to build with rpm 4.9
@ 2026-08-03 10:22 Jiri Moskovcak
  0 siblings, 0 replies; only message in thread
From: Jiri Moskovcak @ 2026-08-03 10:22 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/abrt
Branch : update-2.17.8
Commit : 4a5a3ac6b44ad1f2c3f93befe22ec5dcd6493680
Author : Jiri Moskovcak <jmoskovc@redhat.com>
Date   : 2011-01-19T18:38:49+01:00
Stats  : +22/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/abrt/c/4a5a3ac6b44ad1f2c3f93befe22ec5dcd6493680?branch=update-2.17.8

Log:
added patch to build with rpm 4.9

---
diff --git a/abrt-1.1.14-rpm-digestalgo.patch b/abrt-1.1.14-rpm-digestalgo.patch
new file mode 100644
index 0000000..d8560ff
--- /dev/null
+++ b/abrt-1.1.14-rpm-digestalgo.patch
@@ -0,0 +1,22 @@
+diff -up abrt-1.1.14/src/Daemon/RPM.cpp.rpm49-hashalgo abrt-1.1.14/src/Daemon/RPM.cpp
+--- abrt-1.1.14/src/Daemon/RPM.cpp.rpm49-hashalgo	2010-11-15 14:46:06.000000000 +0200
++++ abrt-1.1.14/src/Daemon/RPM.cpp	2011-01-18 10:57:57.000000000 +0200
+@@ -112,7 +112,6 @@ bool CheckHash(const char* pPackage, con
+     if (header != NULL)
+     {
+         rpmfi fi = rpmfiNew(ts, header, RPMTAG_BASENAMES, RPMFI_NOHEADER);
+-        pgpHashAlgo hashAlgo;
+         std::string headerHash;
+         char computedHash[1024] = "";
+ 
+@@ -120,8 +119,8 @@ bool CheckHash(const char* pPackage, con
+         {
+             if (strcmp(pPath, rpmfiFN(fi)) == 0)
+             {
+-                headerHash = rpmfiFDigestHex(fi, &hashAlgo);
+-                rpmDoDigest(hashAlgo, pPath, 1, (unsigned char*) computedHash, NULL);
++                headerHash = rpmfiFDigestHex(fi, NULL);
++                rpmDoDigest(rpmfiDigestAlgo(fi), pPath, 1, (unsigned char*) computedHash, NULL);
+                 ret = (headerHash != "" && headerHash == computedHash);
+                 break;
+             }

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

only message in thread, other threads:[~2026-08-03 10:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-03 10:22 [rpms/abrt] update-2.17.8: added patch to build with rpm 4.9 Jiri Moskovcak

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