Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 1 | From 4f4d7d6b88b6e440263ebeb22dfb40c52bb30fd8 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 | build/mkdir.sh | 2 +- |
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 19 | |
| 20 | diff --git a/build/mkdir.sh b/build/mkdir.sh |
| 21 | index e2d5bb6..dde5ae0 100755 |
| 22 | --- a/build/mkdir.sh |
| 23 | +++ b/build/mkdir.sh |
| 24 | @@ -39,7 +39,7 @@ for file in ${1+"$@"} ; do |
| 25 | esac |
| 26 | if test ! -d "$pathcomp"; then |
| 27 | echo "mkdir $pathcomp" 1>&2 |
| 28 | - mkdir "$pathcomp" || errstatus=$? |
| 29 | + mkdir -p "$pathcomp" || errstatus=$? |
| 30 | fi |
| 31 | pathcomp="$pathcomp/" |
| 32 | done |
| 33 | -- |
| 34 | 2.7.4 |
| 35 | |