Since we are building a cross tool which produces something which is ARCH specific we should stick to the <toolname>-cross-<arch> naming convention. A variant of this patch has been floating around for a while but with the changes around per recipe sysroots, distributed builds, shared builds... we are best served to adopt this convention now.
Signed-off-by: Mark Asselstine <[email protected]> --- recipes-containers/containerd/containerd_git.bb | 2 +- recipes-containers/docker/docker_git.bb | 2 +- recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb | 2 +- recipes-containers/riddler/riddler_git.bb | 2 +- recipes-containers/runc/runc_git.bb | 2 +- recipes-devtools/go-cross/go-cross.inc | 3 +++ recipes-networking/netns/netns_git.bb | 2 +- 7 files changed, 9 insertions(+), 6 deletions(-) diff --git a/recipes-containers/containerd/containerd_git.bb b/recipes-containers/containerd/containerd_git.bb index 096a164..f5d5cd7 100644 --- a/recipes-containers/containerd/containerd_git.bb +++ b/recipes-containers/containerd/containerd_git.bb @@ -18,7 +18,7 @@ S = "${WORKDIR}/git" CONTAINERD_VERSION = "0.2.2" PV = "${CONTAINERD_VERSION}+git${SRCREV}" -DEPENDS = "go-cross \ +DEPENDS = "go-cross-${TARGET_ARCH} \ " RRECOMMENDS_${PN} = "lxc docker" diff --git a/recipes-containers/docker/docker_git.bb b/recipes-containers/docker/docker_git.bb index c208a02..d264166 100644 --- a/recipes-containers/docker/docker_git.bb +++ b/recipes-containers/docker/docker_git.bb @@ -37,7 +37,7 @@ DOCKER_VERSION = "1.13.0" PV = "${DOCKER_VERSION}+git${SRCREV}" DEPENDS = " \ - go-cross \ + go-cross-${TARGET_ARCH} \ go-cli \ go-pty \ go-context \ diff --git a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb index dac2d13..7e5af38 100644 --- a/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb +++ b/recipes-containers/oci-runtime-tools/oci-runtime-tools_git.bb @@ -2,7 +2,7 @@ HOMEPAGE = "https://github.com/opencontainers/runtime-tools" SUMMARY = "oci-runtime-tool is a collection of tools for working with the OCI runtime specification" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://LICENSE;md5=b355a61a394a504dacde901c958f662c" -DEPENDS = "go-cross" +DEPENDS = "go-cross-${TARGET_ARCH}" SRC_URI = "git://github.com/opencontainers/runtime-tools.git" diff --git a/recipes-containers/riddler/riddler_git.bb b/recipes-containers/riddler/riddler_git.bb index 361e9d2..49e8aa0 100644 --- a/recipes-containers/riddler/riddler_git.bb +++ b/recipes-containers/riddler/riddler_git.bb @@ -2,7 +2,7 @@ HOMEPAGE = "https://github.com/jfrazelle/riddler" SUMMARY = "Convert `docker inspect` to opencontainers (OCI compatible) runc spec." LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=20ce4c6a4f32d6ee4a68e3a7506db3f1" -DEPENDS = "go-cross" +DEPENDS = "go-cross-${TARGET_ARCH}" SRC_URI = "git://github.com/jfrazelle/riddler;branch=master" SRCREV = "23befa0b232877b5b502b828e24161d801bd67f6" diff --git a/recipes-containers/runc/runc_git.bb b/recipes-containers/runc/runc_git.bb index ed9a32e..23c0094 100644 --- a/recipes-containers/runc/runc_git.bb +++ b/recipes-containers/runc/runc_git.bb @@ -18,7 +18,7 @@ S = "${WORKDIR}/git" RUNC_VERSION = "1.0.0-rc1" PV = "${RUNC_VERSION}+git${SRCREV}" -DEPENDS = "go-cross \ +DEPENDS = "go-cross-${TARGET_ARCH} \ " RRECOMMENDS_${PN} = "lxc docker" diff --git a/recipes-devtools/go-cross/go-cross.inc b/recipes-devtools/go-cross/go-cross.inc index 857fbd5..a7117bc 100644 --- a/recipes-devtools/go-cross/go-cross.inc +++ b/recipes-devtools/go-cross/go-cross.inc @@ -1,5 +1,8 @@ inherit cross +# Produces target arch specific code so we should reflect this in the PN +PN = "go-cross-${TARGET_ARCH}" + # libgcc is required for the target specific libraries to build properly DEPENDS += "go-initial-native libgcc virtual/${TARGET_PREFIX}gcc" diff --git a/recipes-networking/netns/netns_git.bb b/recipes-networking/netns/netns_git.bb index 073022e..247b37d 100644 --- a/recipes-networking/netns/netns_git.bb +++ b/recipes-networking/netns/netns_git.bb @@ -2,7 +2,7 @@ HOMEPAGE = "https://github.com/jfrazelle/netns" SUMMARY = "Runc hook for setting up default bridge networking." LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=20ce4c6a4f32d6ee4a68e3a7506db3f1" -DEPENDS = "go-cross" +DEPENDS = "go-cross-${TARGET_ARCH}" SRC_URI = "git://github.com/jfrazelle/netns;branch=master" SRCREV = "2804050eeab661bfa75c3aa06bdcf60273b02ca7" -- 2.7.4 -- _______________________________________________ meta-virtualization mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-virtualization
