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:   wiz
Date:           Fri Jan 16 05:59:24 UTC 2026

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

Log Message:
mk: be more defensive about wrt gcc -dumpversion output

Should now work with output that only returns the major version.


To generate a diff of this commit:
cvs rdiff -u -r1.305 -r1.306 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.305 pkgsrc/mk/compiler/gcc.mk:1.306
--- pkgsrc/mk/compiler/gcc.mk:1.305     Thu Jan 15 15:12:32 2026
+++ pkgsrc/mk/compiler/gcc.mk   Fri Jan 16 05:59:24 2026
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.305 2026/01/15 15:12:32 wiz Exp $
+# $NetBSD: gcc.mk,v 1.306 2026/01/16 05:59:24 wiz Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -1051,7 +1051,7 @@ _USE_PKGSRC_GCC=  NO
 .if !defined(_USE_PKGSRC_GCC)
 _USE_PKGSRC_GCC=       YES
 .  if !empty(_IS_BUILTIN_GCC:M[yY][eE][sS])
-_GCC_PKG_MAJOR_MINOR=${_GCC_PKG:C/gcc-([0-9]+\.[0-9]+).*/\1/}
+_GCC_PKG_MAJOR_MINOR=${_GCC_PKG:C/gcc-([0-9]+)(\.[0-9]+)?.*/\1\2/}
 .    if ${_GCC_PKG_MAJOR_MINOR:R} > ${_GCC_REQD:R} || (${_GCC_PKG_MAJOR_MINOR:R} == ${_GCC_REQD:R} && ${_GCC_PKG_MAJOR_MINOR:E} >= ${_GCC_REQD:E})
 _USE_PKGSRC_GCC=       NO
 .    else



Home | Main Index | Thread Index | Old Index