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 <denys@ti.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Denys Dmytriyenko
2015-08-13 23:11:36 -04:00
committed by Martin Jansa
parent baa7320066
commit 380ecfd7fb

View File

@@ -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