From a401b1044f6223c01a916a0e607135be970d1641 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 8 Nov 2017 22:49:17 +0100 Subject: snapd: fix build with update go infrastructure go now has its own compile class. Use it and make it work. snapd uses both autoconf and go, but the autoconf and go class compete for the configure/compile class, so manually add what is additonally needed for go. Signed-off-by: Max Krummenacher Acked-by: Marcel Ziswiler --- recipes-support/snapd/snapd_2.25.bb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/recipes-support/snapd/snapd_2.25.bb b/recipes-support/snapd/snapd_2.25.bb index 303dfee..7ea5349 100644 --- a/recipes-support/snapd/snapd_2.25.bb +++ b/recipes-support/snapd/snapd_2.25.bb @@ -14,7 +14,7 @@ SRC_URI[sha256sum] = "accd4c94049ce79443ff995c27111f3851e9896bbad502dd5d341f8847 GO_IMPORT = "github.com/snapcore/snapd" DEPENDS += " \ - go-cross \ + virtual/${TARGET_PREFIX}go \ glib-2.0 \ python3-docutils-native \ udev \ @@ -36,7 +36,7 @@ EXTRA_OECONF += " \ --libexecdir=${libdir}/snapd \ " -inherit systemd autotools pkgconfig python3native go +inherit systemd go autotools pkgconfig python3native # Our tools build with autotools are inside the cmd subdirectory # and we need to tell the autotools class to look in there. @@ -47,6 +47,9 @@ SYSTEMD_SERVICE_${PN} = "snapd.service" do_configure_prepend() { (cd ${S} ; ./mkversion.sh ${PV}) } +do_configure_append() { + go_do_configure +} do_compile() { # Ensure we our component at the right place in our GOPATH @@ -54,7 +57,7 @@ do_compile() { ln -sf ${S} ${STAGING_LIBDIR}/${TARGET_SYS}/go/src/github.com/snapcore/snapd for d in snap snapd snap-exec snapctl; do - GOPATH=${STAGING_LIBDIR}/${TARGET_SYS}/go go build -x github.com/snapcore/snapd/cmd/$d + GOPATH=${STAGING_LIBDIR}/${TARGET_SYS}/go ${GO} build -x github.com/snapcore/snapd/cmd/$d done oe_runmake -- cgit v1.2.3