Skip to contentSkip to conversation

containered|runc: override GOROOT at build time

PATCH Bruce Ashfield 1 participant 1 message Jan 22, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

merged.

Bruce

Quoted 43 lines · Lans Zhang

Similar to commit 01aa8f1, runc and containered also need to set GOROOT explicitly.

---
 recipes-containers/containerd/containerd_git.bb | 1 +
 recipes-containers/runc/runc_git.bb             | 1 +
 2 files changed, 2 insertions(+)
recipes-containers/containerd/containerd_git.bb +0 -0
index ca99e55..096a164 100644
@@ -44,6 +44,7 @@ do_compile() {
        mkdir -p .gopath/src/"$(dirname "${CONTAINERD_PKG}")"
        ln -sf ../../../.. .gopath/src/"${CONTAINERD_PKG}"
        export GOPATH="${S}/.gopath:${S}/vendor:${STAGING_DIR_TARGET}/$

{prefix}/local/go"
+ export GOROOT="${STAGING_DIR_NATIVE}/
${nonarch_libdir}/${HOST_SYS}/go"
cd -

# Pass the needed cflags/ldflags so that cgo

recipes-containers/runc/runc_git.bb +0 -0
index 905a751..ed9a32e 100644
@@ -43,6 +43,7 @@ do_compile() {
 
        (cd .gopath/src/${dname}; ln -sf ../../../../../${bname} ${bname})
        export GOPATH="${S}/.gopath:${S}/vendor:${STAGING_DIR_TARGET}/$

{prefix}/local/go"
+ export GOROOT="${STAGING_DIR_NATIVE}/
${nonarch_libdir}/${HOST_SYS}/go"
cd -

# Pass the needed cflags/ldflags so that cgo
--
2.7.4

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"