public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jiri Moskovcak <jmoskovc@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/abrt] update-2.17.9-f44: added patch to build with rpm 4.9
Date: Mon, 03 Aug 2026 11:03:17 GMT	[thread overview]
Message-ID: <178575499752.1.15754468288186827061.rpms-abrt-4a5a3ac6b44a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/abrt
Branch : update-2.17.9-f44
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.9-f44

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;
+             }

                 reply	other threads:[~2026-08-03 11:03 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=178575499752.1.15754468288186827061.rpms-abrt-4a5a3ac6b44a@fedoraproject.org \
    --to=jmoskovc@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