qmake5_base.bbclass: Don't expand find -name search patterns

A wildcard not put between quotes is expanded by bash. If files matching
the pattern are found in the source directory then the find command is
non-sense and fails.

This commit put those search patterns in quotes and fixes the
installation of some recipes.

Signed-off-by: Florent Revest <revestflo@gmail.com>
This commit is contained in:
Florent Revest
2019-05-27 22:02:48 +02:00
committed by Martin Jansa
parent 60e61ea26a
commit 46c87e060d

View File

@@ -241,17 +241,17 @@ qmake5_base_do_install() {
qmake5_base_fix_install ${STAGING_DIR_NATIVE}
# Replace host paths with qmake built-in properties
find ${D} \( -name *.pri -or -name *.prl \) -exec \
find ${D} \( -name "*.pri" -or -name "*.prl" \) -exec \
sed -i -e 's|${STAGING_DIR_NATIVE}|$$[QT_HOST_PREFIX/get]|g' \
-e 's|${STAGING_DIR_HOST}|$$[QT_SYSROOT]|g' {} \;
# Replace host paths with pkg-config built-in variable
find ${D} -name *.pc -exec \
find ${D} -name "*.pc" -exec \
sed -i -e 's|prefix=${STAGING_DIR_HOST}|prefix=|g' \
-e 's|${STAGING_DIR_HOST}|${pc_sysrootdir}|g' {} \;
# Replace resolved lib path with the lib name
find ${D} -name *.cmake -exec \
find ${D} -name "*.cmake" -exec \
sed -i -e 's@/[^;]*/lib\([^;]*\)\.\(so\|a\)@\1@g' {} \;
}