pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/go



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Wed Nov 15 15:54:40 UTC 2023

Modified Files:
        pkgsrc/lang/go: version.mk

Log Message:
go: Add support for GO_VERSION_REQD.

This isn't full multi support like other languages yet, but for now simply a
way for a package to indicate that it requires a specific version of go.

Useful for things like wireguard-go which currently do not build with 1.21.


To generate a diff of this commit:
cvs rdiff -u -r1.194 -r1.195 pkgsrc/lang/go/version.mk

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

Modified files:

Index: pkgsrc/lang/go/version.mk
diff -u pkgsrc/lang/go/version.mk:1.194 pkgsrc/lang/go/version.mk:1.195
--- pkgsrc/lang/go/version.mk:1.194     Fri Nov 10 15:39:34 2023
+++ pkgsrc/lang/go/version.mk   Wed Nov 15 15:54:40 2023
@@ -1,4 +1,4 @@
-# $NetBSD: version.mk,v 1.194 2023/11/10 15:39:34 bsiegert Exp $
+# $NetBSD: version.mk,v 1.195 2023/11/15 15:54:40 jperkin Exp $
 
 #
 # If bsd.prefs.mk is included before go-package.mk in a package, then this
@@ -16,7 +16,9 @@ GO14_VERSION= 1.4.3
 
 GO_VERSION_DEFAULT?=   121
 
-.if !empty(GO_VERSION_DEFAULT)
+.if defined(GO_VERSION_REQD)
+GOVERSSUFFIX=          ${GO_VERSION_REQD}
+.elif !empty(GO_VERSION_DEFAULT)
 GOVERSSUFFIX=          ${GO_VERSION_DEFAULT}
 .endif
 



Home | Main Index | Thread Index | Old Index