Skip to contentSkip to conversation

gstreamer1.0-plugins-good: enable PACKAGECONFIG gtk conditionally

PATCH New [email protected] 1 participant 2 messages May 16, 2018

lore
Share & tools
lore
#0 lore raw

cover gstreamer1.0-plugins-good: enable PACKAGECONFIG gtk conditionally

From: Kai Kang <[email protected]>

The following changes since commit 13cc30cd7de4841990b600e83e1249c81a5171dd:

local.conf.sample.extended: Drop obsolete rpc and libnsl (2018-05-15 11:07:50 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib kangkai/gst-good
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/gst-good

Kai Kang (1):
gstreamer1.0-plugins-good: enable PACKAGECONFIG gtk conditionally

 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.14.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 gstreamer1.0-plugins-good: enable PACKAGECONFIG gtk conditionally

From: Kai Kang <[email protected]>

PACKAGECONFIG 'gtk' is enabled by default for gstreamer1.0-plugins-good and it makes gstreamer1.0-plugins-good depends on package gtk+3 which requires any distro feature in ${GTK3DISTROFEATURES}. When none distro feature is enabled from ${GTK3DISTROFEATURES}, it causes error:

| ERROR: Nothing PROVIDES 'gtk+3' (but .../meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.14.0.bb
| DEPENDS on or otherwise requires it)
| gtk+3 was skipped: one of '['x11', 'wayland']' needs to be in DISTRO_FEATURES

So enable PACKAGECONFIG gtk conditionally for gstreamer1.0-plugins-good.

---
 meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.14.0.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.14.0.bb +2 -1
index a420039fa85..b269fce1735 100644
@@ -27,7 +27,8 @@ inherit gettext
 PACKAGECONFIG ??= " \
     ${GSTREAMER_ORC} \
     ${@bb.utils.filter('DISTRO_FEATURES', 'pulseaudio x11', d)} \
-    cairo flac gdk-pixbuf gudev jpeg libpng soup speex taglib v4l2 bz2 zlib gtk mpg123 lame \
+    ${@bb.utils.contains_any('DISTRO_FEATURES', d.getVar('GTK3DISTROFEATURES'), 'gtk', '', d)} \
+    cairo flac gdk-pixbuf gudev jpeg libpng soup speex taglib v4l2 bz2 zlib mpg123 lame \
 "
 
 X11DEPENDS = "virtual/libx11 libsm libxrender libxfixes libxdamage"
Signature · 1 line
2.14.1