Skip to contentSkip to conversation

qtbase-native: set path to mkspec for cmake properly again

PATCH New Andreas Müller 1 participant 1 message Sep 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtbase-native: set path to mkspec for cmake properly again

Since update to 5.9.2 native recipes in meta-qt5-extra fail due to strange path to mkspecs. This patch fixes this the hard way.

---
 recipes-qt/qt5/qtbase-native_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
recipes-qt/qt5/qtbase-native_git.bb +4 -0
index 54a0b78..28a39ac 100644
@@ -112,6 +112,10 @@ do_install() {
     fi
 
     install -m 755 ${B}/bin/qfloat16-tables ${D}${OE_QMAKE_PATH_BINS}
+
+    # since 5.9.2 something sets a very strange path to mkspec ("${_qt5Core_install_prefix}/../../../../../../../../../../usr/lib/qt5//mkspecs/linux-oe-g++")
+    # override this until somebody finds a better way
+    echo 'set(_qt5_corelib_extra_includes "${_qt5Core_install_prefix}/lib${QT_DIR_NAME}/mkspecs/linux-oe-g++")' > ${D}${libdir}/cmake/Qt5Core/Qt5CoreConfigExtrasMkspecDir.cmake
 }
 
 SRCREV = "73573fce295caef35da706a8c8c796ec18e6baf1"
Signature · 1 line
2.9.4