Skip to contentSkip to conversation

qtbase_git: ensure fonts go into own subdir by creating it first

PATCH New Denys Dmytriyenko 1 participant 1 message Aug 14, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtbase_git: ensure fonts go into own subdir by creating it first

From: Denys Dmytriyenko <[email protected]>

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.

---
 recipes-qt/qt5/qtbase_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-qt/qt5/qtbase_git.bb +2 -1
index 33620cb..737be93 100644
@@ -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
 
Signature · 1 line
2.2.0