| Message ID | 20260414032831.1323996-1-changqing.li@windriver.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | [V2] gstreamer1.0-plugins-bad: add ANY_OF_DISTRO_FEATURES | expand |
> -----Original Message----- > From: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> On Behalf Of Changqing Li via lists.openembedded.org > Sent: den 14 april 2026 05:29 > To: openembedded-core@lists.openembedded.org > 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 > > Signed-off-by: Changqing Li <changqing.li@windriver.com> > --- > .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb > index cdf3a20dff..61a6d3dd2f 100644 > --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb > +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb > @@ -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 lease -> least > +ANY_OF_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'vulkan', 'x11 wayland', '', d)}" > > PACKAGECONFIG ??= " \ > ${GSTREAMER_ORC} \ > -- > 2.34.1 //Peter
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb index cdf3a20dff..61a6d3dd2f 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb @@ -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} \
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 Signed-off-by: Changqing Li <changqing.li@windriver.com> --- .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)