summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch')
-rw-r--r--meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch b/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch
deleted file mode 100644
index 35f3a98d80..0000000000
--- a/meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch
+++ /dev/null
@@ -1,43 +0,0 @@
1From 619991feab04f331d081a91243434ccd859f611d Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Mon, 23 Nov 2020 19:22:04 +0000
4Subject: [PATCH 7/9] exec.go: do not write linker flags into buildids
5
6The flags can contain build-specific paths, breaking reproducibility.
7
8To make this acceptable to upstream, we probably need to trim the flags,
9removing those known to be buildhost-specific.
10
11Upstream-Status: Inappropriate [needs upstream discussion]
12
13Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
14Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
15---
16 src/cmd/go/internal/work/exec.go | 4 ++--
17 1 file changed, 2 insertions(+), 2 deletions(-)
18
19diff --git a/src/cmd/go/internal/work/exec.go b/src/cmd/go/internal/work/exec.go
20index 544df461a2..75df5a4aa8 100644
21--- a/src/cmd/go/internal/work/exec.go
22+++ b/src/cmd/go/internal/work/exec.go
23@@ -1374,7 +1374,7 @@ func (b *Builder) linkActionID(a *Action) cache.ActionID {
24 }
25
26 // Toolchain-dependent configuration, shared with b.linkSharedActionID.
27- b.printLinkerConfig(h, p)
28+ //b.printLinkerConfig(h, p)
29
30 // Input files.
31 for _, a1 := range a.Deps {
32@@ -1720,7 +1720,7 @@ func (b *Builder) linkSharedActionID(a *Action) cache.ActionID {
33 fmt.Fprintf(h, "goos %s goarch %s\n", cfg.Goos, cfg.Goarch)
34
35 // Toolchain-dependent configuration, shared with b.linkActionID.
36- b.printLinkerConfig(h, nil)
37+ //b.printLinkerConfig(h, nil)
38
39 // Input files.
40 for _, a1 := range a.Deps {
41--
422.44.0
43