Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 3b079a9df7582e305246fd805837d87a2c4ef534 Mon Sep 17 00:00:00 2001 |
| 2 | From: Zhenhua Luo <zhenhua.luo@freescale.com> |
| 3 | Date: Fri, 25 Jan 2013 18:10:50 +0800 |
| 4 | Subject: [PATCH] apache2: fix the race issue of parallel installation |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | fix following race issue when do parallel install |
| 9 | | mkdir: cannot create directory `/home/mypc/workspace/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl_networking-linux/apache2/2.4.3-r1/image/usr/share/apache2': File exists |
| 10 | ... |
| 11 | | mkdir: cannot create directory `/home/mypc/workspace/poky/build_p4080ds_release/tmp/work/ppce500mc-fsl_networking-linux/apache2/2.4.3-r1/image/usr/share/apache2': File exists |
| 12 | | make[1]: *** [install-man] Error 1 |
| 13 | | make[1]: *** Waiting for unfinished jobs.... |
| 14 | |
| 15 | Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com> |
| 16 | |
| 17 | --- |
| 18 | build/mkdir.sh | 2 +- |
| 19 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 20 | |
| 21 | diff --git a/build/mkdir.sh b/build/mkdir.sh |
| 22 | index e2d5bb6..dde5ae0 100755 |
| 23 | --- a/build/mkdir.sh |
| 24 | +++ b/build/mkdir.sh |
| 25 | @@ -39,7 +39,7 @@ for file in ${1+"$@"} ; do |
| 26 | esac |
| 27 | if test ! -d "$pathcomp"; then |
| 28 | echo "mkdir $pathcomp" 1>&2 |
| 29 | - mkdir "$pathcomp" || errstatus=$? |
| 30 | + mkdir -p "$pathcomp" || errstatus=$? |
| 31 | fi |
| 32 | pathcomp="$pathcomp/" |
| 33 | done |