diff options
| author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-05-25 09:49:53 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-06-14 10:59:56 -0400 |
| commit | 44440d7d2ae2814a37ec8a0c32ad0226e38069e0 (patch) | |
| tree | fb5285c8d7c33d46366af244bfb772219debe766 | |
| parent | 7f3cc5028609b716d5651f30b210a8a0860e2287 (diff) | |
| download | meta-virtualization-44440d7d2ae2814a37ec8a0c32ad0226e38069e0.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>
| -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 |
