[oe] [meta-qt5][PATCH] qtbase_git: ensure fonts go into own subdir by creating it first

Denys Dmytriyenko denis at denix.org
Fri Aug 14 03:11:36 UTC 2015


From: Denys Dmytriyenko <denys at ti.com>

Sometimes, when ${OE_QMAKE_PATH_LIBS} is empty, "cp -a" ends up copying
font files there w/o preserving "fonts" directory, failing the following
chown command.

Signed-off-by: Denys Dmytriyenko <denys at ti.com>
---
 recipes-qt/qt5/qtbase_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 33620cb..737be93 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -226,7 +226,8 @@ do_install_append() {
     ### TODO: FIX
     # install fonts manually if they are missing
     if [ ! -d ${D}/${OE_QMAKE_PATH_LIBS}/fonts ]; then
-        cp -a ${S}/lib/fonts ${D}/${OE_QMAKE_PATH_LIBS}
+        mkdir -p ${D}/${OE_QMAKE_PATH_LIBS}/fonts
+        cp -a ${S}/lib/fonts/* ${D}/${OE_QMAKE_PATH_LIBS}/fonts
         chown -R root:root ${D}/${OE_QMAKE_PATH_LIBS}/fonts
     fi
 
-- 
2.2.0




More information about the Openembedded-devel mailing list