Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Jan 2026 12:25:39 +0000
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0f8fc8c9f53f - main - lang/go121: revert "Remove expired port"
Message-ID:  <695667c3.32d42.f67546c@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by rene:

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

commit 0f8fc8c9f53f75222ad75a77cf38319c4d956335
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2026-01-01 12:21:32 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2026-01-01 12:25:19 +0000

    lang/go121: revert "Remove expired port"
    
    This reverts commit 00007dfa8db499e601fbf2150ce43ebe73312e86.
    
    This port is still needed by textproc/zed
---
 MOVED                                              |  1 -
 lang/Makefile                                      |  1 +
 lang/go121/Makefile                                | 29 ++++++++++++++++++++++
 lang/go121/distinfo                                | 15 +++++++++++
 .../patch-src_cmd_go_internal_modload_vendor.go    | 11 ++++++++
 5 files changed, 56 insertions(+), 1 deletion(-)

diff --git a/MOVED b/MOVED
index 3ba6f2e1454a..60018cb9bf8d 100644
--- a/MOVED
+++ b/MOVED
@@ -5061,5 +5061,4 @@ databases/php81-odbc|databases/php82-odbc|2025-12-31|Has expired: Security suppo
 security/php81-sodium|security/php82-sodium|2025-12-31|Has expired: Security support ended on 2025-12-31
 security/php81-filter|security/php82-filter|2025-12-31|Has expired: Security support ended on 2025-12-31
 lang/go120||2026-01-01|Has expired: Old version, unsupported upstream
-lang/go121||2026-01-01|Has expired: Old version, unsupported upstream
 net/gwhois||2026-01-01|Has expired: source and WWW is gone. Hasn't been updated for 12yrs
diff --git a/lang/Makefile b/lang/Makefile
index ec5a29168f22..c44dade2a7bf 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -124,6 +124,7 @@
     SUBDIR += gnustep-base
     SUBDIR += go
     SUBDIR += go-devel
+    SUBDIR += go121
     SUBDIR += go122
     SUBDIR += go123
     SUBDIR += go124
diff --git a/lang/go121/Makefile b/lang/go121/Makefile
new file mode 100644
index 000000000000..0fabb421f27f
--- /dev/null
+++ b/lang/go121/Makefile
@@ -0,0 +1,29 @@
+DISTVERSION=	1.21.13
+# Always set PORTREVISION explicitly as otherwise they are inherited from lang/go-devel
+PORTREVISION=	5
+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
+
+BUILD_DEPENDS=
+
+MASTERDIR=	${.CURDIR}/../go-devel
+PATCHDIR=	${.CURDIR}/files
+WRKSRC=		${WRKDIR}/go
+DISTINFO_FILE=	${.CURDIR}/distinfo
+SHEBANG_FILES=	misc/wasm/go_js_wasm_exec \
+		src/net/http/cgi/testdata/test.cgi
+BASH=		${SH}
+TESTING_UNSAFE=	MemorySanitizer: use-of-uninitialized-value (/tmp/TestMSAN747758340/msan8+0x11efcf) in msanGoLoop
+
+DEPRECATED=	Old version, unsupported upstream
+EXPIRATION_DATE=2026-01-01
+
+.include "${MASTERDIR}/Makefile"
diff --git a/lang/go121/distinfo b/lang/go121/distinfo
new file mode 100644
index 000000000000..9056a6acb730
--- /dev/null
+++ b/lang/go121/distinfo
@@ -0,0 +1,15 @@
+TIMESTAMP = 1723182953
+SHA256 (go1.21.13.src.tar.gz) = 71fb31606a1de48d129d591e8717a63e0c5565ffba09a24ea9f899a13214c34d
+SIZE (go1.21.13.src.tar.gz) = 26997630
+SHA256 (go-freebsd-arm64-go1.20.tar.xz) = 674e0a9bce8b64dcc085b000eb83ae880e96be1ee47dad6ec86c82dbe5550623
+SIZE (go-freebsd-arm64-go1.20.tar.xz) = 32640640
+SHA256 (go-freebsd-amd64-go1.20.tar.xz) = 170f612c4b8a59400f27d642aab37afa831fe2d6df3e7473dec2d4574a59a46c
+SIZE (go-freebsd-amd64-go1.20.tar.xz) = 34684360
+SHA256 (go-freebsd-arm6-go1.20.tar.xz) = acf99dbb285c6d2b80e0abfe4bffd0d230516ea84d17be0d5bc1045809e3d33a
+SIZE (go-freebsd-arm6-go1.20.tar.xz) = 33418476
+SHA256 (go-freebsd-arm7-go1.20.tar.xz) = 12dd61c802eada70380f0b4755656d82dbf228575c056775c682456380be5039
+SIZE (go-freebsd-arm7-go1.20.tar.xz) = 33346596
+SHA256 (go-freebsd-386-go1.20.tar.xz) = 34e888a37153270b33503a23885ea4c85ba4bd09849d2c937fc9d312c0f49983
+SIZE (go-freebsd-386-go1.20.tar.xz) = 35448892
+SHA256 (go-freebsd-riscv64-go1.20.tar.xz) = 010921013d24124ff31f4b1965456349547acf936572fc6e0bcf95a0542794bd
+SIZE (go-freebsd-riscv64-go1.20.tar.xz) = 33807544
diff --git a/lang/go121/files/patch-src_cmd_go_internal_modload_vendor.go b/lang/go121/files/patch-src_cmd_go_internal_modload_vendor.go
new file mode 100644
index 000000000000..9d2288522539
--- /dev/null
+++ b/lang/go121/files/patch-src_cmd_go_internal_modload_vendor.go
@@ -0,0 +1,11 @@
+--- src/cmd/go/internal/modload/vendor.go.orig	2023-08-02 13:51:49 UTC
++++ src/cmd/go/internal/modload/vendor.go
+@@ -144,7 +144,7 @@ func checkVendorConsistency(index *modFileIndex, modFi
+ 	readVendorList(MainModules.mustGetSingleMainModule())
+ 
+ 	pre114 := false
+-	if gover.Compare(index.goVersion, "1.14") < 0 {
++	if gover.Compare(index.goVersion, "1.14") < 0 || os.Getenv("GO_NO_VENDOR_CHECKS") == "1" {
+ 		// 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.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?695667c3.32d42.f67546c>