go: revert an oe-specific patch
PATCH 1/1 go: revert an oe-specific patch
From: Changqing Li <[email protected]>
patch 0007-exec.go-do-not-write-linker-flags-into-buildids.patch removes linker flags from buildids for not breaking reproducibility, but it seems that this will make go not rebuild when linker flag changes, Refer [1]. So revert this oe-specific patch, need to find a more proper way to fix reproducibilities.
[1] https://github.com/golang/go/issues/63760
--- meta/recipes-devtools/go/go-1.20.13.inc | 1 - ...not-write-linker-flags-into-buildids.patch | 41 ------------------- 2 files changed, 42 deletions(-) delete mode 100644 meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch
meta/recipes-devtools/go/go-1.20.13.inc +0 -1
@@ -11,7 +11,6 @@ SRC_URI += "\ file://0004-make.bash-override-CC-when-building-dist-and-go_boot.patch \ file://0005-cmd-dist-separate-host-and-target-builds.patch \ file://0006-cmd-go-make-GOROOT-precious-by-default.patch \ - file://0007-exec.go-do-not-write-linker-flags-into-buildids.patch \ file://0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch \ file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \ "
meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patch deleted +0 -41
41 lines not on this page · raw message
Signature · 1 line
2.25.1
Quoted 22 lines · Changqing Li
From: Changqing Li <[email protected]>
patch 0007-exec.go-do-not-write-linker-flags-into-buildids.patch removes linker flags from buildids for not breaking reproducibility, but it seems that this will make go not rebuild when linker flag changes, Refer [1]. So revert this oe-specific patch, need to find a more proper way to fix reproducibilities.
[1] https://github.com/golang/go/issues/63760
Signed-off-by Changqing Li <[email protected]>--- meta/recipes-devtools/go/go-1.20.13.inc | 1 - ...not-write-linker-flags-into-buildids.patch | 41 ------------------- 2 files changed, 42 deletions(-) delete mode 100644 meta/recipes-devtools/go/go/0007-exec.go-do-not-write-linker-flags-into-buildids.patchmeta/recipes-devtools/go/go-1.20.13.inc +0
-0
meta/recipes-devtools/go/go-1.20.13.inc SRC_URI += "\ · line 16
Quoted 7 lines
meta/recipes-devtools/go/go-1.20.13.inc +0
-1@@ -11,7 +11,6 @@ SRC_URI += "\ file://0004-make.bash-override-CC-when-building-dist-and-go_boot.patch \ file://0005-cmd-dist-separate-host-and-target-builds.patch \ file://0006-cmd-go-make-GOROOT-precious-by-default.patch \ - file://0007-exec.go-do-not-write-linker-flags-into-buildids.patch \ file://0008-src-cmd-dist-buildgo.go-do-not-hardcode-host-compile.patch \ file://0009-go-Filter-build-paths-on-staticly-linked-arches.patch \ "
We can't just delete this as reproducibility will then break.
Please find a patch to replace this which fixes the issue and allows reproducibility.
We probably need to filter the linker flags and remove the problematic ones.
Cheers,
Richard