From 3c3293e6b8a8c7a180a8eb0e450c0f0a99e055f4 Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Fri, 20 May 2016 10:55:11 -0400 Subject: go-native: don't use host /var/tmp for temp build artifacts Similar to a recent change for go-cross we can potentially run in to a build failure: go tool dist: mkdtemp(/var/tmp/go-cbuild-A0rrP5): No such file or directory when the host doesn't have a /var/tmp or when the permissions don't allow for the creation of the temporary directory. Instead of relying on /var/tmp we create and use a temporary directory in the $WORKDIR to work around this issue. This is passed to the build via the TMPDIR environment variable. Signed-off-by: Mark Asselstine Signed-off-by: Bruce Ashfield --- recipes-devtools/go-cross/go-native.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-devtools/go-cross/go-native.inc b/recipes-devtools/go-cross/go-native.inc index ae3dc830..e431b483 100644 --- a/recipes-devtools/go-cross/go-native.inc +++ b/recipes-devtools/go-cross/go-native.inc @@ -11,6 +11,10 @@ do_compile() { export GOBIN="${B}/bin" rm -rf ${GOBIN} mkdir ${GOBIN} + + export TMPDIR=${WORKDIR}/build-tmp + mkdir ${WORKDIR}/build-tmp + cd src ./make.bash --host-only } -- cgit v1.2.3-54-g00ecf