Skip to contentSkip to conversation

qmake5_base.bbclass: Fix mkspec path when building nativesdk binaries

PATCH In review Otavio Salvador 2 participants 4 messages Feb 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 qmake5_base.bbclass: Fix mkspec path when building nativesdk binaries

When building nativesdk binaries we ought to rely in the native mkspecs.

---
 classes/qmake5_base.bbclass |    1 +
 1 file changed, 1 insertion(+)
classes/qmake5_base.bbclass +1 -0
index 2db0fa3..3861cd0 100644
@@ -4,6 +4,7 @@ QMAKE_MKSPEC_PATH_TARGET = "${STAGING_LIBDIR}/${QT_DIR_NAME}"
 
 QMAKE_MKSPEC_PATH = "${QMAKE_MKSPEC_PATH_TARGET}"
 QMAKE_MKSPEC_PATH_class-native = "${QMAKE_MKSPEC_PATH_NATIVE}"
+QMAKE_MKSPEC_PATH_class-nativesdk = "${QMAKE_MKSPEC_PATH_NATIVE}"
 
 # hardcode linux, because that's what 0001-Add-linux-oe-g-platform.patch adds
 OE_QMAKE_PLATFORM_NATIVE = "linux-oe-g++"
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/2 nativesdk-qttools.inc: Fix installation and packaging

We must to fix the installation paths as did in nativesdk-qtbase.inc and remove the files unused from the packages. This fixes the packaging errors and allows for a successful build for SDK.

---
 recipes-qt/qt5/nativesdk-qttools.inc |    6 ++++++
 1 file changed, 6 insertions(+)
recipes-qt/qt5/nativesdk-qttools.inc +6 -0
index e9b2949..494c7b8 100644
@@ -21,5 +21,11 @@ do_configure() {
 }
 
 do_install() {
+    # Fix install paths for all
+    find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_HOST},(INSTALL_ROOT),g"
+
     oe_runmake install INSTALL_ROOT=${D}
+
+    # remove things unused in nativesdk
+    rm -rf ${D}${libdir}
 }
Signature · 1 line
1.7.10.4
Acked-by on v1 2/2
#2 lore raw

Re: [meta-qt5][PATCH 2/2] nativesdk-qttools.inc: Fix installation and packaging

Quoted 5 lines · Otavio Salvador

We must to fix the installation paths as did in nativesdk-qtbase.inc and remove the files unused from the packages. This fixes the packaging errors and allows for a successful build for SDK.

Quoted 27 lines
---
 recipes-qt/qt5/nativesdk-qttools.inc |    6 ++++++
 1 file changed, 6 insertions(+)
recipes-qt/qt5/nativesdk-qttools.inc +6 -0
index e9b2949..494c7b8 100644
@@ -21,5 +21,11 @@ do_configure() {
 }
 
 do_install() {
+    # Fix install paths for all
+    find -name "Makefile*" | xargs sed -i "s,(INSTALL_ROOT)${STAGING_DIR_HOST},(INSTALL_ROOT),g"
+
     oe_runmake install INSTALL_ROOT=${D}
+
+    # remove things unused in nativesdk
+    rm -rf ${D}${libdir}
 }
Signature · 6 lines
1.7.10.4

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Acked-by on v1 1/2
#3 lore raw
In reply to Otavio Salvador
Quoted 4 lines · Otavio Salvador

When building nativesdk binaries we ought to rely in the native mkspecs.

Quoted 23 lines
---
 classes/qmake5_base.bbclass |    1 +
 1 file changed, 1 insertion(+)
classes/qmake5_base.bbclass +1 -0
index 2db0fa3..3861cd0 100644
@@ -4,6 +4,7 @@ QMAKE_MKSPEC_PATH_TARGET = "${STAGING_LIBDIR}/${QT_DIR_NAME}"
 
 QMAKE_MKSPEC_PATH = "${QMAKE_MKSPEC_PATH_TARGET}"
 QMAKE_MKSPEC_PATH_class-native = "${QMAKE_MKSPEC_PATH_NATIVE}"
+QMAKE_MKSPEC_PATH_class-nativesdk = "${QMAKE_MKSPEC_PATH_NATIVE}"
 
 # hardcode linux, because that's what 0001-Add-linux-oe-g-platform.patch adds
 OE_QMAKE_PLATFORM_NATIVE = "linux-oe-g++"
Signature · 6 lines
1.7.10.4

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel