[packages/gnupg] Rel 6; fix ipc detection

arekm arekm at pld-linux.org
Fri Sep 25 08:57:22 CEST 2026


commit 7aaae59b0e7788f48a75b2c05378b3da6a3ba8ed
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Sep 25 08:53:19 2026 +0200

    Rel 6; fix ipc detection

 c99.patch  | 42 ++++++++++++++++++++++++++++++++++++++++++
 gnupg.spec |  5 ++++-
 2 files changed, 46 insertions(+), 1 deletion(-)
---
diff --git a/gnupg.spec b/gnupg.spec
index e5dd33e..2670da9 100644
--- a/gnupg.spec
+++ b/gnupg.spec
@@ -13,7 +13,7 @@ Summary(uk.UTF-8):	GNU Privacy Guard - вільна заміна PGP
 Summary(zh_CN.UTF-8):	GPL的PGP加密程序
 Name:		gnupg
 Version:	1.4.23
-Release:	5
+Release:	6
 License:	GPL v3+
 Group:		Applications/File
 Source0:	https://www.gnupg.org/ftp/gcrypt/gnupg/%{name}-%{version}.tar.bz2
@@ -23,7 +23,9 @@ Patch1:		%{name}-pl.po-update.patch
 Patch2:		%{name}-fix.patch
 Patch3:		gcc10.patch
 Patch4:		ldap.patch
+Patch5:		c99.patch
 URL:		https://www.gnupg.org/
+BuildRequires:	autoconf >= 2.61
 BuildRequires:	automake >= 1:1.9.3
 BuildRequires:	bzip2-devel
 BuildRequires:	curl-devel
@@ -182,6 +184,7 @@ kluczy.
 %patch -P2 -p1
 %patch -P3 -p1
 %patch -P4 -p1
+%patch -P5 -p1
 
 %{__rm} po/stamp-po
 
diff --git a/c99.patch b/c99.patch
new file mode 100644
index 0000000..abc4140
--- /dev/null
+++ b/c99.patch
@@ -0,0 +1,42 @@
+From 23745cddcc4814b3d5c544100eb371b3e7d187b8 Mon Sep 17 00:00:00 2001
+From: Florian Weimer via Gnupg-devel <gnupg-devel at gnupg.org>
+Date: Fri, 27 Jan 2023 13:11:08 +0100
+Subject: [PATCH] C99 compatibility fixes for gnupg 1
+
+--
+Include <stdlib.h> for the exit function.  This avoids a failing
+GNUPG_CHECK_IPC check in case the compiler no longer supports implicit
+function declarations.
+
+Explicitly declare the return type of main as int.  This too avoids
+failures with future compilers.
+---
+ acinclude.m4 | 1 +
+ configure.ac | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/acinclude.m4 b/acinclude.m4
+index 44dfd85a9..ed4992e71 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -314,6 +314,7 @@ define(GNUPG_CHECK_IPC,
+              #include <sys/types.h>
+              #include <sys/ipc.h>
+              #include <sys/shm.h>
++             #include <stdlib.h>
+              int main()
+              {
+                int id;
+diff --git a/configure.ac b/configure.ac
+index 0c24a4379..9acbfa838 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1272,7 +1272,7 @@ if test "$use_regex" = yes ; then
+        AC_TRY_RUN([
+ #include <unistd.h>
+ #include <regex.h>
+-main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }],
++int main(void) { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }],
+        gnupg_cv_regex_broken=no, gnupg_cv_regex_broken=yes, gnupg_cv_regex_broken=yes))
+ 
+      if test $gnupg_cv_regex_broken = yes ; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gnupg.git/commitdiff/7aaae59b0e7788f48a75b2c05378b3da6a3ba8ed



More information about the pld-cvs-commit mailing list