]> code.ossystems Code Review - openembedded-core.git/commitdiff
go: Rely on go-runtime to provide needed modules
authorKhem Raj <raj.khem@gmail.com>
Tue, 21 Apr 2020 22:55:21 +0000 (15:55 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 26 Apr 2020 12:58:45 +0000 (13:58 +0100)
go compiler is including go/src/cmd modules in -dev package which is in
conflict with go-runtime-dev which provides exact same copy of this
module along with other runtime modules, as a result when both go-dev and
go-runtime-dev are included in image then it results in rootfs failures,
here lets make go depend on go-runtime and dont install the cmd module
here explicitly.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/go/go-target.inc

index 316bf6f0389218aab713231746b4cf9f09945c0d..8e44247031820a50f14c9883eb8aad322d87bdbd 100644 (file)
@@ -34,12 +34,12 @@ do_install() {
                install -m 0755 $f ${D}${libdir}/go/bin/
                ln -sf ../${baselib}/go/bin/$name ${D}${bindir}/
        done
+       rm -rf ${D}${libdir}/go/src
 }
 
 PACKAGES = "${PN} ${PN}-dev"
 FILES_${PN} = "${libdir}/go/bin ${libdir}/go/pkg/tool/${TARGET_GOTUPLE} ${bindir}"
-FILES_${PN}-dev = "${libdir}/go"
-RDEPENDS_${PN}-dev = "perl bash"
+RDEPENDS_${PN} = "go-runtime"
 INSANE_SKIP_${PN} = "ldflags"
 
 BBCLASSEXTEND = "nativesdk"