[packages/plotutils] - patch to fix build in C23 mode; release 17
qboosh
qboosh at pld-linux.org
Sun Feb 8 11:36:57 CET 2026
commit 935b17adf67af024593109d55a7c2fb8da5cfb14
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 8 11:37:16 2026 +0100
- patch to fix build in C23 mode; release 17
plotutils-c23.patch | 38 ++++++++++++++++++++++++++++++++++++++
plotutils.spec | 4 +++-
2 files changed, 41 insertions(+), 1 deletion(-)
---
diff --git a/plotutils.spec b/plotutils.spec
index cc078ae..272f86c 100644
--- a/plotutils.spec
+++ b/plotutils.spec
@@ -6,7 +6,7 @@ Name: plotutils
Version: 2.6
# Don't decrease release if LIBPLOT/LIBXMI versions are not increased, as then
# those subpackages get then lower release
-Release: 16
+Release: 17
License: GPL v3+
Group: Applications/Graphics
Source0: https://ftp.gnu.org/gnu/plotutils/%{name}-%{version}.tar.gz
@@ -15,6 +15,7 @@ Patch0: %{name}-info.patch
Patch1: %{name}-ac.patch
Patch2: %{name}-libpng15.patch
Patch3: %{name}-format.patch
+Patch4: %{name}-c23.patch
URL: http://www.gnu.org/software/plotutils/plotutils.html
BuildRequires: autoconf
BuildRequires: automake
@@ -202,6 +203,7 @@ Biblioteka statyczna libxmi.
%patch -P1 -p1
%patch -P2 -p1
%patch -P3 -p1
+%patch -P4 -p1
%build
%{__libtoolize}
diff --git a/plotutils-c23.patch b/plotutils-c23.patch
new file mode 100644
index 0000000..792fb89
--- /dev/null
+++ b/plotutils-c23.patch
@@ -0,0 +1,38 @@
+--- plotutils-2.6/include/sys-defines.h.orig 2008-07-16 02:04:04.000000000 +0200
++++ plotutils-2.6/include/sys-defines.h 2026-02-08 10:51:27.635492474 +0100
+@@ -254,6 +254,7 @@ extern __C_LINKAGE void free (void * ptr
+ /**************************************************************************/
+
+ #ifndef __cplusplus
++#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 202311L)
+ #ifdef __STDC__
+ typedef enum { false = 0, true = 1 } bool;
+ #else /* not __STDC__, do things the old-fashioned way */
+@@ -261,6 +262,7 @@ typedef int bool;
+ #define false 0
+ #define true 1
+ #endif /* not __STDC__ */
++#endif
+ #endif /* not __cplusplus */
+
+ /**************************************************************************/
+--- plotutils-2.6/libxmi/sys-defines.h.orig 2005-11-27 23:14:34.000000000 +0100
++++ plotutils-2.6/libxmi/sys-defines.h 2026-02-08 10:56:13.147019510 +0100
+@@ -167,7 +167,7 @@ extern __C_LINKAGE void free (void * ptr
+ /**************************************************************************/
+
+ #ifndef __cplusplus
+-#ifndef HAVE_BOOL_IN_CC
++#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 202311L)
+ #ifdef __STDC__
+ typedef enum { false = 0, true = 1 } bool;
+ #else /* not __STDC__, do things the old-fashioned way */
+@@ -175,7 +175,7 @@ typedef int bool;
+ #define false 0
+ #define true 1
+ #endif
+-#endif /* not HAVE_BOOL_IN_CC */
++#endif
+ #endif /* not __cplusplus */
+
+ /**************************************************************************/
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/plotutils.git/commitdiff/935b17adf67af024593109d55a7c2fb8da5cfb14
More information about the pld-cvs-commit
mailing list