diff options
author | Jose Quaresma <quaresma.jose@gmail.com> | 2024-07-04 18:05:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-08 09:17:09 +0100 |
commit | 3bbb1ad1caa3be31a58fb1b8d0e4037304395fa4 (patch) | |
tree | dc0982d58b2af2a5daf223d522c6921eae1a6b28 /meta | |
parent | 8d405ba864005083e5e45418a4cc8494e4875f20 (diff) | |
download | poky-3bbb1ad1caa3be31a58fb1b8d0e4037304395fa4.tar.gz |
go: upgrade 1.22.4 -> 1.22.5
- refresh patches with devtool
Upgrade to latest 1.22.x release [1]:
$ git --no-pager log --oneline go1.22.4..go1.22.5
8e1fdea831 (tag: go1.22.5, origin/release-branch.go1.22) [release-branch.go1.22] go1.22.5
c2d4f852ce [release-branch.go1.22] cmd/link: handle dynamic import variables on Darwin in plugin mode
3222951439 [release-branch.go1.22] net/http: send body or close connection on expect-100-continue requests
ceaf26ecce [release-branch.go1.22] cmd/compile: mark pointer to noalg type as noalg
dfe4dbf8c0 [release-branch.go1.22] os/exec: on Windows look for extensions in Run if not already done
3560cf0afb [release-branch.go1.22] runtime: always update stack bounds on cgocallback
5159a7193a [release-branch.go1.22] cmd/compile: put constants before variables in initialization order
11b861e459 [release-branch.go1.22] go/types, types2: report error for floating-point iteration variable
81fc616267 [release-branch.go1.22] crypto/tls: don't call tlsrsakex.IncNonDefault with FIPS
14f0251867 [release-branch.go1.22] cmd/cgo/internal/swig: force use of lld for LTO tests on the builders
ab60a7bc18 [release-branch.go1.22] cmd/cgo/internal/testsanitizers: make the libfuzzer tests all short
4c97e883b5 [release-branch.go1.22] cmd/link: put runtime.end in the last section of data segment
179ccb7042 [release-branch.go1.22] cmd/go: fix go list -u -m all with too new retractions dependency
fe9b3c3399 [release-branch.go1.22] net: add GODEBUG=netedns0=0 to disable sending EDNS0 header
b515c5208b [release-branch.go1.22] go/internal/gccgoimporter: recognize "any" as a builtin type
[1] https://github.com/golang/go/compare/go1.22.4...go1.22.5
(From OE-Core rev: 0a1d4a42282bd9f0bdc8dd53c7865aa81d4a5821)
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
16 files changed, 38 insertions, 66 deletions
diff --git a/meta/recipes-devtools/go/go-1.22.4.inc b/meta/recipes-devtools/go/go-1.22.5.inc index 44897daba4..7f7d8377ca 100644 --- a/meta/recipes-devtools/go/go-1.22.4.inc +++ b/meta/recipes-devtools/go/go-1.22.5.inc | |||
@@ -15,4 +15,4 @@ SRC_URI += "\ | |||
15 | file://0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch \ | 15 | file://0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch \ |
16 | file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \ | 16 | file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \ |
17 | " | 17 | " |
18 | SRC_URI[main.sha256sum] = "fed720678e728a7ca30ba8d1ded1caafe27d16028fab0232b8ba8e22008fb784" | 18 | SRC_URI[main.sha256sum] = "ac9c723f224969aee624bc34fd34c9e13f2a212d75c71c807de644bb46e112f6" |
diff --git a/meta/recipes-devtools/go/go-binary-native_1.22.4.bb b/meta/recipes-devtools/go/go-binary-native_1.22.5.bb index 61da51be3a..b00857f001 100644 --- a/meta/recipes-devtools/go/go-binary-native_1.22.4.bb +++ b/meta/recipes-devtools/go/go-binary-native_1.22.5.bb | |||
@@ -9,9 +9,9 @@ PROVIDES = "go-native" | |||
9 | 9 | ||
10 | # Checksums available at https://go.dev/dl/ | 10 | # Checksums available at https://go.dev/dl/ |
11 | SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}" | 11 | SRC_URI = "https://dl.google.com/go/go${PV}.${BUILD_GOOS}-${BUILD_GOARCH}.tar.gz;name=go_${BUILD_GOTUPLE}" |
12 | SRC_URI[go_linux_amd64.sha256sum] = "ba79d4526102575196273416239cca418a651e049c2b099f3159db85e7bade7d" | 12 | SRC_URI[go_linux_amd64.sha256sum] = "904b924d435eaea086515bc63235b192ea441bd8c9b198c507e85009e6e4c7f0" |
13 | SRC_URI[go_linux_arm64.sha256sum] = "a8e177c354d2e4a1b61020aca3562e27ea3e8f8247eca3170e3fa1e0c2f9e771" | 13 | SRC_URI[go_linux_arm64.sha256sum] = "8d21325bfcf431be3660527c1a39d3d9ad71535fabdf5041c826e44e31642b5a" |
14 | SRC_URI[go_linux_ppc64le.sha256sum] = "a3e5834657ef92523f570f798fed42f1f87bc18222a16815ec76b84169649ec4" | 14 | SRC_URI[go_linux_ppc64le.sha256sum] = "5312bb420ac0b59175a58927e70b4660b14ab7319aab54398b6071fabcbfbb09" |
15 | 15 | ||
16 | UPSTREAM_CHECK_URI = "https://golang.org/dl/" | 16 | UPSTREAM_CHECK_URI = "https://golang.org/dl/" |
17 | UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux" | 17 | UPSTREAM_CHECK_REGEX = "go(?P<pver>\d+(\.\d+)+)\.linux" |
diff --git a/meta/recipes-devtools/go/go-cross-canadian_1.22.4.bb b/meta/recipes-devtools/go/go-cross-canadian_1.22.5.bb index 7ac9449e47..7ac9449e47 100644 --- a/meta/recipes-devtools/go/go-cross-canadian_1.22.4.bb +++ b/meta/recipes-devtools/go/go-cross-canadian_1.22.5.bb | |||
diff --git a/meta/recipes-devtools/go/go-cross_1.22.4.bb b/meta/recipes-devtools/go/go-cross_1.22.5.bb index 80b5a03f6c..80b5a03f6c 100644 --- a/meta/recipes-devtools/go/go-cross_1.22.4.bb +++ b/meta/recipes-devtools/go/go-cross_1.22.5.bb | |||
diff --git a/meta/recipes-devtools/go/go-crosssdk_1.22.4.bb b/meta/recipes-devtools/go/go-crosssdk_1.22.5.bb index 1857c8a577..1857c8a577 100644 --- a/meta/recipes-devtools/go/go-crosssdk_1.22.4.bb +++ b/meta/recipes-devtools/go/go-crosssdk_1.22.5.bb | |||
diff --git a/meta/recipes-devtools/go/go-runtime_1.22.4.bb b/meta/recipes-devtools/go/go-runtime_1.22.5.bb index 63464a1501..63464a1501 100644 --- a/meta/recipes-devtools/go/go-runtime_1.22.4.bb +++ b/meta/recipes-devtools/go/go-runtime_1.22.5.bb | |||
diff --git a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch index 564837c7cd..a8e5d6e86d 100644 --- a/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch +++ b/meta/recipes-devtools/go/go/0001-cmd-go-make-content-based-hash-generation-less-pedan.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 9a6c5040cbcd88b10ceb8ceaebc8d6158c086670 Mon Sep 17 00:00:00 2001 | 1 | From 9b3ebef0356594a447906f00fe80584952c08289 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Mon, 28 Mar 2022 10:59:03 -0700 | 3 | Date: Mon, 28 Mar 2022 10:59:03 -0700 |
4 | Subject: [PATCH 1/9] cmd/go: make content-based hash generation less pedantic | 4 | Subject: [PATCH] cmd/go: make content-based hash generation less pedantic |
5 | 5 | ||
6 | Go 1.10's build tool now uses content-based hashes to | 6 | Go 1.10's build tool now uses content-based hashes to |
7 | determine when something should be built or re-built. | 7 | determine when something should be built or re-built. |
@@ -32,7 +32,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | |||
32 | 2 files changed, 36 insertions(+), 10 deletions(-) | 32 | 2 files changed, 36 insertions(+), 10 deletions(-) |
33 | 33 | ||
34 | diff --git a/src/cmd/go/internal/envcmd/env.go b/src/cmd/go/internal/envcmd/env.go | 34 | diff --git a/src/cmd/go/internal/envcmd/env.go b/src/cmd/go/internal/envcmd/env.go |
35 | index c7c2e83e0f..4a90d9da5c 100644 | 35 | index c7c2e83..4a90d9d 100644 |
36 | --- a/src/cmd/go/internal/envcmd/env.go | 36 | --- a/src/cmd/go/internal/envcmd/env.go |
37 | +++ b/src/cmd/go/internal/envcmd/env.go | 37 | +++ b/src/cmd/go/internal/envcmd/env.go |
38 | @@ -189,7 +189,7 @@ func ExtraEnvVarsCostly() []cfg.EnvVar { | 38 | @@ -189,7 +189,7 @@ func ExtraEnvVarsCostly() []cfg.EnvVar { |
@@ -45,7 +45,7 @@ index c7c2e83e0f..4a90d9da5c 100644 | |||
45 | // Should not happen - b.CFlags was given an empty package. | 45 | // Should not happen - b.CFlags was given an empty package. |
46 | fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err) | 46 | fmt.Fprintf(os.Stderr, "go: invalid cflags: %v\n", err) |
47 | diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go | 47 | diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go |
48 | index e05471b06c..9724cd07d0 100644 | 48 | index e05471b..9724cd0 100644 |
49 | --- a/src/cmd/go/internal/work/exec.go | 49 | --- a/src/cmd/go/internal/work/exec.go |
50 | +++ b/src/cmd/go/internal/work/exec.go | 50 | +++ b/src/cmd/go/internal/work/exec.go |
51 | @@ -232,6 +232,8 @@ func (b *Builder) Do(ctx context.Context, root *Action) { | 51 | @@ -232,6 +232,8 @@ func (b *Builder) Do(ctx context.Context, root *Action) { |
@@ -163,6 +163,3 @@ index e05471b06c..9724cd07d0 100644 | |||
163 | if err != nil { | 163 | if err != nil { |
164 | return "", "", err | 164 | return "", "", err |
165 | } | 165 | } |
166 | -- | ||
167 | 2.44.0 | ||
168 | |||
diff --git a/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch b/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch index 001c94a4e7..a69ada47b0 100644 --- a/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch +++ b/meta/recipes-devtools/go/go/0002-cmd-go-Allow-GOTOOLDIR-to-be-overridden-in-the-envir.patch | |||
@@ -1,8 +1,7 @@ | |||
1 | From e3f9a8a69d3a340c1a1d0bba566e71f20f635a43 Mon Sep 17 00:00:00 2001 | 1 | From 687ff9d17f756145f9a58413070cccbd488d1ea2 Mon Sep 17 00:00:00 2001 |
2 | From: Alex Kube <alexander.j.kube@gmail.com> | 2 | From: Alex Kube <alexander.j.kube@gmail.com> |
3 | Date: Wed, 23 Oct 2019 21:15:37 +0430 | 3 | Date: Wed, 23 Oct 2019 21:15:37 +0430 |
4 | Subject: [PATCH 2/9] cmd/go: Allow GOTOOLDIR to be overridden in the | 4 | Subject: [PATCH] cmd/go: Allow GOTOOLDIR to be overridden in the environment |
5 | environment | ||
6 | 5 | ||
7 | to allow for split host/target build roots | 6 | to allow for split host/target build roots |
8 | 7 | ||
@@ -20,7 +19,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | |||
20 | 2 files changed, 8 insertions(+), 2 deletions(-) | 19 | 2 files changed, 8 insertions(+), 2 deletions(-) |
21 | 20 | ||
22 | diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go | 21 | diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go |
23 | index 32e59b446a..06ee4de8a9 100644 | 22 | index 32e59b4..06ee4de 100644 |
24 | --- a/src/cmd/dist/build.go | 23 | --- a/src/cmd/dist/build.go |
25 | +++ b/src/cmd/dist/build.go | 24 | +++ b/src/cmd/dist/build.go |
26 | @@ -259,7 +259,9 @@ func xinit() { | 25 | @@ -259,7 +259,9 @@ func xinit() { |
@@ -35,7 +34,7 @@ index 32e59b446a..06ee4de8a9 100644 | |||
35 | goversion := findgoversion() | 34 | goversion := findgoversion() |
36 | isRelease = strings.HasPrefix(goversion, "release.") || strings.HasPrefix(goversion, "go") | 35 | isRelease = strings.HasPrefix(goversion, "release.") || strings.HasPrefix(goversion, "go") |
37 | diff --git a/src/cmd/go/internal/cfg/cfg.go b/src/cmd/go/internal/cfg/cfg.go | 36 | diff --git a/src/cmd/go/internal/cfg/cfg.go b/src/cmd/go/internal/cfg/cfg.go |
38 | index a8daa2dfc3..393ada39c9 100644 | 37 | index a8daa2d..393ada3 100644 |
39 | --- a/src/cmd/go/internal/cfg/cfg.go | 38 | --- a/src/cmd/go/internal/cfg/cfg.go |
40 | +++ b/src/cmd/go/internal/cfg/cfg.go | 39 | +++ b/src/cmd/go/internal/cfg/cfg.go |
41 | @@ -230,7 +230,11 @@ func SetGOROOT(goroot string, isTestGo bool) { | 40 | @@ -230,7 +230,11 @@ func SetGOROOT(goroot string, isTestGo bool) { |
@@ -51,6 +50,3 @@ index a8daa2dfc3..393ada39c9 100644 | |||
51 | } | 50 | } |
52 | } | 51 | } |
53 | } | 52 | } |
54 | -- | ||
55 | 2.44.0 | ||
56 | |||
diff --git a/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch b/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch index 9cab2969c8..abc5faa21c 100644 --- a/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch +++ b/meta/recipes-devtools/go/go/0003-ld-add-soname-to-shareable-objects.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 7dde77b3ce8138314dd2736604b1b110dbcc0ac1 Mon Sep 17 00:00:00 2001 | 1 | From 01fe178b292db12d811811ff2d8d56b225e4b5e8 Mon Sep 17 00:00:00 2001 |
2 | From: Alex Kube <alexander.j.kube@gmail.com> | 2 | From: Alex Kube <alexander.j.kube@gmail.com> |
3 | Date: Wed, 23 Oct 2019 21:16:32 +0430 | 3 | Date: Wed, 23 Oct 2019 21:16:32 +0430 |
4 | Subject: [PATCH 3/9] ld: add soname to shareable objects | 4 | Subject: [PATCH] ld: add soname to shareable objects |
5 | 5 | ||
6 | so that OE's shared library dependency handling | 6 | so that OE's shared library dependency handling |
7 | can find them. | 7 | can find them. |
@@ -19,7 +19,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | |||
19 | 1 file changed, 3 insertions(+) | 19 | 1 file changed, 3 insertions(+) |
20 | 20 | ||
21 | diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go | 21 | diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go |
22 | index eab74dc328..ae9bbc9093 100644 | 22 | index eab74dc..ae9bbc9 100644 |
23 | --- a/src/cmd/link/internal/ld/lib.go | 23 | --- a/src/cmd/link/internal/ld/lib.go |
24 | +++ b/src/cmd/link/internal/ld/lib.go | 24 | +++ b/src/cmd/link/internal/ld/lib.go |
25 | @@ -1576,6 +1576,7 @@ func (ctxt *Link) hostlink() { | 25 | @@ -1576,6 +1576,7 @@ func (ctxt *Link) hostlink() { |
@@ -46,6 +46,3 @@ index eab74dc328..ae9bbc9093 100644 | |||
46 | } | 46 | } |
47 | } | 47 | } |
48 | 48 | ||
49 | -- | ||
50 | 2.44.0 | ||
51 | |||
diff --git a/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch b/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch index 8889aef1cf..9df43c46d0 100644 --- a/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch +++ b/meta/recipes-devtools/go/go/0004-make.bash-override-CC-when-building-dist-and-go_boot.patch | |||
@@ -1,8 +1,7 @@ | |||
1 | From 9f59e46991074d3e3c4d00f3971e62bfcd707167 Mon Sep 17 00:00:00 2001 | 1 | From e47d157631d1b97403f253c63d361b7380b32c22 Mon Sep 17 00:00:00 2001 |
2 | From: Alex Kube <alexander.j.kube@gmail.com> | 2 | From: Alex Kube <alexander.j.kube@gmail.com> |
3 | Date: Wed, 23 Oct 2019 21:17:16 +0430 | 3 | Date: Wed, 23 Oct 2019 21:17:16 +0430 |
4 | Subject: [PATCH 4/9] make.bash: override CC when building dist and | 4 | Subject: [PATCH] make.bash: override CC when building dist and go_bootstrap |
5 | go_bootstrap | ||
6 | 5 | ||
7 | for handling OE cross-canadian builds. | 6 | for handling OE cross-canadian builds. |
8 | 7 | ||
@@ -19,7 +18,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | |||
19 | 1 file changed, 2 insertions(+), 2 deletions(-) | 18 | 1 file changed, 2 insertions(+), 2 deletions(-) |
20 | 19 | ||
21 | diff --git a/src/make.bash b/src/make.bash | 20 | diff --git a/src/make.bash b/src/make.bash |
22 | index 76ad51624a..074e129a24 100755 | 21 | index 76ad516..074e129 100755 |
23 | --- a/src/make.bash | 22 | --- a/src/make.bash |
24 | +++ b/src/make.bash | 23 | +++ b/src/make.bash |
25 | @@ -198,7 +198,7 @@ if [[ "$GOROOT_BOOTSTRAP" == "$GOROOT" ]]; then | 24 | @@ -198,7 +198,7 @@ if [[ "$GOROOT_BOOTSTRAP" == "$GOROOT" ]]; then |
@@ -40,6 +39,3 @@ index 76ad51624a..074e129a24 100755 | |||
40 | rm -f ./cmd/dist/dist | 39 | rm -f ./cmd/dist/dist |
41 | 40 | ||
42 | # DO NOT ADD ANY NEW CODE HERE. | 41 | # DO NOT ADD ANY NEW CODE HERE. |
43 | -- | ||
44 | 2.44.0 | ||
45 | |||
diff --git a/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch b/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch index 364fce907a..bc25d08fbf 100644 --- a/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch +++ b/meta/recipes-devtools/go/go/0005-cmd-dist-separate-host-and-target-builds.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 6dda78d528e60993a4688cd9d49440a726378ac8 Mon Sep 17 00:00:00 2001 | 1 | From bae1cec790ff17c4c93a2f8fda27036e5e021f6d Mon Sep 17 00:00:00 2001 |
2 | From: Alex Kube <alexander.j.kube@gmail.com> | 2 | From: Alex Kube <alexander.j.kube@gmail.com> |
3 | Date: Wed, 23 Oct 2019 21:18:12 +0430 | 3 | Date: Wed, 23 Oct 2019 21:18:12 +0430 |
4 | Subject: [PATCH 5/9] cmd/dist: separate host and target builds | 4 | Subject: [PATCH] cmd/dist: separate host and target builds |
5 | 5 | ||
6 | Change the dist tool to allow for OE-style cross- | 6 | Change the dist tool to allow for OE-style cross- |
7 | and cross-canadian builds: | 7 | and cross-canadian builds: |
@@ -45,7 +45,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | |||
45 | 1 file changed, 75 insertions(+), 1 deletion(-) | 45 | 1 file changed, 75 insertions(+), 1 deletion(-) |
46 | 46 | ||
47 | diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go | 47 | diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go |
48 | index 06ee4de8a9..74b7c7098f 100644 | 48 | index 06ee4de..016b1dd 100644 |
49 | --- a/src/cmd/dist/build.go | 49 | --- a/src/cmd/dist/build.go |
50 | +++ b/src/cmd/dist/build.go | 50 | +++ b/src/cmd/dist/build.go |
51 | @@ -46,6 +46,7 @@ var ( | 51 | @@ -46,6 +46,7 @@ var ( |
@@ -216,6 +216,3 @@ index 06ee4de8a9..74b7c7098f 100644 | |||
216 | 216 | ||
217 | if goos == "android" { | 217 | if goos == "android" { |
218 | // Make sure the exec wrapper will sync a fresh $GOROOT to the device. | 218 | // Make sure the exec wrapper will sync a fresh $GOROOT to the device. |
219 | -- | ||
220 | 2.44.0 | ||
221 | |||
diff --git a/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch b/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch index 262f1e96b8..4a57b07b7a 100644 --- a/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch +++ b/meta/recipes-devtools/go/go/0006-cmd-go-make-GOROOT-precious-by-default.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From aff5a740d6286c04beb0593fc68b0aea5a95ad39 Mon Sep 17 00:00:00 2001 | 1 | From a31db6f78d851741aea1e76132a84a24138a5bc6 Mon Sep 17 00:00:00 2001 |
2 | From: Alex Kube <alexander.j.kube@gmail.com> | 2 | From: Alex Kube <alexander.j.kube@gmail.com> |
3 | Date: Wed, 23 Oct 2019 21:18:56 +0430 | 3 | Date: Wed, 23 Oct 2019 21:18:56 +0430 |
4 | Subject: [PATCH 6/9] cmd/go: make GOROOT precious by default | 4 | Subject: [PATCH] cmd/go: make GOROOT precious by default |
5 | 5 | ||
6 | The go build tool normally rebuilds whatever it detects is | 6 | The go build tool normally rebuilds whatever it detects is |
7 | stale. This can be a problem when GOROOT is intended to | 7 | stale. This can be a problem when GOROOT is intended to |
@@ -29,7 +29,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | |||
29 | 3 files changed, 34 insertions(+) | 29 | 3 files changed, 34 insertions(+) |
30 | 30 | ||
31 | diff --git a/src/cmd/go/internal/work/action.go b/src/cmd/go/internal/work/action.go | 31 | diff --git a/src/cmd/go/internal/work/action.go b/src/cmd/go/internal/work/action.go |
32 | index a59072e591..9e35ebde0c 100644 | 32 | index a59072e..9e35ebd 100644 |
33 | --- a/src/cmd/go/internal/work/action.go | 33 | --- a/src/cmd/go/internal/work/action.go |
34 | +++ b/src/cmd/go/internal/work/action.go | 34 | +++ b/src/cmd/go/internal/work/action.go |
35 | @@ -754,6 +754,9 @@ func (b *Builder) addTransitiveLinkDeps(a, a1 *Action, shlib string) { | 35 | @@ -754,6 +754,9 @@ func (b *Builder) addTransitiveLinkDeps(a, a1 *Action, shlib string) { |
@@ -43,7 +43,7 @@ index a59072e591..9e35ebde0c 100644 | |||
43 | // TODO(rsc): The use of ModeInstall here is suspect, but if we only do ModeBuild, | 43 | // TODO(rsc): The use of ModeInstall here is suspect, but if we only do ModeBuild, |
44 | // we'll end up building an overall library or executable that depends at runtime | 44 | // we'll end up building an overall library or executable that depends at runtime |
45 | diff --git a/src/cmd/go/internal/work/build.go b/src/cmd/go/internal/work/build.go | 45 | diff --git a/src/cmd/go/internal/work/build.go b/src/cmd/go/internal/work/build.go |
46 | index 408edb5119..3d60252127 100644 | 46 | index 408edb5..3d60252 100644 |
47 | --- a/src/cmd/go/internal/work/build.go | 47 | --- a/src/cmd/go/internal/work/build.go |
48 | +++ b/src/cmd/go/internal/work/build.go | 48 | +++ b/src/cmd/go/internal/work/build.go |
49 | @@ -233,6 +233,8 @@ See also: go install, go get, go clean. | 49 | @@ -233,6 +233,8 @@ See also: go install, go get, go clean. |
@@ -67,7 +67,7 @@ index 408edb5119..3d60252127 100644 | |||
67 | 67 | ||
68 | // Note that flags consulted by other parts of the code | 68 | // Note that flags consulted by other parts of the code |
69 | diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go | 69 | diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go |
70 | index 9724cd07d0..544df461a2 100644 | 70 | index 9724cd0..544df46 100644 |
71 | --- a/src/cmd/go/internal/work/exec.go | 71 | --- a/src/cmd/go/internal/work/exec.go |
72 | +++ b/src/cmd/go/internal/work/exec.go | 72 | +++ b/src/cmd/go/internal/work/exec.go |
73 | @@ -544,6 +544,23 @@ func (b *Builder) build(ctx context.Context, a *Action) (err error) { | 73 | @@ -544,6 +544,23 @@ func (b *Builder) build(ctx context.Context, a *Action) (err error) { |
@@ -109,6 +109,3 @@ index 9724cd07d0..544df461a2 100644 | |||
109 | if err := b.Shell(a).Mkdir(a.Objdir); err != nil { | 109 | if err := b.Shell(a).Mkdir(a.Objdir); err != nil { |
110 | return err | 110 | return err |
111 | } | 111 | } |
112 | -- | ||
113 | 2.44.0 | ||
114 | |||
diff --git a/meta/recipes-devtools/go/go/0007-exec.go-filter-out-build-specific-paths-from-linker-.patch b/meta/recipes-devtools/go/go/0007-exec.go-filter-out-build-specific-paths-from-linker-.patch index c5bf28f54a..2fdd52974f 100644 --- a/meta/recipes-devtools/go/go/0007-exec.go-filter-out-build-specific-paths-from-linker-.patch +++ b/meta/recipes-devtools/go/go/0007-exec.go-filter-out-build-specific-paths-from-linker-.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 083b5c74b12a1abeb11dd7f58a1cb1593d0000c0 Mon Sep 17 00:00:00 2001 | 1 | From 1097a07b097043e15fe29a85326dbd196401244a Mon Sep 17 00:00:00 2001 |
2 | From: Changqing Li <changqing.li@windriver.com> | 2 | From: Changqing Li <changqing.li@windriver.com> |
3 | Date: Tue, 27 Feb 2024 18:06:51 +0800 | 3 | Date: Tue, 27 Feb 2024 18:06:51 +0800 |
4 | Subject: [PATCH] exec.go: filter out build-specific paths from linker flags | 4 | Subject: [PATCH] exec.go: filter out build-specific paths from linker flags |
@@ -9,15 +9,16 @@ Filter out options that have build-specific paths. | |||
9 | Upstream-Status: Inappropriate [ Not perfect for upstream ] | 9 | Upstream-Status: Inappropriate [ Not perfect for upstream ] |
10 | 10 | ||
11 | Signed-off-by: Changqing Li <changqing.li@windriver.com> | 11 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
12 | Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | ||
12 | --- | 13 | --- |
13 | src/cmd/go/internal/work/exec.go | 25 ++++++++++++++++++++++++- | 14 | src/cmd/go/internal/work/exec.go | 25 ++++++++++++++++++++++++- |
14 | 1 file changed, 24 insertions(+), 1 deletion(-) | 15 | 1 file changed, 24 insertions(+), 1 deletion(-) |
15 | 16 | ||
16 | diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go | 17 | diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go |
17 | index cde867b..e3ce17d 100644 | 18 | index 544df46..c8f297c 100644 |
18 | --- a/src/cmd/go/internal/work/exec.go | 19 | --- a/src/cmd/go/internal/work/exec.go |
19 | +++ b/src/cmd/go/internal/work/exec.go | 20 | +++ b/src/cmd/go/internal/work/exec.go |
20 | @@ -1358,6 +1358,29 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID { | 21 | @@ -1401,6 +1401,29 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID { |
21 | return h.Sum() | 22 | return h.Sum() |
22 | } | 23 | } |
23 | 24 | ||
@@ -47,7 +48,7 @@ index cde867b..e3ce17d 100644 | |||
47 | // printLinkerConfig prints the linker config into the hash h, | 48 | // printLinkerConfig prints the linker config into the hash h, |
48 | // as part of the computation of a linker-related action ID. | 49 | // as part of the computation of a linker-related action ID. |
49 | func (b *Builder) printLinkerConfig(h io.Writer, p *load.Package) { | 50 | func (b *Builder) printLinkerConfig(h io.Writer, p *load.Package) { |
50 | @@ -1368,7 +1391,7 @@ func (b *Builder) printLinkerConfig(h io.Writer, p *load.Package) { | 51 | @@ -1411,7 +1434,7 @@ func (b *Builder) printLinkerConfig(h io.Writer, p *load.Package) { |
51 | case "gc": | 52 | case "gc": |
52 | fmt.Fprintf(h, "link %s %q %s\n", b.toolID("link"), forcedLdflags, ldBuildmode) | 53 | fmt.Fprintf(h, "link %s %q %s\n", b.toolID("link"), forcedLdflags, ldBuildmode) |
53 | if p != nil { | 54 | if p != nil { |
@@ -56,6 +57,3 @@ index cde867b..e3ce17d 100644 | |||
56 | } | 57 | } |
57 | 58 | ||
58 | // GOARM, GOMIPS, etc. | 59 | // GOARM, GOMIPS, etc. |
59 | -- | ||
60 | 2.25.1 | ||
61 | |||
diff --git a/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch b/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch index 0662f66af5..4c1f0ca145 100644 --- a/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch +++ b/meta/recipes-devtools/go/go/0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch | |||
@@ -1,8 +1,8 @@ | |||
1 | From e0999902687e2e394499f7153db8d62440c4dab0 Mon Sep 17 00:00:00 2001 | 1 | From e5af6155f2d6e0758d11d6c12d6f47ea8e65b141 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Tue, 10 Nov 2020 16:33:27 +0000 | 3 | Date: Tue, 10 Nov 2020 16:33:27 +0000 |
4 | Subject: [PATCH 8/9] src/cmd/dist/buildgo.go: do not hardcode host compilers | 4 | Subject: [PATCH] src/cmd/dist/buildgo.go: do not hardcode host compilers into |
5 | into target binaries | 5 | target binaries |
6 | 6 | ||
7 | These come from $CC/$CXX on the build host and are not useful on targets; | 7 | These come from $CC/$CXX on the build host and are not useful on targets; |
8 | additionally as they contain host specific paths, this helps reproducibility. | 8 | additionally as they contain host specific paths, this helps reproducibility. |
@@ -16,7 +16,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | |||
16 | 1 file changed, 4 insertions(+), 4 deletions(-) | 16 | 1 file changed, 4 insertions(+), 4 deletions(-) |
17 | 17 | ||
18 | diff --git a/src/cmd/dist/buildgo.go b/src/cmd/dist/buildgo.go | 18 | diff --git a/src/cmd/dist/buildgo.go b/src/cmd/dist/buildgo.go |
19 | index 884e9d729a..2f52edacfe 100644 | 19 | index 884e9d7..2f52eda 100644 |
20 | --- a/src/cmd/dist/buildgo.go | 20 | --- a/src/cmd/dist/buildgo.go |
21 | +++ b/src/cmd/dist/buildgo.go | 21 | +++ b/src/cmd/dist/buildgo.go |
22 | @@ -51,8 +51,8 @@ func mkzdefaultcc(dir, file string) { | 22 | @@ -51,8 +51,8 @@ func mkzdefaultcc(dir, file string) { |
@@ -41,6 +41,3 @@ index 884e9d729a..2f52edacfe 100644 | |||
41 | writefile(buf.String(), file, writeSkipSame) | 41 | writefile(buf.String(), file, writeSkipSame) |
42 | } | 42 | } |
43 | 43 | ||
44 | -- | ||
45 | 2.44.0 | ||
46 | |||
diff --git a/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch b/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch index cc45496e9c..d939cb4716 100644 --- a/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch +++ b/meta/recipes-devtools/go/go/0009-go-Filter-build-paths-on-staticly-linked-arches.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 6c2438f187ca912c54a71b4ac65ab98999a019d2 Mon Sep 17 00:00:00 2001 | 1 | From 6bdd6405ce63c7aa4b35cd85833d03c7f1b9109a Mon Sep 17 00:00:00 2001 |
2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> | 2 | From: Richard Purdie <richard.purdie@linuxfoundation.org> |
3 | Date: Sat, 2 Jul 2022 23:08:13 +0100 | 3 | Date: Sat, 2 Jul 2022 23:08:13 +0100 |
4 | Subject: [PATCH 9/9] go: Filter build paths on staticly linked arches | 4 | Subject: [PATCH] go: Filter build paths on staticly linked arches |
5 | 5 | ||
6 | Filter out build time paths from ldflags and other flags variables when they're | 6 | Filter out build time paths from ldflags and other flags variables when they're |
7 | embedded in the go binary so that builds are reproducible regardless of build | 7 | embedded in the go binary so that builds are reproducible regardless of build |
@@ -17,7 +17,7 @@ Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | |||
17 | 1 file changed, 13 insertions(+), 2 deletions(-) | 17 | 1 file changed, 13 insertions(+), 2 deletions(-) |
18 | 18 | ||
19 | diff --git a/src/cmd/go/internal/load/pkg.go b/src/cmd/go/internal/load/pkg.go | 19 | diff --git a/src/cmd/go/internal/load/pkg.go b/src/cmd/go/internal/load/pkg.go |
20 | index 1549800afb..f41fb2c4ef 100644 | 20 | index 1549800..f41fb2c 100644 |
21 | --- a/src/cmd/go/internal/load/pkg.go | 21 | --- a/src/cmd/go/internal/load/pkg.go |
22 | +++ b/src/cmd/go/internal/load/pkg.go | 22 | +++ b/src/cmd/go/internal/load/pkg.go |
23 | @@ -2277,6 +2277,17 @@ func appendBuildSetting(info *debug.BuildInfo, key, value string) { | 23 | @@ -2277,6 +2277,17 @@ func appendBuildSetting(info *debug.BuildInfo, key, value string) { |
@@ -56,6 +56,3 @@ index 1549800afb..f41fb2c4ef 100644 | |||
56 | } | 56 | } |
57 | } | 57 | } |
58 | appendSetting("GOARCH", cfg.BuildContext.GOARCH) | 58 | appendSetting("GOARCH", cfg.BuildContext.GOARCH) |
59 | -- | ||
60 | 2.44.0 | ||
61 | |||
diff --git a/meta/recipes-devtools/go/go_1.22.4.bb b/meta/recipes-devtools/go/go_1.22.5.bb index 46f5fbc6be..46f5fbc6be 100644 --- a/meta/recipes-devtools/go/go_1.22.4.bb +++ b/meta/recipes-devtools/go/go_1.22.5.bb | |||