Remove TMPDIR references from qmake files

Qmake files still have references to build time paths
that cannot be mapped to any real runtime path.

Task-number: QTBUG-105913
Change-Id: I047a21204e2154cbf36c8417ae0e2e63be45564f
Reviewed-by: Ari Parkkila <ari.parkkila@qt.io>
(cherry picked from commit 259ef13336)
This commit is contained in:
Samuli Piippo 2024-10-16 09:26:23 +00:00
parent ed91cc08df
commit b397bbabee
2 changed files with 4 additions and 1 deletions

View File

@ -39,10 +39,12 @@ EXTRA_OECMAKE += "\
do_install:append() {
# Replace host paths with qmake built-in properties QTBUG-84725
# remove all references to TMPDIR that could not be replaced QTBUG-105877
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 '/QMAKE_PRL_BUILD_DIR/d' {} \;
-e '/QMAKE_PRL_BUILD_DIR/d' \
-e '\|${WORKDIR}|d' {} \;
}
export QT_DISABLE_SHADER_DISK_CACHE = "1"

View File

@ -16,3 +16,4 @@ include recipes-qt/qt6/qt6.inc
DEPENDS += "qtbase qtdeclarative qtdeclarative-native"
INSANE_SKIP:${PN}-ptest += "buildpaths"