blob: 2262e9f87840ac8bd166de54208fc810e632e3bc [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 3b079a9df7582e305246fd805837d87a2c4ef534 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---
18 build/mkdir.sh | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/build/mkdir.sh b/build/mkdir.sh
22index 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