27 Commits
19.x ... 21.x

Author SHA1 Message Date
actions
ada3c9b0dd golang: bump to 1.21.13 2024-08-07 02:00:17 +08:00
actions
6c8863cf64 golang: bump to 1.21.12 2024-07-03 04:00:12 +08:00
actions
2fc0296bb8 golang: bump to 1.21.11 2024-06-05 06:00:07 +08:00
actions
10436205c8 golang: bump to 1.21.10 2024-05-08 06:00:06 +08:00
actions
498794d26c golang: bump to 1.21.9 2024-04-04 00:00:10 +08:00
actions
6822e1cb8b golang: bump to 1.21.8 2024-03-06 06:14:27 +08:00
actions
5f1e7e6d6f golang: bump to 1.21.7 2024-02-07 06:00:06 +08:00
actions
cf0f4c1239 golang: bump to 1.21.6 2024-01-10 06:00:06 +08:00
actions
38b8096a81 golang: bump to 1.21.5 2023-12-06 06:00:07 +08:00
actions
e9dfb8bb01 golang: bump to 1.21.4 2023-11-08 06:00:07 +08:00
actions
41cefb9566 golang: bump to 1.21.3 2023-10-11 06:00:06 +08:00
Bard
034d17a98a golang: bump to 1.21.2 2023-10-07 07:44:17 -05:00
sbwml
1bf93c9a6f update from upstream 2023-09-15 04:08:12 +08:00
Bard
e04d714126 golang: bump to 1.21.1 2023-09-07 02:29:25 +08:00
sbwml
584b340de9 golang: bump to 1.21.0 2023-08-19 10:40:13 +08:00
Bard
a329fe126e golang: bump to 1.20.7 2023-08-05 08:25:13 +08:00
Bard
ff07745507 golang: bump to 1.20.6 2023-07-19 17:51:10 +08:00
Bard
584c3c9044 golang: bump to 1.20.5 2023-06-08 07:42:01 +08:00
Bard
51b4eb29db golang: bump to 1.20.4 2023-05-13 16:25:53 +08:00
Bard
95bb90611c golang: bump to 1.20.3 2023-04-14 15:52:24 +08:00
sbwml
56b6d276da svn -> git 2023-03-23 04:25:09 +08:00
sbwml
654787fe39 bootstrap: add BOOTSTRAP_HASH 2023-03-23 04:23:05 +08:00
Bard
b8364d8e2b golang 1.20.2 2023-03-14 17:36:35 +08:00
Bard
65fd70b810 golang: bump to 1.20.1 2023-02-21 02:44:53 +08:00
sbwml
4d5f77bd76 bump to golang 1.20 2023-02-03 23:06:22 +08:00
Bard
d8d5e05fa4 golang 1.19.5 2023-01-20 11:07:20 +08:00
Bard
3bfbdf1622 golang 1.19.4 2022-12-10 17:51:42 +08:00
6 changed files with 26 additions and 65 deletions

View File

@@ -4,5 +4,5 @@
```shell
rm -rf feeds/packages/lang/golang
svn export https://github.com/sbwml/packages_lang_golang/trunk feeds/packages/lang/golang
git clone https://github.com/sbwml/packages_lang_golang -b 21.x feeds/packages/lang/golang
```

View File

