summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-30 10:16:23 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-09-30 10:32:21 +0100
commit4f942c272d4417b5b719df25b80a6a6b54669a73 (patch)
tree276b70302dc7d23db91fbe00073f8d0b8d408b24
parentbfb8626cc073b2b368ae7286fe6b0361398e4c7d (diff)
downloadpoky-4f942c272d4417b5b719df25b80a6a6b54669a73.tar.gz
go: Fix reproducibility failures
We're seeing "cmd" static libs being sometimes present and sometimes not. The issue depends whether BUILD == TARGET so they're present for qemux86-64 on x86-64 hosts but not for qemux86-64 on an aarch64 system. Add an extra deletion to make the files consistent between the different hosts. (From OE-Core rev: 6e652835814c389a826ad2d262ee26c14dfb48b5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/go/go-runtime.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/go/go-runtime.inc b/meta/recipes-devtools/go/go-runtime.inc
index e18339cddb..02601f7992 100644
--- a/meta/recipes-devtools/go/go-runtime.inc
+++ b/meta/recipes-devtools/go/go-runtime.inc
@@ -50,6 +50,8 @@ do_install() {
50 rm -rf ${D}${libdir}/go/pkg/tool 50 rm -rf ${D}${libdir}/go/pkg/tool
51 rm -rf ${D}${libdir}/go/pkg/obj 51 rm -rf ${D}${libdir}/go/pkg/obj
52 rm -rf ${D}${libdir}/go/pkg/bootstrap 52 rm -rf ${D}${libdir}/go/pkg/bootstrap
53 # the cmd directory is built for the native arch so if BUILD == TARGET
54 rm -rf ${D}${libdir}/go/pkg/${BUILD_GOTUPLE}/cmd
53 find src -mindepth 1 -maxdepth 1 -type d | while read srcdir; do 55 find src -mindepth 1 -maxdepth 1 -type d | while read srcdir; do
54 cp --preserve=mode,timestamps -R $srcdir ${D}${libdir}/go/src/ 56 cp --preserve=mode,timestamps -R $srcdir ${D}${libdir}/go/src/
55 done 57 done