pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/go go: Split *_SUPPORTED variables out into new g...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b2164627a85
branches:  trunk
changeset: 418937:4b2164627a85
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Dec 09 09:59:31 2019 +0000

description:
go: Split *_SUPPORTED variables out into new go-vars.mk.

It's not always possible to include go-package.mk earlier than bsd.prefs.mk
in a package, for example if the package defines its own do-install target,
so move out the *_SUPPORTED variables that need to be included first.

diffstat:

 lang/go/go-vars.mk |  19 +++++++++++++++++++
 lang/go/version.mk |  14 ++++++++------
 2 files changed, 27 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r a9363ea84463 -r 4b2164627a85 lang/go/go-vars.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/go/go-vars.mk        Mon Dec 09 09:59:31 2019 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: go-vars.mk,v 1.1 2019/12/09 09:59:31 jperkin Exp $
+#
+# Makefile fragment to be included by any package that uses go-package.mk.
+#
+# This needs to be included before bsd.prefs.mk, as the variables set in this
+# file are used there to determine whether certain features should be enabled
+# or not.
+#
+# go-package.mk itself can't always be included before bsd.prefs.mk as it
+# provides some default targets such as do-install if the package has not
+# already defined its own.
+#
+
+#
+# go uses its own special linker which does not at this time support CTF/SSP.
+#
+CTF_SUPPORTED=         no
+SSP_SUPPORTED=         no
+STRIP_DEBUG_SUPPORTED= no
diff -r a9363ea84463 -r 4b2164627a85 lang/go/version.mk
--- a/lang/go/version.mk        Mon Dec 09 09:31:06 2019 +0000
+++ b/lang/go/version.mk        Mon Dec 09 09:59:31 2019 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: version.mk,v 1.73 2019/12/08 14:42:02 bsiegert Exp $
+# $NetBSD: version.mk,v 1.74 2019/12/09 09:59:31 jperkin Exp $
 
-CTF_SUPPORTED=         no
-SSP_SUPPORTED=         no
-STRIP_DEBUG_SUPPORTED= no
-
-.include "../../mk/bsd.prefs.mk"
+#
+# If bsd.prefs.mk is included before go-package.mk in a package, then this
+# file must be included directly in the package prior to bsd.prefs.mk.
+#
+.include "go-vars.mk"
 
 GO113_VERSION= 1.13.5
 GO112_VERSION= 1.12.12
@@ -14,6 +14,8 @@
 GO14_VERSION=  1.4.3
 GO_VERSION=    ${GO110_VERSION}
 
+.include "../../mk/bsd.prefs.mk"
+
 .if ${OPSYS} == "NetBSD" && ${OS_VERSION:M6.*}
 # 1.9 is the last Go version to support NetBSD 6
 GO_VERSION_DEFAULT?=   19



Home | Main Index | Thread Index | Old Index