tech-pkg archive

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

gcc 11: use gcc12 instead



Hi!

I found a program that wants gcc 11, but that is not packaged (and
thus '11' is not supported in GCC_REQD). So I thought that we could
just depend on gcc12 when 11 is requested, and have the correct
version in GCC_REQD.

Does anyone see a problem with the attached diff?
 Thomas
Index: compiler/gcc.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/compiler/gcc.mk,v
retrieving revision 1.251
diff -u -r1.251 gcc.mk
--- compiler/gcc.mk	12 Jun 2023 21:50:41 -0000	1.251
+++ compiler/gcc.mk	23 Jun 2023 15:53:35 -0000
@@ -178,7 +178,8 @@
 _GCC10_PATTERNS= 10 10.*
 
 # _GCC12_PATTERNS matches N s.t. 12.0 <= N < 13.
-_GCC12_PATTERNS= 12 12.*
+# gcc 11.x is not packaged, so depend on gcc12 in that case too
+_GCC12_PATTERNS= 11 11.* 12 12.*
 
 # _GCC13_PATTERNS matches N s.t. 13.0 <= N < 14.
 _GCC13_PATTERNS= 13 13.*


Home | Main Index | Thread Index | Old Index