diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2016-05-20 10:55:11 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-05-20 12:34:34 -0400 |
commit | 3c3293e6b8a8c7a180a8eb0e450c0f0a99e055f4 (patch) | |
tree | 3ce0e2c171ac6735af482aab6e22f21629f8f195 /recipes-devtools/go-cross/go-native.inc | |
parent | 77e846b14f4b1ea824b345a0e8594a776d3f45f7 (diff) | |
download | meta-virtualization-3c3293e6b8a8c7a180a8eb0e450c0f0a99e055f4.tar.gz |
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 <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-devtools/go-cross/go-native.inc')
-rw-r--r-- | recipes-devtools/go-cross/go-native.inc | 4 |
1 files changed, 4 insertions, 0 deletions
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() { | |||
11 | export GOBIN="${B}/bin" | 11 | export GOBIN="${B}/bin" |
12 | rm -rf ${GOBIN} | 12 | rm -rf ${GOBIN} |
13 | mkdir ${GOBIN} | 13 | mkdir ${GOBIN} |
14 | |||
15 | export TMPDIR=${WORKDIR}/build-tmp | ||
16 | mkdir ${WORKDIR}/build-tmp | ||
17 | |||
14 | cd src | 18 | cd src |
15 | ./make.bash --host-only | 19 | ./make.bash --host-only |
16 | } | 20 | } |