qtbase_git: ensure fonts go into own subdir by creating it first
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.
Signed-off-by Denys Dmytriyenko <[email protected]>
--- recipes-qt/qt5/qtbase_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-qt/qt5/qtbase_git.bb +2 -1
@@ -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