blob: 227d04064ba53c128e1d00d0d49d8fed5feaf12d [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001From 4f4d7d6b88b6e440263ebeb22dfb40c52bb30fd8 Mon Sep 17 00:00:00 2001
2From: Zhenhua Luo <zhenhua.luo@freescale.com>
3Date: Fri, 25 Jan 2013 18:10:50 +0800
4Subject: [PATCH] apache2: fix the race issue of parallel installation
5
6Upstream-Status: Pending
7
8fix 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
15Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
16---
17 build/mkdir.sh | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20diff --git a/build/mkdir.sh b/build/mkdir.sh
21index 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--
342.7.4
35