public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mikel Olasagasti Uranga <mikel@olasagasti.info>
To: git-commits@fedoraproject.org
Subject: [rpms/pgpdump] f43: Patch to enable build with newer GCC version. Fixes rhbz#2434914
Date: Fri, 07 Aug 2026 17:33:05 GMT [thread overview]
Message-ID: <178612398596.1.15479502953556493941.rpms-pgpdump-3b38e9db3a4d@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pgpdump
Branch : f43
Commit : 3b38e9db3a4d4b4f7037ebdb923f3ac526e78f91
Author : Mikel Olasagasti Uranga <mikel@olasagasti.info>
Date : 2026-02-10T22:09:46+01:00
Stats : +43/-5 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/pgpdump/c/3b38e9db3a4d4b4f7037ebdb923f3ac526e78f91?branch=f43
Log:
Patch to enable build with newer GCC version. Fixes rhbz#2434914
---
diff --git a/541442dc04259bde680b46742522177be40cc065.patch b/541442dc04259bde680b46742522177be40cc065.patch
new file mode 100644
index 0000000..e6a6041
--- /dev/null
+++ b/541442dc04259bde680b46742522177be40cc065.patch
@@ -0,0 +1,32 @@
+From 541442dc04259bde680b46742522177be40cc065 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Sun, 17 Nov 2024 02:04:03 +0000
+Subject: [PATCH] Fix C23 compatibility
+
+C23 removes unprototyped functions, so fix the function pointer type.
+---
+ packet.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/packet.c b/packet.c
+index b6f3665..bdd3d3e 100644
+--- a/packet.c
++++ b/packet.c
+@@ -4,7 +4,7 @@
+
+ #include "pgpdump.h"
+
+-typedef void (*funcptr)();
++typedef void (*funcptr)(int);
+
+ private int get_new_len(int);
+ private int is_partial(int);
+@@ -91,7 +91,7 @@ TAG[] = {
+ #define TAG_NUM (sizeof(TAG) * sizeof(string))
+
+ private void
+-(*tag_func[])() = {
++(*tag_func[])(int) = {
+ Reserved,
+ Public_Key_Encrypted_Session_Key_Packet,
+ Signature_Packet,
diff --git a/pgpdump.spec b/pgpdump.spec
index 7d2994e..52bca9a 100644
--- a/pgpdump.spec
+++ b/pgpdump.spec
@@ -1,11 +1,14 @@
Name: pgpdump
Version: 0.36
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: PGP packet visualizer
License: MIT
-URL: http://www.mew.org/~kazu/proj/pgpdump/
-Source0: http://www.mew.org/~kazu/proj/pgpdump/%{name}-%{version}.tar.gz
-BuildRequires: make
+URL: https://www.mew.org/~kazu/proj/pgpdump/
+Source0: https://www.mew.org/~kazu/proj/pgpdump/%{name}-%{version}.tar.gz
+# Fix build with newer GCC versions
+# https://github.com/kazu-yamamoto/pgpdump/pull/45
+Patch: 541442dc04259bde680b46742522177be40cc065.patch
+BuildRequires: make
BuildRequires: bzip2-devel
BuildRequires: zlib-devel
BuildRequires: gcc
@@ -15,7 +18,7 @@ pgpdump is a PGP packet visualizer which displays the packet format of
OpenPGP (RFC 4880) and PGP version 2 (RFC 1991).
%prep
-%setup -q
+%autosetup
%build
%configure
@@ -31,6 +34,9 @@ OpenPGP (RFC 4880) and PGP version 2 (RFC 1991).
%{_mandir}/man1/pgpdump.1*
%changelog
+* Tue Feb 10 2026 Mikel Olasagasti Uranga <mikel@olasagasti.info> - 0.36-5
+- Patch to enable build with newer GCC version. Fixes rhbz#2434914
+
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.36-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
reply other threads:[~2026-08-07 17:33 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=178612398596.1.15479502953556493941.rpms-pgpdump-3b38e9db3a4d@fedoraproject.org \
--to=mikel@olasagasti.info \
--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