From 9fddbb70bdc71c5aa7feb93e62fa9da45e1230cc Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Tue, 23 Apr 2013 00:58:55 +0200 Subject: [PATCH] qtjsbackend: Fix SEPB build and work around wrong mkspec install path Signed-off-by: Martin Jansa --- recipes-qt/qt5/qtjsbackend.inc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/recipes-qt/qt5/qtjsbackend.inc b/recipes-qt/qt5/qtjsbackend.inc index 3ee101784b..13a5df51e4 100644 --- a/recipes-qt/qt5/qtjsbackend.inc +++ b/recipes-qt/qt5/qtjsbackend.inc @@ -11,7 +11,6 @@ INC_PR = "r0" inherit qmake5 SRC_URI += " \ - file://module_qmake.conf \ file://0002-Make-sure-that-we-pick-up-the-mkv8snapshot-tool.patch \ " @@ -19,15 +18,18 @@ SRC_URI += " \ # parts of the source tree with out the 'mkv8snapshot' tool if it is enabled and that will fail PARALLEL_MAKE = "" -export QT_CONF_PATH="${WORKDIR}/qt.conf" - do_configure () { # Avoid setting QMAKE_LINK from LD (since we want the linker to be g++) unset LD - # This should not be needed. Perhaps the lack of this file is an indication - # of an error on the native recipe... - cp ${WORKDIR}/module_qmake.conf ${S}/.qmake.conf - - ${OE_QMAKE_QMAKE} -r -d + ${OE_QMAKE_QMAKE} -r -d ${S} +} + +do_install_append () { + mv ${D}${QMAKE_MKSPEC_PATH}/mkspecs ${D}${libdir}/${QT_DIR_NAME}/mkspecs + TMP=`dirname ${D}/${QMAKE_MKSPEC_PATH}/mkspecs` + while test ${TMP} != ${D}; do + rmdir ${TMP} + TMP=`dirname ${TMP}`; + done }