package/go: new major version 1.27

Bump to go1.27.0. The go-bootstrap-stage5 package (go1.25.x) still
satisfies the bootstrap requirement, so no bootstrap stage changes are
needed.

Remove the workaround for https://github.com/golang/go/issues/77436,
which the go.mk comment scheduled for removal at this bump: restore the
plain CGO_CFLAGS and CGO_CXXFLAGS settings in HOST_GO_TARGET_ENV.

https://go.dev/doc/go1.27#bootstrap

Signed-off-by: Christian Stewart <christian@aperture.us>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit 798741f4dc)
Signed-off-by: Raphaël Mélotte <raphael.melotte@mind.be>
This commit is contained in:
Christian Stewart
2026-08-30 20:10:29 -04:00
committed by Raphaël Mélotte
parent 64b813b5b7
commit f7a030038f
2 changed files with 10 additions and 16 deletions

View File

@@ -1,9 +1,9 @@
# sha256 checksum from https://go.dev/dl/
sha256 a0721c54c688901448d77ad9b3ec7ea7c474730755ff891382e92ecb93ff2cb1 go1.26.6.src.tar.gz
sha256 f09a71029fc5cd2940fbe36b0eb1fb2d8f3407cd6adb6b7b4de3eaf04007f8c4 go1.26.6.linux-386.tar.gz
sha256 708effb774be8237570d0add163225abbdfaf4fca28b2611df167beba4feef89 go1.26.6.linux-amd64.tar.gz
sha256 d0507e9e9d7fe012aae570108cbd76c15de879e17130ab8cb90d4d7445cb1f2e go1.26.6.linux-arm64.tar.gz
sha256 e1379a2fe77bd30fa29833074388247e7c65416e09279f746f20de2d5cf4dfea go1.26.6.linux-armv6l.tar.gz
sha256 232b65543a42eda95df6a63f76235c1795bb535eba5c74e509faec71bc648388 go1.26.6.linux-ppc64le.tar.gz
sha256 958757933d38172dd544085d253c8738cf09793d24c8bc0422e5e1e1fffa4fde go1.26.6.linux-s390x.tar.gz
sha256 7002403d7cc44529ef6d26f69a44818263395ead7c16c05a5808ae047ebeb0e5 go1.27.0.src.tar.gz
sha256 eac4abaca4113170a1cf261b8bf1d38480e61e99deecbc6a14767deb8b19e8ad go1.27.0.linux-386.tar.gz
sha256 675c26c449cbb18fc24b74650de1eabbae6e16f64326fd85a283fb3b58280685 go1.27.0.linux-amd64.tar.gz
sha256 51798d2c42d0e1c6ed7fd9f48728b4193abac9e8aad6dbac2fe96a81f5909bda go1.27.0.linux-arm64.tar.gz
sha256 e337ecd9c321377c0d8832690c2cb10463447c0bd0e65e2e3413dfff63a3435b go1.27.0.linux-armv6l.tar.gz
sha256 068085e257a6014c036c723ca62943edbf48fd168b8d00a6d39527d10b656255 go1.27.0.linux-ppc64le.tar.gz
sha256 cb5c89fa48cba4123c68aee62b217ca030f281546df0898a0c32889c340b928c go1.27.0.linux-s390x.tar.gz
sha256 911f8f5782931320f5b8d1160a76365b83aea6447ee6c04fa6d5591467db9dad LICENSE

View File

@@ -4,10 +4,7 @@
#
################################################################################
# When bumping this to 1.27 (or beyond), remove the workaround for
# upstream issue https://github.com/golang/go/issues/77436, below
# (i.e. revert the commit adding these lines).
GO_VERSION = 1.26.6
GO_VERSION = 1.27.0
HOST_GO_GOPATH = $(HOST_DIR)/share/go-path
HOST_GO_HOST_CACHE = $(HOST_DIR)/share/host-go-cache
@@ -78,14 +75,11 @@ HOST_GO_TARGET_ENV = \
$(if $(GO_GOARM),GOARM=$(GO_GOARM)) \
CC="$(TARGET_CC)" \
CXX="$(TARGET_CXX)" \
CGO_CFLAGS="$(TARGET_CFLAGS)" \
CGO_CXXFLAGS="$(TARGET_CXXFLAGS)" \
CGO_LDFLAGS="$(TARGET_LDFLAGS)" \
GOTOOLDIR="$(HOST_GO_TOOLDIR)"
# Workaround for https://github.com/golang/go/issues/77436
HOST_GO_TARGET_ENV += \
CGO_CFLAGS="$(subst -g3,-g2,$(TARGET_CFLAGS))" \
CGO_CXXFLAGS="$(subst -g3,-g2,$(TARGET_CXXFLAGS))"
# Allow packages to use cgo support if it is available for the target. They
# will need the toolchain for cgo support; for convenence, include that
# dependency here.