]> code.ossystems Code Review - openembedded-core.git/commitdiff
ncurses: fix do_install failure when base_libdir has more than one level
authorKoen Kooi <koen@dominion.thruhere.net>
Fri, 9 Mar 2018 09:53:09 +0000 (10:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Mar 2018 10:38:46 +0000 (03:38 -0700)
Other sections of the .inc already use mkdir -p, so use it here as well.

Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/ncurses/ncurses.inc

index 1f21cd413d47bbcdeecadedd899f7812e513f10c..106dcb016e122cf57e7b6e450fc97e651298f341 100644 (file)
@@ -227,7 +227,7 @@ do_install() {
         if [ ! -d "${D}${base_libdir}" ]; then
             # Setting base_libdir to libdir as is done in the -native
             # case will skip this code
-            mkdir ${D}${base_libdir}
+            mkdir -p ${D}${base_libdir}
             mv ${D}${libdir}/libncurses.so.* ${D}${base_libdir}
             ! ${ENABLE_WIDEC} || \
                 mv ${D}${libdir}/libncursesw.so.* ${D}${base_libdir}