Skip to contentSkip to conversation

qtwebengine: Add a missing build dependency on libcap

PATCH Superseded Otavio Salvador 2 participants 10 messages Feb 8, 2015 – Feb 11, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/8 qtwebengine: Add a missing build dependency on libcap

---
 recipes-qt/qt5/qtwebengine.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-qt/qt5/qtwebengine.inc +1 -0
index 51beac3..f6b1304 100644
@@ -8,6 +8,7 @@ DEPENDS += " \
     ninja-native \
     qtbase qtdeclarative qtxmlpatterns qtquickcontrols \
     libdrm fontconfig pixman openssl pango cairo icu pciutils \
+    libcap \
 "
 
 COMPATIBLE_MACHINE = "(-)"
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/8 qtmultimedia: Fix floating dependency gst-plugins-bad

When using GStreamer 0.10 support, QMake detects if GStreamer Photography interface is available. To avoid a floating dependency we add the gst-plugins-bad as dependency so it is always present.

---
 recipes-qt/qt5/qtmultimedia.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-qt/qt5/qtmultimedia.inc +1 -1
index 427f688..e85d202 100644
@@ -7,7 +7,7 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d
 PACKAGECONFIG[alsa] = ",,alsa-lib"
 PACKAGECONFIG[pulseaudio] = ",,pulseaudio"
 PACKAGECONFIG[openal] = ",,openal-soft"
-PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base"
+PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base gst-plugins-bad"
 
 EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'alsa', '', 'CONFIG+=done_config_alsa', d)}"
 EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'pulseaudio', '', 'CONFIG+=done_config_pulseaudio', d)}"
Signature · 1 line
2.1.4
#2 lore raw

PATCH 3/8 qtmultimedia: Use 'qtCompileTest' mechanism for GStreamer

In reply to Otavio Salvador

We can use the 'done_config_openal' and 'done_config_gstreamer' trick to avoid the respective features it to be enabled.

---
 recipes-qt/qt5/qtmultimedia.inc                    |  5 +-
 ...a.pro-Respect-OE_GSTREAMER_ENABLED-OE_GST.patch | 53 ----------------------
 2 files changed, 2 insertions(+), 56 deletions(-)
 delete mode 100644 recipes-qt/qt5/qtmultimedia/0002-qtmultimedia.pro-Respect-OE_GSTREAMER_ENABLED-OE_GST.patch
recipes-qt/qt5/qtmultimedia.inc +2 -3
index e85d202..cd89583 100644
@@ -11,12 +11,11 @@ PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base gst-plugins-bad"
 
 EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'alsa', '', 'CONFIG+=done_config_alsa', d)}"
 EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'pulseaudio', '', 'CONFIG+=done_config_pulseaudio', d)}"
-EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'openal', 'CONFIG+=OE_OPENAL_ENABLED', '', d)}"
-EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gstreamer010', 'CONFIG+=OE_GSTREAMER010_ENABLED', '', d)}"
+EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'openal', '', 'CONFIG+=done_config_openal', d)}"
+EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gstreamer010', 'GST_VERSION=0.10', 'done_config_gstreamer', d)}"
 
 SRC_URI += "\
     file://0001-Initial-porting-effort-to-GStreamer-1.0.patch \
-    file://0002-qtmultimedia.pro-Respect-OE_GSTREAMER_ENABLED-OE_GST.patch \
 "
 
 LICENSE += "| GPL-2.0"
recipes-qt/qt5/qtmultimedia/0002-qtmultimedia.pro-Respect-OE_GSTREAMER_ENABLED-OE_GST.patch deleted +0 -53

53 lines not on this page · raw message

Signature · 1 line
2.1.4
#3 lore raw

PATCH 4/8 qtmultimedia: Use 'bb.utils.contains' function

In reply to Otavio Salvador

The 'base_contains' function is deprecated and we should to use the bb.utils.contains one instead. Update the code accordingly.

---
 recipes-qt/qt5/qtmultimedia.inc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-qt/qt5/qtmultimedia.inc +4 -4
index cd89583..1be4e85 100644
@@ -9,10 +9,10 @@ PACKAGECONFIG[pulseaudio] = ",,pulseaudio"
 PACKAGECONFIG[openal] = ",,openal-soft"
 PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base gst-plugins-bad"
 
-EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'alsa', '', 'CONFIG+=done_config_alsa', d)}"
-EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'pulseaudio', '', 'CONFIG+=done_config_pulseaudio', d)}"
-EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'openal', '', 'CONFIG+=done_config_openal', d)}"
-EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gstreamer010', 'GST_VERSION=0.10', 'done_config_gstreamer', d)}"
+EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', '', 'CONFIG+=done_config_alsa', d)}"
+EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', '', 'CONFIG+=done_config_pulseaudio', d)}"
+EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'openal', '', 'CONFIG+=done_config_openal', d)}"
+EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer010', 'GST_VERSION=0.10', 'done_config_gstreamer', d)}"
 
 SRC_URI += "\
     file://0001-Initial-porting-effort-to-GStreamer-1.0.patch \
Signature · 1 line
2.1.4
#4 lore raw

PATCH 5/8 qtmultimedia: Easy use of GStreamer 1.0 support

In reply to Otavio Salvador

This rework how we add the GStreamer 1.0 support in the code. A new PACKAGECONFIG option called 'gstreamer' has been added for it.

---
 recipes-qt/qt5/qtmultimedia.inc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
recipes-qt/qt5/qtmultimedia.inc +7 -1
index 1be4e85..c4792e6 100644
@@ -7,12 +7,18 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d
 PACKAGECONFIG[alsa] = ",,alsa-lib"
 PACKAGECONFIG[pulseaudio] = ",,pulseaudio"
 PACKAGECONFIG[openal] = ",,openal-soft"
+PACKAGECONFIG[gstreamer] = ",,gstreamer1.0 gstreamer1.0-plugins-base gstreamer1.0-plugins-bad"
 PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base gst-plugins-bad"
 
 EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'alsa', '', 'CONFIG+=done_config_alsa', d)}"
 EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'pulseaudio', '', 'CONFIG+=done_config_pulseaudio', d)}"
 EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'openal', '', 'CONFIG+=done_config_openal', d)}"
-EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer010', 'GST_VERSION=0.10', 'done_config_gstreamer', d)}"
+
+# Handles GStreamer support
+EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer', 'GST_VERSION=1.0', '', d)}"
+EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer010', 'GST_VERSION=0.10', '', d)}"
+# Disable GStreamer if completely disabled
+EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains_any('PACKAGECONFIG', 'gstreamer gstreamer010', '', 'CONFIG+=done_config_streamer', d)}"
 
 SRC_URI += "\
     file://0001-Initial-porting-effort-to-GStreamer-1.0.patch \
Signature · 1 line
2.1.4
#5 lore raw

PATCH 6/8 qtmultimedia: Update the GStreamer 1.0 support patch

In reply to Otavio Salvador

This updates the patch which adds support for GStreamer 1.0 to the one merged in the 5.5 development branch. For instance it fixes a color mismatch in one of our devices.

---
 recipes-qt/qt5/qtmultimedia.inc                    |    2 +-
 .../qtmultimedia/0001-GStreamer-port-to-1.0.patch  | 7648 ++++++++++++++++++++
 ...1-Initial-porting-effort-to-GStreamer-1.0.patch | 2369 ------
 3 files changed, 7649 insertions(+), 2370 deletions(-)
 create mode 100644 recipes-qt/qt5/qtmultimedia/0001-GStreamer-port-to-1.0.patch
 delete mode 100644 recipes-qt/qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreamer-1.0.patch
recipes-qt/qt5/qtmultimedia.inc +1 -1
index c4792e6..77ba159 100644
@@ -21,7 +21,7 @@ EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('PACKAGECONFIG', 'gstreamer010', 'G
 EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains_any('PACKAGECONFIG', 'gstreamer gstreamer010', '', 'CONFIG+=done_config_streamer', d)}"
 
 SRC_URI += "\
-    file://0001-Initial-porting-effort-to-GStreamer-1.0.patch \
+    file://0001-GStreamer-port-to-1.0.patch \
 "
 
 LICENSE += "| GPL-2.0"
recipes-qt/qt5/qtmultimedia/0001-GStreamer-port-to-1.0.patch new file +7648 -0

