Skip to contentSkip to conversation

nativesdk-qtbase: do qmake replacement in ${D} instead of ${B}

PATCH Superseded Denys Dmytriyenko 2 participants 2 messages Feb 17, 2014 – Feb 18, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nativesdk-qtbase: do qmake replacement in ${D} instead of ${B}

From: Denys Dmytriyenko <[email protected]>

This way we don't mangle ${B} and can repeat do_install if necessary. And previously it would require running do_compile again to restore the proper state of ${B}.

---
 recipes-qt/qt5/nativesdk-qtbase.inc | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
recipes-qt/qt5/nativesdk-qtbase.inc +4 -6
index a7809d3..14a3cbe 100644
@@ -189,14 +189,12 @@ do_install() {
     # Fix install paths for all
     find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_NATIVE}${STAGING_DIR_NATIVE},(INSTALL_ROOT)${STAGING_DIR_NATIVE},g"
 
-    # switch back the proper qmake
-    if [ -e ${B}/bin/qmake-real ]; then
-        rm ${B}/bin/qmake
-        mv ${B}/bin/qmake-real ${B}/bin/qmake
-    fi
-
     oe_runmake install INSTALL_ROOT=${D}
 
+    # replace the native qmake installed above with nativesdk version
+    rm -rf ${D}${bindir}/qmake
+    install -m 755 ${B}/bin/qmake-real ${D}${bindir}/qmake
+
     # for modules which are still using syncqt and call qtPrepareTool(QMAKE_SYNCQT, syncqt)
     # e.g. qt3d, qtwayland
     ln -sf syncqt.pl ${D}${OE_QMAKE_PATH_QT_BINS}/syncqt
Signature · 1 line
1.8.3.2
#1 lore raw

Hello Denys,

Quoted 7 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

This way we don't mangle ${B} and can repeat do_install if necessary. And previously it would require running do_compile again to restore the proper state of ${B}.

This seems to not work as expected.

| make[1]: Leaving directory .../yocto/build/tmp/work/i686-nativesdk-oelsdk-linux/nativesdk-qtbase/5.2.0-r0/build/src' | install: cannot stat .../yocto/build/tmp/work/i686-nativesdk-oelsdk-linux/nativesdk-qtbase/5.2.0-r0/build/bin/qmake-real':
No such file or directory

This happens when we have a work dir populated. So as do_compile hash will match we need to bump the PR to ensure a full rebuild.

Another issue:

ERROR: QA Issue: nativesdk-qtbase: Files/directories were installed but not shipped
/opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/bin/qmake /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/bin/.debug /opt/oel/13.0+snapshot/sysroots/i686-oelsdk-linux/usr/bin/.debug/qmake

You should install it at OE_QMAKE_PATH_QT_BINS so we can have multiple Qt toolchains in same SDK.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750