summaryrefslogtreecommitdiffstats
path: root/recipes-containers/docker/docker.inc
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2024-05-24 03:43:09 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2024-05-29 13:16:56 +0000
commit258742feb5ba952d4cb033246f5ca8ef83912e38 (patch)
treefb998b18b4208874ef47f187b92eb34c7285e555 /recipes-containers/docker/docker.inc
parent13928411b25d52d0cabbfd5bff7affd18d6c8a5c (diff)
downloadmeta-virtualization-258742feb5ba952d4cb033246f5ca8ef83912e38.tar.gz
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>
Diffstat (limited to 'recipes-containers/docker/docker.inc')
-rw-r--r--recipes-containers/docker/docker.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc
index 48f7d3ec..8aabd154 100644
--- a/recipes-containers/docker/docker.inc
+++ b/recipes-containers/docker/docker.inc
@@ -60,8 +60,8 @@ do_compile() {
60 ln -sf ../../../.. .gopath/src/"${DOCKER_PKG}" 60 ln -sf ../../../.. .gopath/src/"${DOCKER_PKG}"
61 61
62 mkdir -p .gopath/src/github.com/docker 62 mkdir -p .gopath/src/github.com/docker
63 ln -sf ${WORKDIR}/git/libnetwork .gopath/src/github.com/docker/libnetwork 63 ln -sf ${S}/libnetwork .gopath/src/github.com/docker/libnetwork
64 ln -sf ${WORKDIR}/git/cli .gopath/src/github.com/docker/cli 64 ln -sf ${S}/cli .gopath/src/github.com/docker/cli
65 65
66 export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor" 66 export GOPATH="${S}/src/import/.gopath:${S}/src/import/vendor"
67 export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go" 67 export GOROOT="${STAGING_DIR_NATIVE}/${nonarch_libdir}/${HOST_SYS}/go"
@@ -98,9 +98,9 @@ do_compile() {
98 98
99do_install() { 99do_install() {
100 mkdir -p ${D}/${bindir} 100 mkdir -p ${D}/${bindir}
101 cp ${WORKDIR}/git/cli/build/docker ${D}/${bindir}/docker 101 cp ${S}/cli/build/docker ${D}/${bindir}/docker
102 cp ${S}/src/import/bundles/dynbinary-daemon/dockerd ${D}/${bindir}/dockerd 102 cp ${S}/src/import/bundles/dynbinary-daemon/dockerd ${D}/${bindir}/dockerd
103 cp ${WORKDIR}/git/libnetwork/bin/docker-proxy* ${D}/${bindir}/docker-proxy 103 cp ${S}/libnetwork/bin/docker-proxy* ${D}/${bindir}/docker-proxy
104 104
105 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 105 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
106 install -d ${D}${systemd_unitdir}/system 106 install -d ${D}${systemd_unitdir}/system
@@ -110,7 +110,7 @@ do_install() {
110 rm -f ${D}/${systemd_unitdir}/system/docker.service.rpm 110 rm -f ${D}/${systemd_unitdir}/system/docker.service.rpm
111 else 111 else
112 install -d ${D}${sysconfdir}/init.d 112 install -d ${D}${sysconfdir}/init.d
113 install -m 0755 ${WORKDIR}/docker.init ${D}${sysconfdir}/init.d/docker.init 113 install -m 0755 ${UNPACKDIR}/docker.init ${D}${sysconfdir}/init.d/docker.init
114 fi 114 fi
115 # TLS key that docker creates at run-time if not found is what resides here 115 # TLS key that docker creates at run-time if not found is what resides here
116 if ${@bb.utils.contains('PACKAGECONFIG','transient-config','true','false',d)}; then 116 if ${@bb.utils.contains('PACKAGECONFIG','transient-config','true','false',d)}; then