2,992 lines not on this page · raw message

recipes-qt/qt5/qtmultimedia/0001-Initial-porting-effort-to-GStreamer-1.0.patch deleted +0 -2369

2,369 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.1.4

Part of the diff is not shown here. View the raw message.

#6 lore raw

PATCH 7/8 qtwebengine: Add missing runtime dependencies for examples

In reply to Otavio Salvador

The qtdeclarative-qmlplugins and qtquickcontrols-qmlplugins are required for the examples to run. Add them as rdepends.

---
 recipes-qt/qt5/qtwebengine.inc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
recipes-qt/qt5/qtwebengine.inc +6 -1
index f6b1304..46060c0 100644
@@ -59,4 +59,9 @@ PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
 
 # for /usr/share/qt5/qtwebengine_resources.pak
 FILES_${PN} += "${OE_QMAKE_PATH_QT_TRANSLATIONS} ${OE_QMAKE_PATH_QT_DATA}"
-RDEPENDS_${PN}-examples += "${PN}-qmlplugins"
+
+RDEPENDS_${PN}-examples += " \
+    ${PN}-qmlplugins \
+    qtquickcontrols-qmlplugins \
+    qtdeclarative-qmlplugins \
+"
Signature · 1 line
2.1.4
#7 lore raw

PATCH 8/8 qt5.inc: Fix packaging of architecture independent data

In reply to Otavio Salvador

The architecture independent data were being added to the '-dev' package however it shouldn't be. For example the QtWebEngine had the translation and the resources package were not being installed with the main package, as it should be.

---
 recipes-qt/qt5/qt5.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-qt/qt5/qt5.inc +1 -1
index bb0bcdc..af0a906 100644
@@ -118,7 +118,6 @@ FILES_${PN}-dev += " \
     ${OE_QMAKE_PATH_LIBS}/cmake/* \
     ${OE_QMAKE_PATH_LIBS}/*.prl \
     ${OE_QMAKE_PATH_LIBS}/*.la \
-    ${OE_QMAKE_PATH_DATA}/* \
     ${OE_QMAKE_PATH_HEADERS}/* \
 "
 FILES_${PN}-dbg += " \
@@ -129,6 +128,7 @@ FILES_${PN}-staticdev += " \
     ${OE_QMAKE_PATH_LIBS}/*.a \
 "
 FILES_${PN}-examples = " \
+    ${OE_QMAKE_PATH_EXAMPLES}/README \
     ${OE_QMAKE_PATH_EXAMPLES}/*/* \
 "
 FILES_${PN}-examples-dev = " \
Signature · 1 line
2.1.4
#8 lore raw

Re: [meta-qt5][PATCH 8/8] qt5.inc: Fix packaging of architecture independent data

This series is causing few new warnings:

qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia-plugins rdepends on libgstphotography-0.10, but it isn't a build dependency? [build-deps]
qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia-plugins rdepends on libgstapp-0.10, but it isn't a build dependency? [build-deps]
qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia-plugins rdepends on gstreamer, but it isn't a build dependency? [build-deps] qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia-plugins rdepends on libgstpbutils-0.10, but it isn't a build dependency? [build-deps]
qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia-plugins rdepends on libgstinterfaces-0.10, but it isn't a build dependency? [build-deps]
qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia rdepends on libgstapp-0.10, but it isn't a build dependency? [build-deps] qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia rdepends on gstreamer, but it isn't a build dependency? [build-deps] qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia rdepends on libgstvideo-0.10, but it isn't a build dependency? [build-deps] qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia rdepends on libgstinterfaces-0.10, but it isn't a build dependency? [build-deps]

qttools-5.4.0+gitAUTOINC+33eb6cdf93: qttools: Files/directories were installed but not shipped
/usr/share
/usr/share/qt5
/usr/share/qt5/phrasebooks /usr/share/qt5/phrasebooks/danish.qph /usr/share/qt5/phrasebooks/dutch.qph /usr/share/qt5/phrasebooks/finnish.qph /usr/share/qt5/phrasebooks/french.qph /usr/share/qt5/phrasebooks/german.qph /usr/share/qt5/phrasebooks/hungarian.qph /usr/share/qt5/phrasebooks/italian.qph /usr/share/qt5/phrasebooks/japanese.qph /usr/share/qt5/phrasebooks/norwegian.qph /usr/share/qt5/phrasebooks/polish.qph /usr/share/qt5/phrasebooks/russian.qph /usr/share/qt5/phrasebooks/spanish.qph /usr/share/qt5/phrasebooks/swedish.qph [installed-vs-shipped]

