gstreamer1.0-plugins-bad: add ANY_OF_DISTRO_FEATURES
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
@@ -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
Quoted 9 lines · Changqing Li via lists.openembedded.org
When vulkan is enabled in
DISTRO_FEATURESwithout x11 or wayland,do_configurewill failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not workset
ANY_OF_DISTRO_FEATURESto make gstreamer1.0-plugins-bad build only when x11 or wayland is enabled.Signed-off-by Changqing Li <[email protected]>---
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
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
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_FEATURESwithout x11 or wayland,do_configurewill failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not workset
ANY_OF_DISTRO_FEATURESto make gstreamer1.0-plugins-bad build only when x11 or wayland is enabled.Signed-off-by Changqing Li<[email protected]>---
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@@ -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_FEATURESbut 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 inDISTRO_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_FEATURESline.
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
PATCH v2 1/1 gstreamer1.0-plugins-bad: add ANY_OF_DISTRO_FEATURES
In reply to Mathieu Dubois-BriandWhen 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
@@ -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
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: addANY_OF_DISTRO_FEATURESWhen vulkan is enabled in
DISTRO_FEATURESwithout x11 or wayland,do_configurewill failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not workwhen vulkan is enabled in
DISTRO_FEATURES, setANY_OF_DISTRO_FEATURESto x11 or wayland to skip building of gstreamer1.0-plugins-badSigned-off-by Changqing Li <[email protected]>--- .../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@@ -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
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: addANY_OF_DISTRO_FEATURESWhen vulkan is enabled in
DISTRO_FEATURESwithout x11 or wayland,do_configurewill failed with error:
gst-libs/gst/vulkan/meson.build:311:4: ERROR: Problem encountered: No Windowing system found. vulkansink will not workwhen vulkan is enabled in
DISTRO_FEATURES, setANY_OF_DISTRO_FEATURESto x11 or wayland to skip building of gstreamer1.0-plugins-badSigned-off-by Changqing Li <[email protected]>--- .../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@@ -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 neededlease -> 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