pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/netpbm



Module Name:    pkgsrc
Committed By:   tnn
Date:           Mon Sep 22 17:13:43 UTC 2025

Modified Files:
        pkgsrc/graphics/netpbm: Makefile

Log Message:
netpbm: apply _XOPEN_SOURCE scuff fix unconditionally

It will be needed on NetBSD as well after GCC 14 has landed so it
makes more sense now to invert the logic and exclude any platform
Where it causes harm.


To generate a diff of this commit:
cvs rdiff -u -r1.257 -r1.258 pkgsrc/graphics/netpbm/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/netpbm/Makefile
diff -u pkgsrc/graphics/netpbm/Makefile:1.257 pkgsrc/graphics/netpbm/Makefile:1.258
--- pkgsrc/graphics/netpbm/Makefile:1.257       Sat Aug 30 22:45:28 2025
+++ pkgsrc/graphics/netpbm/Makefile     Mon Sep 22 17:13:43 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.257 2025/08/30 22:45:28 wiz Exp $
+# $NetBSD: Makefile,v 1.258 2025/09/22 17:13:43 tnn Exp $
 
 DISTNAME=      netpbm-11.02.09
 PKGREVISION=   7
@@ -73,9 +73,7 @@ MAKE_FLAGS+=  NETWORKLD="-lsocket -lresol
 .include "../../mk/compiler.mk"
 
 # Ridiculous but they hardcode it in every file so we have no choice.
-.if !empty(CC_VERSION:Mgcc-[6-9]*) || !empty(PKGSRC_COMPILER:Mclang) || !empty(CC_VERSION:Mgcc-1[0-9].*)
-SUBST_CLASSES.Darwin+= xopen
-SUBST_CLASSES.SunOS+=  xopen
+SUBST_CLASSES+=                xopen
 SUBST_STAGE.xopen=     pre-configure
 SUBST_FILES.xopen=     */*.c */*/*.c */*/*/*.c */*/*/*/*.c */*/*/*/*/*.c
 SUBST_FILES.xopen+=    lib/util/lexheader
@@ -84,7 +82,6 @@ SUBST_SED.xopen+=     -e '/_XOPEN_SOURCE/s/1
 SUBST_SED.xopen+=      -e '/_XOPEN_SOURCE[^0-9]*\//s/SOURCE/SOURCE 600/'
 SUBST_SED.xopen+=      -e '/_XOPEN_SOURCE$$/s/E$$/E 600/'
 SUBST_SED.xopen+=      -e '/_POSIX_SOURCE.*fdopen/s/_POSIX_SOURCE/_XOPEN_SOURCE 600/'
-.endif
 
 # Fixing this properly would require patching far too many files.
 .if ${PKGSRC_COMPILER:Mgcc}



Home | Main Index | Thread Index | Old Index