Skip to contentSkip to conversation

qtwebkit: add PACKAGECONFIGs for libxcomposite, libxrender, fontconfig

PATCH New Martin Jansa 1 participant 2 messages Feb 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 qtwebkit: add PACKAGECONFIGs for libxcomposite, libxrender, fontconfig

* fixes following QA:
WARNING: qtwebkit-5.6.99+5.7.0-alpha+gitAUTOINC+e9b369b16f-r0 do_package_qa: QA Issue: qtwebkit rdepends on libxcomposite, but it isn't a build dependency? [build-deps]

---
 recipes-qt/qt5/qtwebkit_git.bb | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
recipes-qt/qt5/qtwebkit_git.bb +13 -1
index 79b06a2..09d4814 100644
@@ -24,7 +24,10 @@ SRC_URI += "\
     file://0003-Exclude-backtrace-API-for-non-glibc-libraries.patch \
 "
 
-PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel"
+PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel \
+    ${@base_contains('DISTRO_FEATURES', 'x11', 'libxcomposite libxrender', '', d)} \
+    fontconfig \
+"
 PACKAGECONFIG[gstreamer] = "OE_GSTREAMER_ENABLED,,gstreamer1.0 gstreamer1.0-plugins-base"
 PACKAGECONFIG[gstreamer010] = "OE_GSTREAMER010_ENABLED,,gstreamer gst-plugins-base"
 PACKAGECONFIG[qtlocation] = "OE_QTLOCATION_ENABLED,,qtlocation"
@@ -32,6 +35,9 @@ PACKAGECONFIG[qtmultimedia] = "OE_QTMULTIMEDIA_ENABLED,,qtmultimedia"
 PACKAGECONFIG[qtsensors] = "OE_QTSENSORS_ENABLED,,qtsensors"
 PACKAGECONFIG[qtwebchannel] = "OE_QTWEBCHANNEL_ENABLED,,qtwebchannel"
 PACKAGECONFIG[libwebp] = "OE_LIBWEBP_ENABLED,,libwebp"
+PACKAGECONFIG[libxcomposite] = "OE_LIBXCOMPOSITE_ENABLED,,libxcomposite"
+PACKAGECONFIG[libxrender] = "OE_LIBXRENDER_ENABLED,,libxrender"
+PACKAGECONFIG[fontconfig] = "OE_FONTCONFIG_ENABLED,,fontconfig"
 
 do_configure_prepend() {
     export QMAKE_CACHE_EVAL="CONFIG+=${EXTRA_OECONF}"
@@ -50,6 +56,12 @@ do_configure_prepend() {
     sed -e 's/\s\(qtHaveModule(webchannel)\)/ OE_QTWEBCHANNEL_ENABLED:\1/' -i ${S}/Source/WebKit2/WebKit2.pri
     # disable libwebp test if it isn't enabled by PACKAGECONFIG
     sed -e 's/\s\(config_libwebp: \)/ OE_LIBWEBP_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf
+    # disable libxcomposite test if it isn't enabled by PACKAGECONFIG
+    sed -e 's/\s\(config_libXcomposite: \)/ OE_LIBXCOMPOSITE_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf
+    # disable libxrender test if it isn't enabled by PACKAGECONFIG
+    sed -e 's/\s\(config_libXrender: \)/ OE_LIBXRENDER_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf
+    # disable fontconfig test if it isn't enabled by PACKAGECONFIG
+    sed -e 's/\s\(config_fontconfig: \)/ OE_FONTCONFIG_ENABLED:\1/' -i ${S}/Tools/qmake/mkspecs/features/features.prf
 }
 
 # qtwebkit gets terribly big when linking with all debug info, disable by default
Signature · 1 line
2.7.1
#1 lore raw

PATCH 2/2 qtsystems: use 'dev' branch again

* 5.7 branch was created in qtsystems and then removed again OE @ ~/projects/qt-project/qtsystems $ git remote prune origin Pruning origin
URL: git://code.qt.io/qt/qtsystems.git
* [pruned] origin/5.3
* [pruned] origin/5.7

---
 recipes-qt/qt5/qtsystems_git.bb | 5 +++++
 1 file changed, 5 insertions(+)
recipes-qt/qt5/qtsystems_git.bb +5 -0
index 56d6a5c..868e051 100644
@@ -28,4 +28,9 @@ do_install_append() {
     rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro	
 }
 
+QT_MODULE_BRANCH = "dev"
+
+# qtsystems wasn't released yet, last tag before this SRCREV is 5.0.0-beta1
+# qt5-git PV is only to indicate that this recipe is compatible with qt5 5.6
+
 SRCREV = "cc2077700bd5503d1fcf53aef83cbb76975e745a"
Signature · 1 line
2.7.1