[oe] [meta-qt5 2/2] Use `mkdir -p` when creating `/usr/bin`

Adam YH Lee adam.yh.lee at gmail.com
Sat Sep 5 00:28:31 UTC 2015


When QT_DIR_NAME is altered, /usr/bin` is checked. This directory
is more often than not already created. Hence `mkdir` with `-p` should
be used. Currently it results in a build failure since the directory
already exists.

Signed-off-by: Adam YH Lee <adam.yh.lee at gmail.com>
---
 recipes-qt/qt5/qtbase_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 284b7b9..62690c3 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -172,7 +172,7 @@ do_configure() {
     # we need symlink in path relative to source, because
     # EffectivePaths:Prefix is relative to qmake location
     if [ ! -e ${B}/bin/qmake ]; then
-        mkdir ${B}/bin
+        mkdir -p ${B}/bin
         ln -sf ${OE_QMAKE_QMAKE_ORIG} ${B}/bin/qmake
     fi
 
-- 
2.1.4




More information about the Openembedded-devel mailing list