pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang



Module Name:    pkgsrc
Committed By:   nia
Date:           Fri Aug 18 10:57:59 UTC 2023

Modified Files:
        pkgsrc/lang/gcc10: Makefile.common
        pkgsrc/lang/gcc12: Makefile.common
        pkgsrc/lang/gcc13: Makefile.common
        pkgsrc/lang/gcc6: Makefile
        pkgsrc/lang/gcc7: Makefile
        pkgsrc/lang/gcc8: Makefile
        pkgsrc/lang/gcc9: Makefile

Log Message:
lang/gccX: switch from USE_LANGUAGES=c99 to USE_CC_FEATURES/FORCE_C_STD.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/lang/gcc10/Makefile.common
cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/gcc12/Makefile.common
cvs rdiff -u -r1.3 -r1.4 pkgsrc/lang/gcc13/Makefile.common
cvs rdiff -u -r1.42 -r1.43 pkgsrc/lang/gcc6/Makefile
cvs rdiff -u -r1.48 -r1.49 pkgsrc/lang/gcc7/Makefile
cvs rdiff -u -r1.39 -r1.40 pkgsrc/lang/gcc8/Makefile
cvs rdiff -u -r1.45 -r1.46 pkgsrc/lang/gcc9/Makefile

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

Modified files:

Index: pkgsrc/lang/gcc10/Makefile.common
diff -u pkgsrc/lang/gcc10/Makefile.common:1.5 pkgsrc/lang/gcc10/Makefile.common:1.6
--- pkgsrc/lang/gcc10/Makefile.common:1.5       Tue Aug 15 13:49:17 2023
+++ pkgsrc/lang/gcc10/Makefile.common   Fri Aug 18 10:57:58 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.5 2023/08/15 13:49:17 tnn Exp $
+# $NetBSD: Makefile.common,v 1.6 2023/08/18 10:57:58 nia Exp $
 # used by lang/gcc10-libjit/Makefile
 
 GCC_PKGNAME=           gcc10
