qmake5_base: Remove QMAKE_PRL_BUILD_DIR from prl files

Reduce warnings from buildpaths QA test (contains reference to TMPDIR)
by removing QMAKE_PRL_BUILD_DIR from prl files.

Same as in meta-qt6:
https://code.qt.io/cgit/yocto/meta-qt6.git/commit/?id=8fb6c082

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
benedikt-mueller-zeiss
2022-09-15 10:57:17 +02:00
committed by Martin Jansa
parent ff6cfe0afb
commit 33c2d860d0

View File

@@ -246,7 +246,8 @@ qmake5_base_do_install() {
# Replace host paths with qmake built-in properties
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' {} \;
-e 's|${STAGING_DIR_HOST}|$$[QT_SYSROOT]|g' {} \
-e '/QMAKE_PRL_BUILD_DIR/d' {} \;
# Replace host paths with pkg-config built-in variable
find ${D} -name "*.pc" -exec \