diff options
author | wangmy <wangmy@fujitsu.com> | 2022-03-08 09:52:18 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-09 11:46:27 +0000 |
commit | 7eab2d68e016472d2bea4fd53223f381af2deee5 (patch) | |
tree | 71b81f6186cc6ce3a34517cb24b56489a5ec9b0a /meta/recipes-devtools/go/go-1.18/0001-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch | |
parent | 6225b5e343c95569f9a6080ab7f2564c2a7902c8 (diff) | |
download | poky-7eab2d68e016472d2bea4fd53223f381af2deee5.tar.gz |
go: upgrade 1.17.7 -> 1.17.8
(From OE-Core rev: c375fcae8fd4c21a9f240440f9d7f31dde415e30)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/go/go-1.18/0001-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch')
-rw-r--r-- | meta/recipes-devtools/go/go-1.18/0001-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-1.18/0001-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch b/meta/recipes-devtools/go/go-1.18/0001-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch new file mode 100644 index 0000000000..257454a67d --- /dev/null +++ b/meta/recipes-devtools/go/go-1.18/0001-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 2055a46b396e272616c0b2273903e02c3b49a2ff Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Tue, 10 Nov 2020 16:33:27 +0000 | ||
4 | Subject: [PATCH] src/cmd/dist/buildgo.go: do not hardcode host compilers into | ||
5 | target binaries | ||
6 | |||
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. | ||
9 | |||
10 | Upstream-Status: Inappropriate [needs upstream discussion] | ||
11 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
12 | --- | ||
13 | src/cmd/dist/buildgo.go | 8 ++++---- | ||
14 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
15 | |||
16 | diff --git a/src/cmd/dist/buildgo.go b/src/cmd/dist/buildgo.go | ||
17 | index caafc13..4eb1c96 100644 | ||
18 | --- a/src/cmd/dist/buildgo.go | ||
19 | +++ b/src/cmd/dist/buildgo.go | ||
20 | @@ -34,8 +34,8 @@ func mkzdefaultcc(dir, file string) { | ||
21 | fmt.Fprintf(&buf, "package cfg\n") | ||
22 | fmt.Fprintln(&buf) | ||
23 | fmt.Fprintf(&buf, "const DefaultPkgConfig = `%s`\n", defaultpkgconfig) | ||
24 | - buf.WriteString(defaultCCFunc("DefaultCC", defaultcc)) | ||
25 | - buf.WriteString(defaultCCFunc("DefaultCXX", defaultcxx)) | ||
26 | + buf.WriteString(defaultCCFunc("DefaultCC", map[string]string{"":"gcc"})) | ||
27 | + buf.WriteString(defaultCCFunc("DefaultCXX", map[string]string{"":"g++"})) | ||
28 | writefile(buf.String(), file, writeSkipSame) | ||
29 | return | ||
30 | } | ||
31 | @@ -46,8 +46,8 @@ func mkzdefaultcc(dir, file string) { | ||
32 | fmt.Fprintf(&buf, "package main\n") | ||
33 | fmt.Fprintln(&buf) | ||
34 | fmt.Fprintf(&buf, "const defaultPkgConfig = `%s`\n", defaultpkgconfig) | ||
35 | - buf.WriteString(defaultCCFunc("defaultCC", defaultcc)) | ||
36 | - buf.WriteString(defaultCCFunc("defaultCXX", defaultcxx)) | ||
37 | + buf.WriteString(defaultCCFunc("defaultCC", map[string]string{"":"gcc"})) | ||
38 | + buf.WriteString(defaultCCFunc("defaultCXX", map[string]string{"":"g++"})) | ||
39 | writefile(buf.String(), file, writeSkipSame) | ||
40 | } | ||
41 | |||