@@ -25,7 +25,7 @@ CHECK_RELRO_SKIP+=    ${GCC_PKGNAME}/lib/*
 
 NOT_FOR_PLATFORM=      Interix-*-*
 
-USE_LANGUAGES=         c99 c++
+USE_LANGUAGES=         c c++
 USE_TOOLS+=            gmake makeinfo sed tar:build
 USE_TOOLS.NetBSD+=     gsed
 
@@ -41,6 +41,10 @@ GNU_CONFIGURE_PREFIX=        ${GCC_PREFIX}
 INFO_FILES=            yes
 CONFIGURE_ARGS+=       --disable-libstdcxx-pch
 
+# error: 'for' loop initial declarations are only allowed in C99 mode
+USE_CC_FEATURES+=      c99
+FORCE_C_STD=           gnu99
+
 UNLIMIT_RESOURCES+=    datasize
 UNLIMIT_RESOURCES+=    stacksize
 

Index: pkgsrc/lang/gcc12/Makefile.common
diff -u pkgsrc/lang/gcc12/Makefile.common:1.4 pkgsrc/lang/gcc12/Makefile.common:1.5
--- pkgsrc/lang/gcc12/Makefile.common:1.4       Tue Aug 15 13:49:17 2023
+++ pkgsrc/lang/gcc12/Makefile.common   Fri Aug 18 10:57:58 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.4 2023/08/15 13:49:17 tnn Exp $
+# $NetBSD: Makefile.common,v 1.5 2023/08/18 10:57:58 nia Exp $
 # used by lang/gcc12-libjit/Makefile
 
 GCC_PKGNAME=           gcc12
@@ -25,7 +25,7 @@ CHECK_RELRO_SKIP+=    ${GCC_PKGNAME}/lib/*
 
 NOT_FOR_PLATFORM=      Interix-*-*
 
-USE_LANGUAGES=         c99 c++
+USE_LANGUAGES=         c c++
 USE_TOOLS+=            gmake makeinfo sed tar:build
 USE_TOOLS.NetBSD+=     gsed
 
@@ -41,6 +41,10 @@ GNU_CONFIGURE_PREFIX=        ${GCC_PREFIX}
 INFO_FILES=            yes
 CONFIGURE_ARGS+=       --disable-libstdcxx-pch
 
+# error: 'for' loop initial declarations are only allowed in C99 mode
+USE_CC_FEATURES+=      c99
+FORCE_C_STD=           gnu99
+
 UNLIMIT_RESOURCES+=    datasize
 UNLIMIT_RESOURCES+=    stacksize
 

Index: pkgsrc/lang/gcc13/Makefile.common
diff -u pkgsrc/lang/gcc13/Makefile.common:1.3 pkgsrc/lang/gcc13/Makefile.common:1.4
--- pkgsrc/lang/gcc13/Makefile.common:1.3       Tue Aug 15 13:49:17 2023
+++ pkgsrc/lang/gcc13/Makefile.common   Fri Aug 18 10:57:58 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.3 2023/08/15 13:49:17 tnn Exp $
+# $NetBSD: Makefile.common,v 1.4 2023/08/18 10:57:58 nia Exp $
 # used by lang/gcc13-libjit/Makefile
 
 GCC_PKGNAME=           gcc13
@@ -25,7 +25,7 @@ CHECK_RELRO_SKIP+=    ${GCC_PKGNAME}/lib/*
 
 NOT_FOR_PLATFORM=      Interix-*-*
 
-USE_LANGUAGES=         c99 c++
+USE_LANGUAGES=         c c++
 USE_TOOLS+=            gmake makeinfo sed tar:build
 USE_TOOLS.NetBSD+=     gsed
 
@@ -41,6 +41,10 @@ GNU_CONFIGURE_PREFIX=        ${GCC_PREFIX}
 INFO_FILES=            yes
 CONFIGURE_ARGS+=       --disable-libstdcxx-pch
 
+# error: 'for' loop initial declarations are only allowed in C99 mode
+USE_CC_FEATURES+=      c99
+FORCE_C_STD=           gnu99
+
 UNLIMIT_RESOURCES+=    datasize
 UNLIMIT_RESOURCES+=    stacksize
 

Index: pkgsrc/lang/gcc6/Makefile
diff -u pkgsrc/lang/gcc6/Makefile:1.42 pkgsrc/lang/gcc6/Makefile:1.43
--- pkgsrc/lang/gcc6/Makefile:1.42      Tue Aug 15 13:49:17 2023
+++ pkgsrc/lang/gcc6/Makefile   Fri Aug 18 10:57:58 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.42 2023/08/15 13:49:17 tnn Exp $
+# $NetBSD: Makefile,v 1.43 2023/08/18 10:57:58 nia Exp $
 
 GCC_PKGNAME=           gcc6
 .include               "version.mk"
@@ -46,6 +46,10 @@ INFO_FILES=          yes
 CONFIGURE_ARGS+=       --disable-libstdcxx-pch
 GCC_TARGET_MACHINE=    ${MACHINE_GNU_PLATFORM}
 
+# error: 'for' loop initial declarations are only allowed in C99 mode
+USE_CC_FEATURES+=      c99
+FORCE_C_STD=           gnu99   
+
 UNLIMIT_RESOURCES+=    datasize
 UNLIMIT_RESOURCES+=    stacksize
 

Index: pkgsrc/lang/gcc7/Makefile
diff -u pkgsrc/lang/gcc7/Makefile:1.48 pkgsrc/lang/gcc7/Makefile:1.49
--- pkgsrc/lang/gcc7/Makefile:1.48      Sat Jun  3 13:22:43 2023
+++ pkgsrc/lang/gcc7/Makefile   Fri Aug 18 10:57:58 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2023/06/03 13:22:43 riastradh Exp $
+# $NetBSD: Makefile,v 1.49 2023/08/18 10:57:58 nia Exp $
 
 GCC_PKGNAME=           gcc7
 .include               "version.mk"
@@ -27,7 +27,7 @@ CHECK_RELRO_SKIP+=    ${GCC_PKGNAME}/lib/*
 
 NOT_FOR_PLATFORM=      Interix-*-* Darwin-*-aarch64
 
-USE_LANGUAGES=         c99 c++
+USE_LANGUAGES=         c c++
 USE_TOOLS+=            gmake makeinfo perl sed tar:build
 USE_TOOLS.NetBSD+=     gsed
 
@@ -43,6 +43,10 @@ GNU_CONFIGURE_PREFIX=        ${GCC_PREFIX}
 INFO_FILES=            yes
 CONFIGURE_ARGS+=       --disable-libstdcxx-pch
 
+# error: 'for' loop initial declarations are only allowed in C99 mode
+USE_CC_FEATURES+=      c99
+FORCE_C_STD=           gnu99
+
 UNLIMIT_RESOURCES+=    datasize
 UNLIMIT_RESOURCES+=    stacksize
 

Index: pkgsrc/lang/gcc8/Makefile
diff -u pkgsrc/lang/gcc8/Makefile:1.39 pkgsrc/lang/gcc8/Makefile:1.40
--- pkgsrc/lang/gcc8/Makefile:1.39      Tue Aug 15 13:49:17 2023
+++ pkgsrc/lang/gcc8/Makefile   Fri Aug 18 10:57:58 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2023/08/15 13:49:17 tnn Exp $
+# $NetBSD: Makefile,v 1.40 2023/08/18 10:57:58 nia Exp $
 
 GCC_PKGNAME=           gcc8
 PKGREVISION=           1
@@ -27,7 +27,7 @@ CHECK_RELRO_SKIP+=    ${GCC_PKGNAME}/lib/*
 
 NOT_FOR_PLATFORM=      Interix-*-* Darwin-*-aarch64
 
-USE_LANGUAGES=         c99 c++
+USE_LANGUAGES=         c c++
 USE_TOOLS+=            gmake makeinfo sed tar:build
 USE_TOOLS.NetBSD+=     gsed
 
@@ -46,6 +46,10 @@ CONFIGURE_ARGS+=     --disable-libstdcxx-pch
 UNLIMIT_RESOURCES+=    datasize
 UNLIMIT_RESOURCES+=    stacksize
 
+# error: 'for' loop initial declarations are only allowed in C99 mode
+USE_CC_FEATURES+=      c99
+FORCE_C_STD=           gnu99
+
 CHECK_PORTABILITY_SKIP+=       contrib/*
 
 .include "../../mk/bsd.prefs.mk"

Index: pkgsrc/lang/gcc9/Makefile
diff -u pkgsrc/lang/gcc9/Makefile:1.45 pkgsrc/lang/gcc9/Makefile:1.46
--- pkgsrc/lang/gcc9/Makefile:1.45      Mon Aug 14 05:24:43 2023
+++ pkgsrc/lang/gcc9/Makefile   Fri Aug 18 10:57:58 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2023/08/14 05:24:43 wiz Exp $
+# $NetBSD: Makefile,v 1.46 2023/08/18 10:57:58 nia Exp $
 
 GCC_PKGNAME=   gcc9
 PKGREVISION= 1
@@ -43,6 +43,10 @@ CONFIGURE_ARGS+=     --disable-libstdcxx-pch
 
 UNLIMIT_RESOURCES=     datasize stacksize
 
+# error: 'for' loop initial declarations are only allowed in C99 mode
+USE_CC_FEATURES+=      c99
+FORCE_C_STD=           gnu99
+
 CHECK_PORTABILITY_SKIP+=       contrib/* # not needed during the build
 
 .include "../../mk/bsd.prefs.mk"



Home | Main Index | Thread Index | Old Index