Skip to contentSkip to conversation

qtbase: Package the 3rd party libs if built

PATCH In review Khem Raj 2 participants 4 messages Aug 24, 2015 – Aug 25, 2015

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 qtbase: Package the 3rd party libs if built

Third-party libs e.g. libqtfreetype when built is not packaged and hence goes missing in sysroot, then rest of qt components like qtwayland gets its configuration from qtbase to enable it but then does not find the internal version of libqtfreetype.a which is what qtbase directs it to use and as a result it starts throwing linking errors e.g.

x86_64-angstrom-linux-ld.gold: error: cannot find -lqtfreetype

This patch installs the needed libs into dev packages

Remove a trailing whitespace as well while at it.

---
 recipes-qt/qt5/qtbase_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-qt/qt5/qtbase_git.bb +2 -2
index 5603fb2..7d2d5ec 100644
@@ -227,9 +227,9 @@ do_install_append() {
         cp -a ${S}/lib/fonts/* ${D}/${OE_QMAKE_PATH_LIBS}/fonts
         chown -R root:root ${D}/${OE_QMAKE_PATH_LIBS}/fonts
     fi
-
+    cp -a ${B}/lib/libqt* ${D}${libdir}
     # Remove example.pro file as it is useless
-    rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro	
+    rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro
 
     # Remove macx-ios-clang directory because /usr/lib/qt5/mkspecs/macx-ios-clang/rename_main.sh:#!/bin/bash
     # triggers QA Issue: qtbase-mkspecs requires /bin/bash, but no providers in its RDEPENDS [file-rdeps]
Signature · 1 line
2.1.4
author
#1 lore raw

PATCH 2/2 qtbase: add libinput to depends when wayland is enabled in distro

Fixes warnings like

WARNING: QA Issue: qtbase-plugins rdepends on libinput, but it isn't a build dependency? [build-deps]

---
 recipes-qt/qt5/qtbase_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-qt/qt5/qtbase_git.bb +1 -0
index 7d2d5ec..4e419a9 100644
@@ -28,6 +28,7 @@ SRC_URI += "\
 "
 
 DEPENDS += "qtbase-native"
+DEPENDS += "${@base_contains('DISTRO_FEATURES', 'wayland', 'libinput', '', d)}"
 
 # LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp
 
Signature · 1 line
2.1.4
#2 lore raw

Re: [meta-qt5][PATCH 2/2] qtbase: add libinput to depends when wayland is enabled in distro

There's a patch for that already, that adds PACKAGECONFIG for libinput...

Quoted 29 lines · Khem Raj

Fixes warnings like

WARNING: QA Issue: qtbase-plugins rdepends on libinput, but it isn't a build dependency? [build-deps]

---
 recipes-qt/qt5/qtbase_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-qt/qt5/qtbase_git.bb +1 -0
index 7d2d5ec..4e419a9 100644
@@ -28,6 +28,7 @@ SRC_URI += "\
 "
 
 DEPENDS += "qtbase-native"
+DEPENDS += "${@base_contains('DISTRO_FEATURES', 'wayland', 'libinput', '', d)}"
 
 # LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp
 
Signature · 7 lines
2.1.4

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

Third-party libs e.g. libqtfreetype when built is not packaged and hence goes missing in sysroot, then rest of qt components like qtwayland gets its configuration from qtbase to enable it but then does not find the internal version of libqtfreetype.a which is what qtbase directs it to use and as a result it starts throwing linking errors e.g.

Quoted 7 lines

x86_64-angstrom-linux-ld.gold: error: cannot find -lqtfreetype

This patch installs the needed libs into dev packages

Remove a trailing whitespace as well while at it.

Quoted 28 lines
---
 recipes-qt/qt5/qtbase_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-qt/qt5/qtbase_git.bb +2 -2
index 5603fb2..7d2d5ec 100644
@@ -227,9 +227,9 @@ do_install_append() {
         cp -a ${S}/lib/fonts/* ${D}/${OE_QMAKE_PATH_LIBS}/fonts
         chown -R root:root ${D}/${OE_QMAKE_PATH_LIBS}/fonts
     fi
-
+    cp -a ${B}/lib/libqt* ${D}${libdir}
     # Remove example.pro file as it is useless
-    rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro	
+    rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro
 
     # Remove macx-ios-clang directory because /usr/lib/qt5/mkspecs/macx-ios-clang/rename_main.sh:#!/bin/bash
     # triggers QA Issue: qtbase-mkspecs requires /bin/bash, but no providers in its RDEPENDS [file-rdeps]
Signature · 7 lines
2.1.4

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