Skip to contentSkip to conversation

gst-meta-base: Make ximagesing optional on x11 DISTRO_FEATURE

PATCH In review Saul Wold 2 participants 3 messages Nov 26, 2012 – Nov 28, 2012

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 gst-meta-base: Make ximagesing optional on x11 DISTRO_FEATURE

If x11 is disabled from DISTRO_FEATURE we don't build the ximagesink package, but it still becomes a dependency in the final image which causes a failure

---
 .../gstreamer/gst-meta-base_0.10.bb                |    3 +++
 1 file changed, 3 insertions(+)
meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb +3 -0
index 2fb39d5..0889437 100644
@@ -16,7 +16,10 @@ PACKAGES = "\
 
 ALLOW_EMPTY = "1"
 
+X11_RDEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', 'gst-plugin-base-ximagesink', '', d)}"
+
 RDEPENDS_gst-meta-base = "\
+    ${X11_RDEPENDS} \
     gstreamer \
     gst-plugins-base-playbin \
     gst-plugins-base-decodebin \
Signature · 1 line
1.7.9.5
author
#1 lore raw

Ross,

This one should hit Danny next also if possible.

Thanks
Sau!

Quoted 25 lines · Saul Wold

If x11 is disabled from DISTRO_FEATURE we don't build the ximagesink package, but it still becomes a dependency in the final image which causes a failure

---
  .../gstreamer/gst-meta-base_0.10.bb                |    3 +++
  1 file changed, 3 insertions(+)
meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb +3 -0
index 2fb39d5..0889437 100644
@@ -16,7 +16,10 @@ PACKAGES = "\
 
  ALLOW_EMPTY = "1"
 
+X11_RDEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', 'gst-plugin-base-ximagesink', '', d)}"
+
  RDEPENDS_gst-meta-base = "\
+    ${X11_RDEPENDS} \
      gstreamer \
      gst-plugins-base-playbin \
      gst-plugins-base-decodebin \
#2 lore raw
In reply to Saul Wold
Quoted 14 lines · Saul Wold

If x11 is disabled from DISTRO_FEATURE we don't build the ximagesink package, but it still becomes a dependency in the final image which causes a failure

---
 .../gstreamer/gst-meta-base_0.10.bb                |    3 +++
 1 file changed, 3 insertions(+)
meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb +0 -0
index 2fb39d5..0889437 100644

meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb PACKAGES = "\ · line 25

Quoted 10 lines
meta/recipes-multimedia/gstreamer/gst-meta-base_0.10.bb +3 -0
@@ -16,7 +16,10 @@ PACKAGES = "\
 
 ALLOW_EMPTY = "1"
 
+X11_RDEPENDS = "${@base_contains('DISTRO_FEATURES', 'x11', 'gst-plugin-base-ximagesink', '', d)}"
+
 RDEPENDS_gst-meta-base = "\
+    ${X11_RDEPENDS} \
     gstreamer \
     gst-plugins-base-playbin \
     gst-plugins-base-decodebin \

This doesn't make sense, surely there would be some removal of a dependency as well as an addition?

Looking at the recipe, the ximagesink dependency is already dependent on DISTRO_FEATURES and is in the gst-meta-x11-base package, not gst-meta-base?

Cheers,

Richard