]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
go: Fix reproducibility failures
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 30 Sep 2022 09:16:23 +0000 (10:16 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 30 Sep 2022 09:32:18 +0000 (10:32 +0100)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/go/go-runtime.inc

index e18339cddb0c5602a826922676e25dca2e8ace7b..02601f799257fd2f0466a82512f4814bfd1fb26a 100644 (file)
@@ -50,6 +50,8 @@ do_install() {
        rm -rf ${D}${libdir}/go/pkg/tool
        rm -rf ${D}${libdir}/go/pkg/obj
        rm -rf ${D}${libdir}/go/pkg/bootstrap
+       # the cmd directory is built for the native arch so if BUILD == TARGET
+       rm -rf ${D}${libdir}/go/pkg/${BUILD_GOTUPLE}/cmd
        find src -mindepth 1 -maxdepth 1 -type d | while read srcdir; do
                cp --preserve=mode,timestamps -R $srcdir ${D}${libdir}/go/src/
        done