From nobody Wed Feb 11 18:07:21 2026 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fB5xV2Vv8z6Rw7h for ; Wed, 11 Feb 2026 18:07:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fB5xP1qzZz4F0H for ; Wed, 11 Feb 2026 18:07:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770833241; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e0F0YN1HfOYILEg1SRj/u3NPhoLkANj379Bno20bz/g=; b=KWCA24JBbES00Qk46xWBNcBxxfV04DT7TE51n/Pcsd5eJejIpQBEGBFpxH+9astCD59F3a 7vLUARCxIxGdKRk+cy1YFjEMuclDpIApoTWEx6hPuTCoOm3VWPYIBvSvnr6GPI3SZwAAST B61WWtoMPhLcThmUQL3CYJB0tA9mZGDFpTdL0q5iV5Y/2oCybOg4wWX+feFfgbFO9EYgg4 ukWXDWO58c1ICQnPrnpKAHiwwAf0RmI1hAwptNqV/nvRuiS8LpAx0HdQt5vsVCekuuZMUw 3yTScTE081zg++7KgKcUg91vMqxMfwt73jZvLffHaFd5hj91ZQlrPudtlLmRMQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770833241; a=rsa-sha256; cv=none; b=EAeSe1cRifEebFQ4tLk+DC3Jnnm6u25l7WMI9cz1r8X2Rkdh7LfdEyfCMYBsy5r9JiIm+B GrL51GxT9n/Tdy5qnJEKe823a32xVdgXER3crw2bPRzY4SGGfrip534QFHThtQYP6eQvo5 70aH6L3FalxBdtQKwq8dqht3/VF+5Z0hqU7fuT/PL2GjbsUU65p79weqR/B1tpIVlWq1zE fII6xAeR06qHn7O3sn0loMDsIDJ/69Ewa4nJ7km4cDxEoeppNWSwgvlDUrXMZgldA+vJhX E3Ly/lwj+Zx7og45l3+2hqrhK1gxSXAoQ3FtxdgpZv8ID4Hhj7o3iVPuHLiiDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770833241; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e0F0YN1HfOYILEg1SRj/u3NPhoLkANj379Bno20bz/g=; b=RmiIlXv3PzyTZ/CjEiwxnQbb2B9nt2PaRTVEAJxxOXY824TuK/zlkc4A3P4I4gY0HiRlTf cLxfYyZjU3W1aYQOcut2k+CgQMy6GmKAv6f9Mye8XjLsGd4PGtnThTmguF8GhoqNDyK2vr v4F4xX0k2qCI+pueKKDjPeq3ITleyZ8YT2vy7atytk5i/Kk7bnLOPFKnWCAJObF/Uanz87 XVrR029vdMAkauUnJ84QMYUs0cKSwgftdFbPRFy+eL9moa32/qur/t4JaL5F7j1oPQhSe1 5veNvTeW/LK+q10UwLA8dyCtEc0f8P2n1uupCuTEsaJCTpwvCAXPdNghsVm3Fw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fB5xP19Qxz111l for ; Wed, 11 Feb 2026 18:07:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 38a45 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 11 Feb 2026 18:07:21 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Adam Weinberger Subject: git: 3439683963c1 - main - lang/go126: Add go 1.26 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: adamw X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3439683963c1766c5c6486dabde059f1aeb2daa2 Auto-Submitted: auto-generated Date: Wed, 11 Feb 2026 18:07:21 +0000 Message-Id: <698cc559.38a45.2d76aa5a@gitrepo.freebsd.org> The branch main has been updated by adamw: URL: https://cgit.FreeBSD.org/ports/commit/?id=3439683963c1766c5c6486dabde059f1aeb2daa2 commit 3439683963c1766c5c6486dabde059f1aeb2daa2 Author: Adam Weinberger AuthorDate: 2026-02-11 17:45:08 +0000 Commit: Adam Weinberger CommitDate: 2026-02-11 18:06:09 +0000 lang/go126: Add go 1.26 From https://go.dev/doc/go1.26: The latest Go release, version 1.26, arrives in February 2026, six months after Go 1.25. Most of its changes are in the implementation of the toolchain, runtime, and libraries. As always, the release maintains the Go 1 promise of compatibility. We expect almost all Go programs to continue to compile and run as before. There are exciting updates in this new Go minor: - New Green Tea-based garbage collector that cuts GC overhead by an observed 10-40%. - cgo runtime overhead reduced by an observed 30%. - `go fix` has been rewritten as is now Go's official modernizer. In particular, it includes all of `go vet`'s heuristics, making it possible to fix the things that the latter identifies. - Heap base address is now randomized. - pprof can now (experimentally) identify leaked goroutines. - New crypto/hpke package includes support for quantum-vulnerable and post-quantum hybrid KEMs. --- lang/Makefile | 1 + lang/go126/Makefile | 4 ++++ lang/go126/distinfo | 13 ++++++++++++ lang/go126/files/patch-src_cmd_dist_build.go | 23 ++++++++++++++++++++++ .../patch-src_cmd_go_internal_modload_vendor.go | 11 +++++++++++ 5 files changed, 52 insertions(+) diff --git a/lang/Makefile b/lang/Makefile index 55c240f52361..8a9997372742 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -126,6 +126,7 @@ SUBDIR += go-devel SUBDIR += go124 SUBDIR += go125 + SUBDIR += go126 SUBDIR += gomacro SUBDIR += gprolog SUBDIR += gptscript diff --git a/lang/go126/Makefile b/lang/go126/Makefile new file mode 100644 index 000000000000..d5134c381af6 --- /dev/null +++ b/lang/go126/Makefile @@ -0,0 +1,4 @@ +DISTVERSION= 1.26.0 +BOOTSTRAP_VER= 1.25.7 + +.include "${.CURDIR}/../go/bsd.go.mk" diff --git a/lang/go126/distinfo b/lang/go126/distinfo new file mode 100644 index 000000000000..86aefcb2c788 --- /dev/null +++ b/lang/go126/distinfo @@ -0,0 +1,13 @@ +TIMESTAMP = 1770827469 +SHA256 (go1.26.0.src.tar.gz) = c9132a8a1f6bd2aa4aad1d74b8231d95274950483a4950657ee6c56e6e817790 +SIZE (go1.26.0.src.tar.gz) = 34095450 +SHA256 (go1.25.7.freebsd-arm64.tar.gz) = 631e03d5fd4c526e2f499154d8c6bf4cb081afb2fff171c428722afc9539d53a +SIZE (go1.25.7.freebsd-arm64.tar.gz) = 57006314 +SHA256 (go1.25.7.freebsd-amd64.tar.gz) = 055f9e138787dcafa81eb0314c8ff70c6dd0f6dba1e8a6957fef5d5efd1ab8fd +SIZE (go1.25.7.freebsd-amd64.tar.gz) = 59501998 +SHA256 (go1.25.7.freebsd-arm.tar.gz) = 60e7f7a7c990f0b9539ac8ed668155746997d404643a4eecd47b3dee1b7e710b +SIZE (go1.25.7.freebsd-arm.tar.gz) = 58246590 +SHA256 (go1.25.7.freebsd-386.tar.gz) = a2de97c8ac74bf64b0ae73fe9d379e61af530e061bc7f8f825044172ffe61a8b +SIZE (go1.25.7.freebsd-386.tar.gz) = 58209772 +SHA256 (go1.25.7.freebsd-riscv64.tar.gz) = 8a264fd685823808140672812e3ad9c43f6ad59444c0dc14cdd3a1351839ddd5 +SIZE (go1.25.7.freebsd-riscv64.tar.gz) = 58024309 diff --git a/lang/go126/files/patch-src_cmd_dist_build.go b/lang/go126/files/patch-src_cmd_dist_build.go new file mode 100644 index 000000000000..59fd0c6539f8 --- /dev/null +++ b/lang/go126/files/patch-src_cmd_dist_build.go @@ -0,0 +1,23 @@ +--- src/cmd/dist/build.go.orig 2024-03-29 15:27:02 UTC ++++ src/cmd/dist/build.go +@@ -891,6 +891,20 @@ func runInstall(pkg string, ch chan struct{}) { + asmArgs = append(asmArgs, "-D", "GOPPC64_power8") + } + } ++ if goarch == "arm" { ++ // Define GOARM_value from goarm, which can be either a version ++ // like "6", or a version and a FP mode, like "7,hardfloat". ++ switch { ++ case strings.Contains(goarm, "7"): ++ asmArgs = append(asmArgs, "-D", "GOARM_7") ++ fallthrough ++ case strings.Contains(goarm, "6"): ++ asmArgs = append(asmArgs, "-D", "GOARM_6") ++ fallthrough ++ default: ++ asmArgs = append(asmArgs, "-D", "GOARM_5") ++ } ++ } + goasmh := pathf("%s/go_asm.h", workdir) + + // Collect symabis from assembly code. diff --git a/lang/go126/files/patch-src_cmd_go_internal_modload_vendor.go b/lang/go126/files/patch-src_cmd_go_internal_modload_vendor.go new file mode 100644 index 000000000000..ba3f97226624 --- /dev/null +++ b/lang/go126/files/patch-src_cmd_go_internal_modload_vendor.go @@ -0,0 +1,11 @@ +--- src/cmd/go/internal/modload/vendor.go.orig 2024-02-02 18:09:55 UTC ++++ src/cmd/go/internal/modload/vendor.go +@@ -159,7 +159,7 @@ func checkVendorConsistency(indexes []*modFileIndex, m + panic(fmt.Errorf("not in workspace mode but number of indexes is %v, not 1", len(indexes))) + } + index := indexes[0] +- 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.