Skip to contentSkip to conversation

gstreamer1.0-plugins-bad: add ANY_OF_DISTRO_FEATURES

PATCH Superseded Changqing Li 3 participants 6 messages Mar 19 – Apr 15

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gstreamer1.0-plugins-bad: add ANY_OF_DISTRO_FEATURES

When vulkan is enabled in DISTRO_FEATURES without x11 or wayland,
do_configure will failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not work

set ANY_OF_DISTRO_FEATURES to make gstreamer1.0-plugins-bad build only when x11 or wayland is enabled.

---
 .../gstreamer/gstreamer1.0-plugins-bad_1.26.9.bb              | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.9.bb +3 -1
index 4a9cb37dd8..2cb00f180f 100644
@@ -19,7 +19,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
 DEPENDS += "gstreamer1.0-plugins-base"
 
-inherit gobject-introspection
+inherit gobject-introspection features_check
+
+ANY_OF_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'x11 wayland', '', d)}"
 
 PACKAGECONFIG ??= " \
     ${GSTREAMER_ORC} \
Signature · 1 line
2.34.1
#1 lore raw
Quoted 9 lines · Changqing Li via lists.openembedded.org

When vulkan is enabled in DISTRO_FEATURES without x11 or wayland,
do_configure will failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not work

set ANY_OF_DISTRO_FEATURES to make gstreamer1.0-plugins-bad build only when x11 or wayland is enabled.

---

Hi Changqing,

Thanks for your patch.

Quoted 8 lines
 .../gstreamer/gstreamer1.0-plugins-bad_1.26.9.bb              | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.9.bb +0 -0
index 4a9cb37dd8..2cb00f180f 100644

meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.9.bb LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" · line 24

Quoted 7 lines
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.9.bb +3 -1
@@ -19,7 +19,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
 DEPENDS += "gstreamer1.0-plugins-base"
 
-inherit gobject-introspection
+inherit gobject-introspection features_check
+
+ANY_OF_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'x11 wayland', '', d)}"

So the error we get if we try to build with "vulkan" in DISTRO_FEATURES but not "x11" not "wayland" is the following:

ERROR: Nothing PROVIDES 'gstreamer1.0-plugins-bad'
gstreamer1.0-plugins-bad was skipped: one of 'wayland x11' needs to be in DISTRO_FEATURES

To be honest, I believe this is a bit misleading, as we are not mentioning the vulkan DISTRO_FEATURES, while this is the main issue:
gstreamer1.0-plugins-bad can be built without wayland or x11, just not with vulkan.

I would really prefer a better error message, but otherwise we should at least add some comment in the recipe explaining why we have this ANY_OF_DISTRO_FEATURES line.

Thanks,
Mathieu

Signature · 3 lines
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw
Quoted 36 lines · Mathieu Dubois-Briand

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 9 lines · Changqing Li via lists.openembedded.org

When vulkan is enabled in DISTRO_FEATURES without x11 or wayland,
do_configure will failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not work

set ANY_OF_DISTRO_FEATURES to make gstreamer1.0-plugins-bad build only when x11 or wayland is enabled.

---

Hi Changqing,

Thanks for your patch.

Quoted 15 lines
  .../gstreamer/gstreamer1.0-plugins-bad_1.26.9.bb              | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.9.bb +3 -1
index 4a9cb37dd8..2cb00f180f 100644
@@ -19,7 +19,9 @@ LIC_FILES_CHKSUM ="file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
  DEPENDS += "gstreamer1.0-plugins-base"
 
-inherit gobject-introspection
+inherit gobject-introspection features_check
+
+ANY_OF_DISTRO_FEATURES ="${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'x11 wayland', '', 
Quoted 1 line

d)}"

So the error we get if we try to build with "vulkan" in DISTRO_FEATURES but not "x11" not "wayland" is the following:

Quoted 2 lines

ERROR: Nothing PROVIDES 'gstreamer1.0-plugins-bad'
gstreamer1.0-plugins-bad was skipped: one of 'wayland x11' needs to be in DISTRO_FEATURES

yes, if user bitbake gstreamer1.0-plugins-bad, this will be reported.

And this fix will unblock "bitbake world" since gstreamer1.0-plugins-bad is skipped

Quoted 5 lines

