mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
moby: adapt SRC_URI to include destsuffix=${GO_SRCURI_DESTSUFFIX}
As of commit cc4ec43a2b657fb4c58429ab14f1edc2473c1327 [go: Drop fork of unpack code, mandate GO_SRCURI_DESTSUFFIX] we require this variable in our go recipes. We also adjust our paths to the new source location and drop references to WORKDIR. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
13928411b2
commit
258742feb5
|
@ -49,7 +49,7 @@ SRCREV_libnetwork = "67e0588f1ddfaf2faf4c8cae8b7ea2876434d91c"
|
|||
SRCREV_cli = "01f933261885c0126edb3f47fd56d048ae31265a"
|
||||
SRCREV_FORMAT = "moby_libnetwork"
|
||||
SRC_URI = "\
|
||||
git://github.com/moby/moby.git;branch=25.0;name=moby;protocol=https \
|
||||
git://github.com/moby/moby.git;branch=25.0;name=moby;protocol=https;destsuffix=${GO_SRCURI_DESTSUFFIX} \
|
||||
git://github.com/docker/libnetwork.git;branch=master;name=libnetwork;destsuffix=git/libnetwork;protocol=https \
|
||||
git://github.com/docker/cli;branch=25.0;name=cli;destsuffix=git/cli;protocol=https \
|
||||
file://docker.init \
|
||||
|
|
|
@ -60,8 +60,8 @@ do_compile() {
|
|||
ln -sf ../../../.. .gopath/src/"${DOCKER_PKG}"
|
||||
|
||||
mkdir -p .gopath/src/github.com/docker
|
||||
ln -sf ${WORKDIR}/git/libnetwork .gopath/src/github.com/docker/libnetwork
|
||||
ln -sf ${WORKDIR}/git/cli .gopath/src/github.com/docker/cli
|
||||
ln -sf ${S}/libnetwork .gopath/src/github.com/docker/libnetwork
|
||||
ln -sf ${S}/cli .gopath/src/github.com/docker/cli
|
||||
|
||||
export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor"
|
||||
export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go"
|
||||
|
@ -98,9 +98,9 @@ do_compile() {
|
|||
|
||||
do_install() {
|
||||
mkdir -p ${D}/${bindir}
|
||||
cp ${WORKDIR}/git/cli/build/docker ${D}/${bindir}/docker
|
||||
cp ${S}/cli/build/docker ${D}/${bindir}/docker
|
||||
cp ${S}/src/import/bundles/dynbinary-daemon/dockerd ${D}/${bindir}/dockerd
|
||||
cp ${WORKDIR}/git/libnetwork/bin/docker-proxy* ${D}/${bindir}/docker-proxy
|
||||
cp ${S}/libnetwork/bin/docker-proxy* ${D}/${bindir}/docker-proxy
|
||||
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
|
@ -110,7 +110,7 @@ do_install() {
|
|||
rm -f ${D}/${systemd_unitdir}/system/docker.service.rpm
|
||||
else
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${WORKDIR}/docker.init ${D}${sysconfdir}/init.d/docker.init
|
||||
install -m 0755 ${UNPACKDIR}/docker.init ${D}${sysconfdir}/init.d/docker.init
|
||||
fi
|
||||
# TLS key that docker creates at run-time if not found is what resides here
|
||||
if ${@bb.utils.contains('PACKAGECONFIG','transient-config','true','false',d)}; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user