diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-05-25 09:49:53 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-05-25 09:50:56 -0400 |
commit | 313b06bfade57c1088de0924075a00c21f32769a (patch) | |
tree | 4eb93dff54060aa33addc5f4d7613d639c94c678 /recipes-devtools | |
parent | da1e90ecc8b5371a250067e653ec5b3e4f1f71e0 (diff) | |
download | meta-virtualization-313b06bfade57c1088de0924075a00c21f32769a.tar.gz |
go-cross: allow tmp directory to already exist
The change [go-native: don't use host /var/tmp for temp build artifacts]
fixed builds, but it is possible that the tmp directory already exists, which
results in the following failure:
| DEBUG: Executing shell function do_compile
| mkdir: cannot create directory 'tmp/work/x86_64-linux/go-cross/1.6.2-r0/build-tmp': File exists
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at tmp/work/x86_64-linux/go-cross/1.6.2-r0/temp/log.do_compile.29142)
By adding a -p to the mkdir calls, we can survive this scenario.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r-- | recipes-devtools/go-cross/go-cross.inc | 2 | ||||
-rw-r--r-- | recipes-devtools/go-cross/go-native.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes-devtools/go-cross/go-cross.inc b/recipes-devtools/go-cross/go-cross.inc index cd75b401..613e9c7c 100644 --- a/recipes-devtools/go-cross/go-cross.inc +++ b/recipes-devtools/go-cross/go-cross.inc | |||
@@ -22,7 +22,7 @@ do_compile() { | |||
22 | mkdir ${GOBIN} | 22 | mkdir ${GOBIN} |
23 | 23 | ||
24 | export TMPDIR=${WORKDIR}/build-tmp | 24 | export TMPDIR=${WORKDIR}/build-tmp |
25 | mkdir ${WORKDIR}/build-tmp | 25 | mkdir -p ${WORKDIR}/build-tmp |
26 | 26 | ||
27 | cd src | 27 | cd src |
28 | ./make.bash --host-only | 28 | ./make.bash --host-only |
diff --git a/recipes-devtools/go-cross/go-native.inc b/recipes-devtools/go-cross/go-native.inc index e431b483..8b4be9ec 100644 --- a/recipes-devtools/go-cross/go-native.inc +++ b/recipes-devtools/go-cross/go-native.inc | |||
@@ -13,7 +13,7 @@ do_compile() { | |||
13 | mkdir ${GOBIN} | 13 | mkdir ${GOBIN} |
14 | 14 | ||
15 | export TMPDIR=${WORKDIR}/build-tmp | 15 | export TMPDIR=${WORKDIR}/build-tmp |
16 | mkdir ${WORKDIR}/build-tmp | 16 | mkdir -p ${WORKDIR}/build-tmp |
17 | 17 | ||
18 | cd src | 18 | cd src |
19 | ./make.bash --host-only | 19 | ./make.bash --host-only |