@@ -57,9 +57,10 @@ define GoCompiler/Default/Install/Bin
$(call GoCompiler/Default/Install/install-share-data,$(1),$(2),$(3),api)
$(INSTALL_DATA) -p "$(1)/go.env" "$(2)/lib/go-$(3)/"
$(INSTALL_DATA) -p "$(1)/VERSION" "$(2)/lib/go-$(3)/"
for file in AUTHORS CONTRIBUTING.md CONTRIBUTORS LICENSE PATENTS README.md SECURITY.md; do \
for file in CONTRIBUTING.md LICENSE PATENTS README.md SECURITY.md; do \
if [ -f "$(1)/$$$$file" ]; then \
$(INSTALL_DATA) -p "$(1)/$$$$file" "$(2)/share/go-$(3)/" ; \
fi ; \
@@ -73,9 +74,6 @@ define GoCompiler/Default/Install/Bin
$(INSTALL_BIN) -p "$(1)/bin/$(4)"/* "$(2)/lib/go-$(3)/bin/"
endif
$(INSTALL_DIR) "$(2)/lib/go-$(3)/pkg"
$(CP) "$(1)/pkg/$(4)$(if $(5),_$(5))" "$(2)/lib/go-$(3)/pkg/"
$(INSTALL_DIR) "$(2)/lib/go-$(3)/pkg/tool/$(4)"
$(INSTALL_BIN) -p "$(1)/pkg/tool/$(4)"/* "$(2)/lib/go-$(3)/pkg/tool/$(4)/"
endef

View File

@@ -215,7 +215,8 @@ GO_PKG_BUILD_VARS= \
GOPATH="$(GO_PKG_BUILD_DIR)" \
GOCACHE="$(GO_BUILD_CACHE_DIR)" \
GOMODCACHE="$(GO_MOD_CACHE_DIR)" \
GOENV=off
GOENV=off \
GOTOOLCHAIN=local
GO_PKG_VARS= \
$(GO_PKG_TARGET_VARS) \

View File

@@ -28,6 +28,7 @@ unexport \
GOFLAGS \
GOOS \
GOPATH \
GOTOOLCHAIN \
GOROOT \
GOTMPDIR \
GOWORK
@@ -215,7 +216,7 @@ GO_PIE_SUPPORTED_OS_ARCH:= \
\
aix_ppc64 \
\
linux_ppc64le linux_riscv64 linux_s390x
linux_loong64 linux_ppc64le linux_riscv64 linux_s390x
# From https://go.dev/src/cmd/go/internal/work/init.go
go_pie_install_suffix=$(if $(filter $(1),aix_ppc64 windows_386 windows_amd64 windows_arm),,shared)

View File

@@ -7,8 +7,8 @@
include $(TOPDIR)/rules.mk
GO_VERSION_MAJOR_MINOR:=1.19
GO_VERSION_PATCH:=3
GO_VERSION_MAJOR_MINOR:=1.21
GO_VERSION_PATCH:=13
PKG_NAME:=golang
PKG_VERSION:=$(GO_VERSION_MAJOR_MINOR)$(if $(GO_VERSION_PATCH),.$(GO_VERSION_PATCH))
@@ -20,7 +20,7 @@ GO_SOURCE_URLS:=https://dl.google.com/go/ \
PKG_SOURCE:=go$(PKG_VERSION).src.tar.gz
PKG_SOURCE_URL:=$(GO_SOURCE_URLS)
PKG_HASH:=18ac263e39210bcf68d85f4370e97fb1734166995a1f63fb38b4f6e07d90d212
PKG_HASH:=71fb31606a1de48d129d591e8717a63e0c5565ffba09a24ea9f899a13214c34d
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
PKG_LICENSE:=BSD-3-Clause
@@ -58,20 +58,33 @@ HOST_GO_VALID_OS_ARCH:= \
\
dragonfly_amd64 \
illumos_amd64 \
freebsd_riscv64 \
solaris_amd64 \
\
aix_ppc64 \
js_wasm \
wasip1_wasm \
\
linux_ppc64 linux_ppc64le \
linux_mips linux_mipsle linux_mips64 linux_mips64le \
linux_riscv64 linux_s390x \
linux_loong64 \
\
openbsd_mips64
BOOTSTRAP_SOURCE:=go1.4-bootstrap-20171003.tar.gz
ifeq ($(HOST_ARCH),x86_64)
PKG_ARCH:=amd64
SHA256:=550f9845451c0c94be679faf116291e7807a8d78b43149f9506c1b15eb89008c
endif
ifeq ($(HOST_ARCH),aarch64)
PKG_ARCH:=arm64
SHA256:=06f505c8d27203f78706ad04e47050b49092f1b06dc9ac4fbee4f0e4d015c8d4
endif
BOOTSTRAP_SOURCE:=go1.17.3.linux-$(PKG_ARCH).tar.gz
BOOTSTRAP_SOURCE_URL:=$(GO_SOURCE_URLS)
BOOTSTRAP_HASH:=f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52
BOOTSTRAP_HASH:=$(SHA256)
BOOTSTRAP_BUILD_DIR:=$(HOST_BUILD_DIR)/.go_bootstrap
@@ -213,10 +226,6 @@ define Host/Compile
mkdir -p "$(GO_BUILD_CACHE_DIR)"
$(call GoCompiler/Bootstrap/Make, \
$(HOST_GO_VARS) \
)
$(call GoCompiler/Host/Make, \
GOROOT_BOOTSTRAP="$(BOOTSTRAP_ROOT_DIR)" \
$(if $(HOST_GO_ENABLE_PIE),GO_LDFLAGS="-buildmode pie") \
@@ -263,7 +272,7 @@ $(eval $(call GoCompiler/AddProfile,Package,$(PKG_BUILD_DIR),$(PKG_GO_PREFIX),$(
PKG_GO_ZBOOTSTRAP_MODS:= \
s/defaultGO386 = `[^`]*`/defaultGO386 = `$(or $(GO_386),sse2)`/; \
s/defaultGOAMD64 = `[^`]*`/defaultGOAMD64 = `$(or $(GO_AMD64),v1)`/; \
s/defaultGOARM = `[^`]*`/defaultGOARM = `$(or $(GO_ARM),5)`/; \
s/defaultGOARM = `[^`]*`/defaultGOARM = `$(or $(GO_ARM),7)`/; \
s/defaultGOMIPS = `[^`]*`/defaultGOMIPS = `$(or $(GO_MIPS),hardfloat)`/; \
s/defaultGOMIPS64 = `[^`]*`/defaultGOMIPS64 = `$(or $(GO_MIPS64),hardfloat)`/; \
s/defaultGOPPC64 = `[^`]*`/defaultGOPPC64 = `$(or $(GO_PPC64),power8)`/;

View File

@@ -1,48 +0,0 @@
From 5ccf9f47bf4f5ba53e0ab7338a7fd4626714cfb2 Mon Sep 17 00:00:00 2001
From: Jeffery To <jeffery.to@gmail.com>
Date: Tue, 23 Nov 2021 15:05:37 +0800
Subject: [PATCH] cmd/link: use gold on ARM/ARM64 only if gold is available
COPY relocation handling on ARM/ARM64 has been fixed in recent versions
of the GNU linker. This switches to gold only if gold is available.
Fixes #22040.
---
src/cmd/link/internal/ld/lib.go | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
--- a/src/cmd/link/internal/ld/lib.go
+++ b/src/cmd/link/internal/ld/lib.go
@@ -1393,25 +1393,20 @@ func (ctxt *Link) hostlink() {
}
if ctxt.Arch.InFamily(sys.ARM, sys.ARM64) && buildcfg.GOOS == "linux" {
- // On ARM, the GNU linker will generate COPY relocations
- // even with -znocopyreloc set.
+ // On ARM, older versions of the GNU linker will generate
+ // COPY relocations even with -znocopyreloc set.
// https://sourceware.org/bugzilla/show_bug.cgi?id=19962
//
- // On ARM64, the GNU linker will fail instead of
- // generating COPY relocations.
+ // On ARM64, older versions of the GNU linker will fail
+ // instead of generating COPY relocations.
//
- // In both cases, switch to gold.
- altLinker = "gold"
-
- // If gold is not installed, gcc will silently switch
- // back to ld.bfd. So we parse the version information
- // and provide a useful error if gold is missing.
+ // In both cases, switch to gold if gold is available.
name, args := flagExtld[0], flagExtld[1:]
args = append(args, "-fuse-ld=gold", "-Wl,--version")
cmd := exec.Command(name, args...)
if out, err := cmd.CombinedOutput(); err == nil {
- if !bytes.Contains(out, []byte("GNU gold")) {
- log.Fatalf("ARM external linker must be gold (issue #15696), but is not: %s", out)
+ if bytes.Contains(out, []byte("GNU gold")) {
+ altLinker = "gold"
}
}
}