[packages/gnustep-base] add upstream patch to fix build with gcc 15
atler
atler at pld-linux.org
Sun Jan 25 01:43:46 CET 2026
commit ae1a841ce82b64de9d1066e42c7dd0f483768771
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Jan 25 01:43:04 2026 +0100
add upstream patch to fix build with gcc 15
gnustep-base.spec | 2 ++
types.patch | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 69 insertions(+)
---
diff --git a/gnustep-base.spec b/gnustep-base.spec
index d98109e..dab10e4 100644
--- a/gnustep-base.spec
+++ b/gnustep-base.spec
@@ -25,6 +25,7 @@ Patch1: %{name}-ac.patch
Patch2: %{name}-link.patch
Patch3: %{name}-icu68.patch
Patch4: build.patch
+Patch5: types.patch
URL: http://www.gnustep.org/
BuildRequires: autoconf >= 2.60
BuildRequires: avahi-devel
@@ -100,6 +101,7 @@ podstawowej biblioteki GNUstep.
%patch -P2 -p1
%patch -P3 -p1
%patch -P4 -p1
+%patch -P5 -p1
%build
%{__autoconf} -Iconfig
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..776645e
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,67 @@
+From 7b51c1bb4ed0b1777db2f018eadaba89f00bf0c5 Mon Sep 17 00:00:00 2001
+From: rfm <richardfrithmacdonald at gmail.com>
+Date: Sun, 18 May 2025 12:14:45 +0100
+Subject: [PATCH] fix signal handler for dumping internals to report signal.
+
+---
+ Tools/gdomap.c | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/Tools/gdomap.c b/Tools/gdomap.c
+index c04fb522c5..88d02ef727 100644
+--- a/Tools/gdomap.c
++++ b/Tools/gdomap.c
+@@ -192,7 +192,7 @@ static char *local_hostname = 0;
+ */
+ static void dump_stats();
+ #ifndef __MINGW__
+-static void dump_tables();
++static void dump_tables(int);
+ #endif
+ static void handle_accept();
+ static void handle_io();
+@@ -1135,7 +1135,7 @@ dump_stats()
+
+ #ifndef __MINGW__
+ static void
+-dump_tables()
++dump_tables(int sig)
+ {
+ FILE *fptr;
+
+@@ -1143,7 +1143,7 @@ dump_tables()
+ if (access(".", W_OK) != 0)
+ {
+ snprintf(ebuf, sizeof(ebuf),
+- "Failed to access gdomap.dump file for output\n");
++ "Failed to access gdomap.dump file for output (sig %d)\n", sig);
+ gdomap_log(LOG_ERR);
+ return;
+ }
+@@ -1174,7 +1174,7 @@ dump_tables()
+ else
+ {
+ snprintf(ebuf, sizeof(ebuf),
+- "Failed to open gdomap.dump file for output\n");
++ "Failed to open gdomap.dump file for output (sig %d)\n", sig);
+ gdomap_log(LOG_ERR);
+ }
+ }
+@@ -2026,7 +2026,7 @@ init_ports()
+ /*
+ * Enable table dumping to /tmp/gdomap.dump
+ */
+- signal(SIGUSR1, dump_tables);
++ signal(SIGUSR1, (void(*)(int))dump_tables);
+ #endif /* !__MINGW__ */
+ }
+
+@@ -3704,7 +3704,7 @@ tryWrite(int desc, int tim, unsigned char* dat, int len)
+ #if defined(__MINGW__) /* FIXME: Is this correct? */
+ rval = send(desc, (const char*)&dat[pos], len - pos, 0);
+ #else
+- void (*ifun)();
++ void (*ifun)(int);
+
+ /*
+ * Should be able to write this short a message immediately, but
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gnustep-base.git/commitdiff/ae1a841ce82b64de9d1066e42c7dd0f483768771
More information about the pld-cvs-commit
mailing list