Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E0FEC84F1E for ; Wed, 15 Nov 2023 15:54:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id Qs2OZoUoCW29 for ; Wed, 15 Nov 2023 15:54:40 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 3F39284CCC for ; Wed, 15 Nov 2023 15:54:40 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 36DC8FA3D; Wed, 15 Nov 2023 15:54:40 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1700063680205130" MIME-Version: 1.0 Date: Wed, 15 Nov 2023 15:54:40 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/lang/go To: pkgsrc-changes@NetBSD.org Approved: commit_and_comment Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20231115155440.36DC8FA3D@cvs.NetBSD.org> This is a multi-part message in MIME format. --_----------=_1700063680205130 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_1700063680205130 Content-Disposition: inline Content-Length: 714 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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 --_----------=_1700063680205130--