qttranslations-5.4.0: qttranslations: Files/directories were installed but not shipped
/usr/share/qt5/translations/qtquickcontrols_de.qm /usr/share/qt5/translations/qtquickcontrols_ja.qm /usr/share/qt5/translations/qtquickcontrols_ru.qm /usr/share/qt5/translations/qtquickcontrols_uk.qm [installed-vs-shipped]

Quoted 39 lines · Otavio Salvador

The architecture independent data were being added to the '-dev' package however it shouldn't be. For example the QtWebEngine had the translation and the resources package were not being installed with the main package, as it should be.

---
 recipes-qt/qt5/qt5.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-qt/qt5/qt5.inc +1 -2
index bb0bcdc..af0a906 100644
@@ -118,7 +118,6 @@ FILES_${PN}-dev += " \
     ${OE_QMAKE_PATH_LIBS}/cmake/* \
     ${OE_QMAKE_PATH_LIBS}/*.prl \
     ${OE_QMAKE_PATH_LIBS}/*.la \
-    ${OE_QMAKE_PATH_DATA}/* \
     ${OE_QMAKE_PATH_HEADERS}/* \
 "
 FILES_${PN}-dbg += " \
@@ -129,6 +128,7 @@ FILES_${PN}-staticdev += " \
     ${OE_QMAKE_PATH_LIBS}/*.a \
 "
 FILES_${PN}-examples = " \
+    ${OE_QMAKE_PATH_EXAMPLES}/README \
     ${OE_QMAKE_PATH_EXAMPLES}/*/* \
 "
 FILES_${PN}-examples-dev = " \
--

2.1.4

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

#9 lore raw

Re: [meta-qt5][PATCH 8/8] qt5.inc: Fix packaging of architecture independent data

Hello Martin,

Thanks for running it in your builder.

Quoted 12 lines · Martin Jansa

This series is causing few new warnings:

qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia-plugins rdepends on libgstphotography-0.10, but it isn't a build dependency? [build-deps] qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia-plugins rdepends on libgstapp-0.10, but it isn't a build dependency? [build-deps] qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia-plugins rdepends on gstreamer, but it isn't a build dependency? [build-deps] qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia-plugins rdepends on libgstpbutils-0.10, but it isn't a build dependency? [build-deps] qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia-plugins rdepends on libgstinterfaces-0.10, but it isn't a build dependency? [build-deps]

Quoted 8 lines

qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia rdepends on libgstapp-0.10, but it isn't a build dependency? [build-deps] qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia rdepends on gstreamer, but it isn't a build dependency? [build-deps] qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia rdepends on libgstvideo-0.10, but it isn't a build dependency? [build-deps] qtmultimedia-5.4.0+gitAUTOINC+f420ac286a: qtmultimedia rdepends on libgstinterfaces-0.10, but it isn't a build dependency? [build-deps]

I found the error, it was a typo in the PACKAGECONFIG handling. I fixed it.

Quoted 2 lines

qttools-5.4.0+gitAUTOINC+33eb6cdf93: qttools: Files/directories were installed but not shipped

...

Quoted 1 line

/usr/share/qt5/phrasebooks/danish.qph

...

Quoted 1 line

/usr/share/qt5/phrasebooks/swedish.qph [installed-vs-shipped]

I have added those to the qttools-tools subpackage.

Quoted 2 lines

qttranslations-5.4.0: qttranslations: Files/directories were installed but not shipped

...

Quoted 1 line

/usr/share/qt5/translations/qtquickcontrols_uk.qm [installed-vs-shipped]

This is indeed a bug and has been brought up by the change. So I made a new subpackage for qtquickcontrols related files.

So I have sent a v2 of those patches. Please take a look on them.

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