mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
go: use inherit go versus explicit DEPENDS
We can now use the oe-core go bbclass to get our DEPENDS correct for building these go packages. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
parent
b44fce825d
commit
a050e7a61d
|
@ -38,7 +38,6 @@ DOCKER_VERSION = "1.13.0"
|
|||
PV = "${DOCKER_VERSION}+git${SRCREV_docker}"
|
||||
|
||||
DEPENDS = " \
|
||||
go-cross-${TARGET_ARCH} \
|
||||
go-cli \
|
||||
go-pty \
|
||||
go-context \
|
||||
|
@ -61,7 +60,7 @@ DEPENDS = " \
|
|||
|
||||
PACKAGES =+ "${PN}-contrib"
|
||||
|
||||
DEPENDS_append_class-target = "lvm2"
|
||||
DEPENDS_append_class-target = " lvm2"
|
||||
RDEPENDS_${PN} = "curl aufs-util git util-linux iptables \
|
||||
${@bb.utils.contains('DISTRO_FEATURES','systemd','','cgroup-lite',d)} \
|
||||
"
|
||||
|
@ -132,6 +131,7 @@ do_compile() {
|
|||
}
|
||||
|
||||
inherit systemd update-rc.d
|
||||
inherit go
|
||||
|
||||
SYSTEMD_PACKAGES = "${@bb.utils.contains('DISTRO_FEATURES','systemd','${PN}','',d)}"
|
||||
SYSTEMD_SERVICE_${PN} = "${@bb.utils.contains('DISTRO_FEATURES','systemd','docker.service','',d)}"
|
||||
|
|
|
@ -2,7 +2,6 @@ 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-${TARGET_ARCH}"
|
||||
|
||||
SRC_URI = "git://github.com/jfrazelle/netns;branch=master"
|
||||
SRCREV = "2804050eeab661bfa75c3aa06bdcf60273b02ca7"
|
||||
|
@ -11,6 +10,7 @@ PV = "0.1.0+git${SRCPV}"
|
|||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit go-osarchmap
|
||||
inherit go
|
||||
|
||||
do_compile() {
|
||||
export GOARCH="${TARGET_GOARCH}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user