summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2024-11-24 12:41:24 +0200
committerViorel Munteanu <ceamac@gentoo.org>2024-11-24 13:21:16 +0200
commit89ce343124c6a1dbc28e9d268af9e8912ddd5765 (patch)
tree46330952643327913f924e90cecc50b00c0af823
parentsci-calculators/units: don't build with C23 (diff)
downloadgentoo-89ce343124c6a1dbc28e9d268af9e8912ddd5765.tar.gz
gentoo-89ce343124c6a1dbc28e9d268af9e8912ddd5765.tar.bz2
gentoo-89ce343124c6a1dbc28e9d268af9e8912ddd5765.zip
media-libs/netpbm: fix building with gcc-15
Bug: https://bugs.gentoo.org/943971 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
-rw-r--r--media-libs/netpbm/files/netpbm-11.8.1-fix-C23.patch14
-rw-r--r--media-libs/netpbm/netpbm-11.8.1-r1.ebuild (renamed from media-libs/netpbm/netpbm-11.8.1.ebuild)1
2 files changed, 15 insertions, 0 deletions
diff --git a/media-libs/netpbm/files/netpbm-11.8.1-fix-C23.patch b/media-libs/netpbm/files/netpbm-11.8.1-fix-C23.patch
new file mode 100644
index 000000000000..a749ec434d31
--- /dev/null
+++ b/media-libs/netpbm/files/netpbm-11.8.1-fix-C23.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/943971
+
+--- a/buildtools/libopt.c
++++ b/buildtools/libopt.c
+@@ -89,7 +89,9 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+
++#if __STDC_VERSION__ < 202311L
+ typedef unsigned char bool;
++#endif
+ #ifndef TRUE
+ #define TRUE (1)
+ #endif
diff --git a/media-libs/netpbm/netpbm-11.8.1.ebuild b/media-libs/netpbm/netpbm-11.8.1-r1.ebuild
index 31d10bb8169f..3626f909bb88 100644
--- a/media-libs/netpbm/netpbm-11.8.1.ebuild
+++ b/media-libs/netpbm/netpbm-11.8.1-r1.ebuild
@@ -59,6 +59,7 @@ PATCHES=(
"${FILESDIR}"/netpbm-11.1.0-fix-clang-O2.patch
"${FILESDIR}"/netpbm-11.6.1-incompatible-pointer-types.patch
"${FILESDIR}"/netpbm-11.7.2-lto.patch
+ "${FILESDIR}"/netpbm-11.8.1-fix-C23.patch
)
netpbm_libtype() {