public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pgpdump] f44: Patch to enable build with newer GCC version. Fixes rhbz#2434914
@ 2026-08-07 16:55 Mikel Olasagasti Uranga
  0 siblings, 0 replies; only message in thread
From: Mikel Olasagasti Uranga @ 2026-08-07 16:55 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/pgpdump
Branch : f44
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=f44

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
 

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

only message in thread, other threads:[~2026-08-07 16:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 16:55 [rpms/pgpdump] f44: Patch to enable build with newer GCC version. Fixes rhbz#2434914 Mikel Olasagasti Uranga

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