Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Aug 2022 18:19:54 GMT
From:      Dmitri Goutnik <dmgk@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e4f8d54e4410 - main - lang/go119: Add new port
Message-ID:  <202208021819.272IJsUx002497@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dmgk:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e4f8d54e441086f9d4d6d2600b1a5cb1ee4a7fae

commit e4f8d54e441086f9d4d6d2600b1a5cb1ee4a7fae
Author:     Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2022-08-02 17:36:35 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-08-02 18:19:22 +0000

    lang/go119: Add new port
    
    Add new port for the latest Go release, version 1.19.
    
    Release notes:  https://go.dev/doc/go1.19
---
 lang/Makefile                                        |  1 +
 lang/go119/Makefile                                  | 20 ++++++++++++++++++++
 lang/go119/distinfo                                  | 13 +++++++++++++
 .../patch-src_cmd_go_internal_modload_vendor.go      | 11 +++++++++++
 4 files changed, 45 insertions(+)

diff --git a/lang/Makefile b/lang/Makefile
index 7b0c397e3d0c..72272284845e 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -116,6 +116,7 @@
     SUBDIR += go-devel
     SUBDIR += go117
     SUBDIR += go118
+    SUBDIR += go119
     SUBDIR += gomacro
     SUBDIR += gprolog
     SUBDIR += gravity
diff --git a/lang/go119/Makefile b/lang/go119/Makefile
new file mode 100644
index 000000000000..ea9aa3fde1c2
--- /dev/null
+++ b/lang/go119/Makefile
@@ -0,0 +1,20 @@
+DISTVERSION=	1.19
+# Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel
+PORTREVISION=	0
+MASTER_SITES=	https://golang.org/dl/ \
+		https://github.com/dmgk/go-bootstrap/releases/download/${BOOTSTRAP_TAG}/:bootstrap \
+		LOCAL/dmgk:bootstrap
+DISTFILES=	go${DISTVERSION}.src.tar.gz \
+		go-${OPSYS:tl}-${GOARCH_${ARCH}}${GOARM_${ARCH}}-${BOOTSTRAP_TAG}.tar.xz:bootstrap
+
+# Avoid conflicting patch files
+PATCHFILES=
+
+COMMENT=	Go programming language
+
+MASTERDIR=	${.CURDIR}/../go-devel
+PATCHDIR=	${.CURDIR}/files
+WRKSRC=		${WRKDIR}/go
+DISTINFO_FILE=	${.CURDIR}/distinfo
+
+.include "${MASTERDIR}/Makefile"
diff --git a/lang/go119/distinfo b/lang/go119/distinfo
new file mode 100644
index 000000000000..b7a55e4e7f76
--- /dev/null
+++ b/lang/go119/distinfo
@@ -0,0 +1,13 @@
+TIMESTAMP = 1659459886
+SHA256 (go1.19.src.tar.gz) = 9419cc70dc5a2523f29a77053cafff658ed21ef3561d9b6b020280ebceab28b9
+SIZE (go1.19.src.tar.gz) = 26521849
+SHA256 (go-freebsd-arm64-go1.17.9.tar.xz) = d9e9180bdc5ad0eec1654679a50084ebb31ecbe9bef24f0bd8ba917db8d1830c
+SIZE (go-freebsd-arm64-go1.17.9.tar.xz) = 38572776
+SHA256 (go-freebsd-amd64-go1.17.9.tar.xz) = fd439ad091ed57d0ad728c05fc60465aad2e46e98da96e2d5b60b0c470f2efec
+SIZE (go-freebsd-amd64-go1.17.9.tar.xz) = 41951936
+SHA256 (go-freebsd-arm6-go1.17.9.tar.xz) = ba24590b8cec761207eafc5a39c71b5b5041320c6fb0c95d35c123f6054f8d1c
+SIZE (go-freebsd-arm6-go1.17.9.tar.xz) = 38938596
+SHA256 (go-freebsd-arm7-go1.17.9.tar.xz) = 9dc039278e174757962d100a227959037d4d7af18094af6433fa4d57cfa57e5f
+SIZE (go-freebsd-arm7-go1.17.9.tar.xz) = 38862156
+SHA256 (go-freebsd-386-go1.17.9.tar.xz) = 74854fd9e7d596c6abb1ecd55707c58a2f4d6ee875376e26bb5519889507291b
+SIZE (go-freebsd-386-go1.17.9.tar.xz) = 40566908
diff --git a/lang/go119/files/patch-src_cmd_go_internal_modload_vendor.go b/lang/go119/files/patch-src_cmd_go_internal_modload_vendor.go
new file mode 100644
index 000000000000..721bed32419f
--- /dev/null
+++ b/lang/go119/files/patch-src_cmd_go_internal_modload_vendor.go
@@ -0,0 +1,11 @@
+--- src/cmd/go/internal/modload/vendor.go.orig	2020-12-17 16:03:19 UTC
++++ src/cmd/go/internal/modload/vendor.go
+@@ -133,7 +133,7 @@ func checkVendorConsistency() {
+ 	readVendorList()
+ 
+ 	pre114 := false
+-	if semver.Compare(index.goVersionV, "v1.14") < 0 {
++	if semver.Compare(index.goVersionV, "v1.14") < 0 || (os.Getenv("GO_NO_VENDOR_CHECKS") == "1" && len(vendorMeta) == 0) {
+ 		// Go versions before 1.14 did not include enough information in
+ 		// vendor/modules.txt to check for consistency.
+ 		// If we know that we're on an earlier version, relax the consistency check.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208021819.272IJsUx002497>