From 380ecfd7fb3c26f69bc78df287ce5cf5fc91f34f Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Thu, 13 Aug 2015 23:11:36 -0400 Subject: qtbase_git: ensure fonts go into own subdir by creating it first 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 Signed-off-by: Martin Jansa --- recipes-qt/qt5/qtbase_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'recipes-qt/qt5/qtbase_git.bb') diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index 44e2e048..f472c988 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb @@ -222,7 +222,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 -- cgit v1.2.3