To be honest, I believe this is a bit misleading, as we are not mentioning the vulkan DISTRO_FEATURES, while this is the main issue:
gstreamer1.0-plugins-bad can be built without wayland or x11, just not with vulkan.

user only can get why by checking recipe settings

Quoted 4 lines

I would really prefer a better error message, but otherwise we should at least add some comment in the recipe explaining why we have this ANY_OF_DISTRO_FEATURES line.

I send a V2 to add a comment,  user need to check the comments and commit message

to know why ANY_OF_DISTRO_FEATURES is added.

Regards

//changqing

Quoted 9 lines

Thanks,
Mathieu

--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

#3 lore raw

PATCH v2 1/1 gstreamer1.0-plugins-bad: add ANY_OF_DISTRO_FEATURES

In reply to Mathieu Dubois-Briand

When vulkan is enabled in DISTRO_FEATURES without x11 or wayland,
do_configure will failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not work

when vulkan is enabled in DISTRO_FEATURES, set ANY_OF_DISTRO_FEATURES to x11 or wayland to skip building of gstreamer1.0-plugins-bad

---
 .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb             | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +4 -1
index cdf3a20dff..61a6d3dd2f 100644
@@ -19,7 +19,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
 DEPENDS += "gstreamer1.0-plugins-base"
 
-inherit gobject-introspection
+inherit gobject-introspection features_check
+
+# When vulkan is enabled, at lease one of x11 or wayland is needed
+ANY_OF_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'x11 wayland', '', d)}"
 
 PACKAGECONFIG ??= " \
     ${GSTREAMER_ORC} \
Signature · 1 line
2.34.1
#4 lore raw
Quoted 27 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Changqing Li via lists.openembedded.org
Sent: den 14 april 2026 05:29
To: [email protected]
Subject: [OE-core] [PATCH V2] gstreamer1.0-plugins-bad: add ANY_OF_DISTRO_FEATURES

When vulkan is enabled in DISTRO_FEATURES without x11 or wayland,
do_configure will failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not work

when vulkan is enabled in DISTRO_FEATURES, set ANY_OF_DISTRO_FEATURES to x11 or wayland to skip building of gstreamer1.0-plugins-bad

---
 .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb             | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +0 -0
index cdf3a20dff..61a6d3dd2f 100644
@@ -19,7 +19,10 @@ LIC_FILES_CHKSUM =

"file://COPYING;md5=4fbd65380cdd255951079008b364516c"

DEPENDS += "gstreamer1.0-plugins-base"

meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" · line 24

Quoted 4 lines
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +3 -1
-inherit gobject-introspection
+inherit gobject-introspection features_check
+
+# When vulkan is enabled, at lease one of x11 or wayland is needed

lease -> least

Quoted 6 lines

+ANY_OF_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'x11 wayland', '', d)}"

 PACKAGECONFIG ??= " \
     ${GSTREAMER_ORC} \

--
2.34.1

//Peter

#5 lore raw
Quoted 28 lines · Peter Kjellerstedt

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Quoted 25 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Changqing Li via lists.openembedded.org
Sent: den 14 april 2026 05:29
To: [email protected]
Subject: [OE-core] [PATCH V2] gstreamer1.0-plugins-bad: add ANY_OF_DISTRO_FEATURES

When vulkan is enabled in DISTRO_FEATURES without x11 or wayland,
do_configure will failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not work

when vulkan is enabled in DISTRO_FEATURES, set ANY_OF_DISTRO_FEATURES to x11 or wayland to skip building of gstreamer1.0-plugins-bad

---
  .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb             | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +0 -0
index cdf3a20dff..61a6d3dd2f 100644
@@ -19,7 +19,10 @@ LIC_FILES_CHKSUM =

"file://COPYING;md5=4fbd65380cdd255951079008b364516c"

Quoted 7 lines

meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" · line 24

Quoted 6 lines

DEPENDS += "gstreamer1.0-plugins-base"

meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +3 -1
-inherit gobject-introspection
+inherit gobject-introspection features_check
+
+# When vulkan is enabled, at lease one of x11 or wayland is needed

lease -> least

Thanks.  A V3 patch is send to fix this typo error.

//Changqing

Quoted 9 lines
Quoted 7 lines

+ANY_OF_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'x11 wayland', '', d)}"

  PACKAGECONFIG ??= " \
      ${GSTREAMER_ORC} \

--
2.34.1

//Peter