pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/compiler



Module Name:    pkgsrc
Committed By:   gdt
Date:           Thu Jul  2 13:35:39 UTC 2026

Modified Files:
        pkgsrc/mk/compiler: gcc.mk

Log Message:
mk/compiler/gcc.mk: Require gcc 14 for c23

Note that NetBSD current has gcc 14.  This is marked as temporary
because if a newer version is imported before branch, old current is
irrelevant.

While gcc documents that 15 is required for full support, we have a
long tradition of choosing a version that has almost full support,
when that results in fewer compiler builds.  Guess that 14 will be ok,
with a comment indicating the choice is tentative.

Previously, putting c23 in USE_CC_FEATURES did nothing, so this commit
should not break any working packages.  Tested on a random package not
to break, which is really about not having syntax errors.


To generate a diff of this commit:
cvs rdiff -u -r1.311 -r1.312 pkgsrc/mk/compiler/gcc.mk

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

Modified files:

Index: pkgsrc/mk/compiler/gcc.mk
diff -u pkgsrc/mk/compiler/gcc.mk:1.311 pkgsrc/mk/compiler/gcc.mk:1.312
--- pkgsrc/mk/compiler/gcc.mk:1.311     Thu Jul  2 13:26:29 2026
+++ pkgsrc/mk/compiler/gcc.mk   Thu Jul  2 13:35:39 2026
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.311 2026/07/02 13:26:29 gdt Exp $
+# $NetBSD: gcc.mk,v 1.312 2026/07/02 13:35:39 gdt Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -172,6 +172,7 @@ GCC_REQD+=  2.8
 #   - gcc 7, in NetBSD 9
 #   - gcc 10, in NetBSD 10
 #   - gcc 12, in NetBSD 11
+#   - [temporarily] gcc 14, in NetBSD current
 #
 # Other systems have different versions, and we note a few:
 #
@@ -188,6 +189,13 @@ GCC_REQD+= 2.8
 
 # C dialects
 
+.if !empty(USE_CC_FEATURES:Mc23)
+# gcc documents that 15 is required for full support, but if one
+# excludes two likely-obscure features, 14 is sufficent.  For now,
+# choose 14 because it is in NetBSD current.
+GCC_REQD+=     14
+.endif
+
 .if !empty(USE_CC_FEATURES:Mc17)
 # GCC 8 is the first version that works.  10 is the first version
 # shipped with a NetBSD release.



Home | Main Index | Thread Index | Old Index