[oe] [PATCH][meta-qt5 3/7] qtwebengine: add dependency on libxscrnsaver with x11 in DISTRO_FEATURES

Martin Jansa martin.jansa at gmail.com
Fri Nov 6 13:38:08 UTC 2015


* when qtbase is built with x11 support, xcb is enabled in QT_CONFIG
  and qtwebengine checks for libxscrnsaver.
  Unfortunately such check isn't fatal for do_configure task, it will
  only show something like this:
  libxscrnsaver wasn't found, qtwebengine won't be built
  in log.do_configure and continue to do_compile and do_install (which
  will also finish successfully, saying "Nothing to do").

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 recipes-qt/qt5/qtwebengine_git.bb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb
index 0b2c756..72eb1b4 100644
--- a/recipes-qt/qt5/qtwebengine_git.bb
+++ b/recipes-qt/qt5/qtwebengine_git.bb
@@ -17,6 +17,12 @@ DEPENDS += " \
     libcap \
 "
 
+# when qtbase is built with xcb enabled (default with x11 in DISTRO_FEATURES),
+# qtwebengine will have additional dependencies:
+# contains(QT_CONFIG, xcb): REQUIRED_PACKAGES += libdrm xcomposite xcursor xi xrandr xscrnsaver xtst
+# xscreensaver isn't covered in qtbase DEPENDS
+DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'libxscrnsaver', '', d)}"
+
 COMPATIBLE_MACHINE = "(-)"
 COMPATIBLE_MACHINE_x86 = "(.*)"
 COMPATIBLE_MACHINE_x86-64 = "(.*)"
-- 
2.6.2




More information about the Openembedded-devel mailing list