[oe-commits] Robert Yang : autotools.bbclass: mkdir ${B} -> mkdir -p ${B}

git at git.openembedded.org git at git.openembedded.org
Wed Sep 16 21:19:25 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 72682d72b52355c3fed947167ca3c6064340ead1
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=72682d72b52355c3fed947167ca3c6064340ead1

Author: Robert Yang <liezhi.yang at windriver.com>
Date:   Wed Sep 16 03:25:01 2015 -0700

autotools.bbclass: mkdir ${B} -> mkdir -p ${B}

${B} is the default cwd of tasks, so there might be race issues such as:
| mkdir: cannot create directory `${B}': File exists
[snip]
NOTE: recipe perf-1.0-r9: task do_configure: Failed

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/autotools.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 9ccd7d2..819045a 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -105,7 +105,7 @@ autotools_preconfigure() {
 			if [ "${S}" != "${B}" ]; then
 				echo "Previously configured separate build directory detected, cleaning ${B}"
 				rm -rf ${B}
-				mkdir ${B}
+				mkdir -p ${B}
 			else
 				# At least remove the .la files since automake won't automatically
 				# regenerate them even if CFLAGS/LDFLAGS are different



More information about the Openembedded-commits mailing list