Skip to contentSkip to conversation

gstreamer1.0-plugins-bad: disable vulkan when x11/wayland not enabled

PATCH Superseded Changqing Li 2 participants 4 messages May 7 – May 14

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gstreamer1.0-plugins-bad: disable vulkan when x11/wayland not enabled

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

disable vulkan from PACKAGECONFIG when x11 and wayland is not enabled

---
 .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb                | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +2 -0
index cdf3a20dff..51f51761f9 100644
@@ -32,6 +32,8 @@ PACKAGECONFIG ??= " \
     ${@bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'rsvg', d)} \
 "
 
+PACKAGECONFIG:remove = "${@'vulkan' if (bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d) == '') else ''}"
+
 PACKAGECONFIG[analytics]       = "-Danalyticsoverlay=enabled,-Danalyticsoverlay=disabled,"
 PACKAGECONFIG[aom]             = "-Daom=enabled,-Daom=disabled,aom"
 PACKAGECONFIG[assrender]       = "-Dassrender=enabled,-Dassrender=disabled,libass"
Signature · 1 line
2.34.1
#1 lore raw

Changqing Li via lists.openembedded.org <changqing.li= [email protected]> escreveu (quinta, 7/05/2026 à(s) 06:11):

Quoted 23 lines

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

disable vulkan from PACKAGECONFIG when x11 and wayland is not enabled

---
 .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb                | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

gstreamer1.0-plugins-bad_1.28.2.bb b/meta/recipes-multimedia/gstreamer/ gstreamer1.0-plugins-bad_1.28.2.bb
index cdf3a20dff..51f51761f9 100644

meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +1 -0
@@ -32,6 +32,8 @@ PACKAGECONFIG ??= " \
     ${@bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'rsvg', d)} \
 "
 
+PACKAGECONFIG:remove = "${@'vulkan' if
Quoted 3 lines

(bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d) == '') else ''}" +

Using the 'remove' override on the core should be avoided because it's impossible to revert the changes on other layers.
In my opinion, it would be better to use an auxiliary variable to define when vulkan is enabled, and this could be modified
if necessary in other layers.

PACKAGECONFIG_VULKAN ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'vulkan', '', d)"

PACKAGECONFIG ??= " \
    ${PACKAGECONFIG_VULKAN}

"

Jose

PACKAGECONFIG[analytics] =

Quoted 19 lines

"-Danalyticsoverlay=enabled,-Danalyticsoverlay=disabled
PACKAGECONFIG[aom] = "-Daom=enabled,-Daom=disabled,aom"
PACKAGECONFIG[assrender] =
"-Dassrender=enabled,-Dassrender=disabled,libass" --
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#236555):
https://lists.openembedded.org/g/openembedded-core/message/236555
Mute This Topic: https://lists.openembedded.org/mt/119192696/5052612
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Best regards,

José Quaresma
#2 lore raw
Quoted 44 lines · Jose Quaresma

**
*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.

Changqing Li via lists.openembedded.org <https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywidzs6L4$> <changqing.li <https://urldefense.com/v3/__http://changqing.li__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywjPgScZ8$>[email protected]> escreveu (quinta, 7/05/2026 à(s) 06:11):

    When vulkan is enabled in DISTRO_FEATURES without x11 or wayland,
    do_configure will failed with error:
    gst-libs/gst/vulkan/meson.build
    <https://urldefense.com/v3/__http://meson.build__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywqg724Gd$>:311:4:
    ERROR: Problem encountered: No Windowing system found. vulkansink
    will not work

    disable vulkan from PACKAGECONFIG when x11 and wayland is not enabled

    Signed-off-by: Changqing Li <[email protected]>
    ---
     .../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb
    <https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywrb_TT-G$>
                  | 2 ++
     1 file changed, 2 insertions(+)

    diff --git
    a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb
    <https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywrb_TT-G$>
    b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb
    <https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywrb_TT-G$>
    index cdf3a20dff..51f51761f9 100644
    ---
    a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb
    <https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywrb_TT-G$>
    +++
    b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb
    <https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywrb_TT-G$>
    @@ -32,6 +32,8 @@ PACKAGECONFIG ??= " \
         ${@bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'rsvg', d)} \
     "

    +PACKAGECONFIG:remove = "${@'vulkan' if
    (bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d) == '') else ''}"
    +
Quoted 9 lines

Using the 'remove' override on the core should be avoided because it's impossible to revert the changes on other layers. In my opinion, it would be better to use an auxiliary variable to define when vulkan is enabled, and this could be modified if necessary in other layers.

PACKAGECONFIG_VULKAN ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'vulkan', '', d)" PACKAGECONFIG ??= " \
    ${PACKAGECONFIG_VULKAN}
"

make sense,  V2 is sent.

//Changqing

Quoted 33 lines

Jose

     PACKAGECONFIG[analytics]       =
    "-Danalyticsoverlay=enabled,-Danalyticsoverlay=disabled
     PACKAGECONFIG[aom]             = "-Daom=enabled,-Daom=disabled,aom"
     PACKAGECONFIG[assrender]       =
    "-Dassrender=enabled,-Dassrender=disabled,libass"
    -- 
    2.34.1


    -=-=-=-=-=-=-=-=-=-=-=-
    Links: You receive all messages sent to this group.
    View/Reply Online (#236555):
    https://lists.openembedded.org/g/openembedded-core/message/236555
    <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/message/236555__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywjKCbECS$>
    Mute This Topic:
    https://lists.openembedded.org/mt/119192696/5052612
    <https://urldefense.com/v3/__https://lists.openembedded.org/mt/119192696/5052612__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywrSm1KWM$>
    Group Owner: [email protected]
    <mailto:openembedded-core%[email protected]>
    Unsubscribe:
    https://lists.openembedded.org/g/openembedded-core/unsub
    <https://urldefense.com/v3/__https://lists.openembedded.org/g/openembedded-core/unsub__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywn3VeNul$>
    [[email protected]]
    -=-=-=-=-=-=-=-=-=-=-=-
Signature · 3 lines
Best regards,

José Quaresma
#3 lore raw

Hi,

I noticed that this patch version [v1] is still in master-next but note the [v3] It has already been integrated.

[v3]
https://git.openembedded.org/openembedded-core/commit/?id=cd2962653561350bccce0bb92384e963151323cf

Jose

Changqing Li via lists.openembedded.org <changqing.li= [email protected]> escreveu (sexta, 8/05/2026 à(s) 02:57):

Quoted 102 lines · Jose Quaresma

*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.

Changqing Li via lists.openembedded.org
<https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywidzs6L4$>
<changqing.li
<https://urldefense.com/v3/__http://changqing.li__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywjPgScZ8$>
[email protected]> escreveu (quinta, 7/05/2026 à(s) 06:11):

Quoted 33 lines

When vulkan is enabled in DISTRO_FEATURES without x11 or wayland, do_configure will failed with error:
gst-libs/gst/vulkan/meson.build
<https://urldefense.com/v3/__http://meson.build__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywqg724Gd$>:311:4:
ERROR: Problem encountered: No Windowing system found. vulkansink will not work

disable vulkan from PACKAGECONFIG when x11 and wayland is not enabled

---
.../gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb
<https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywrb_TT-G$>

              | 2 ++
 1 file changed, 2 insertions(+)
(quoted diff) +0 -0

gstreamer1.0-plugins-bad_1.28.2.bb
<https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywrb_TT-G$>
b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb
<https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywrb_TT-G$>
index cdf3a20dff..51f51761f9 100644
--- a/meta/recipes-multimedia/gstreamer/ gstreamer1.0-plugins-bad_1.28.2.bb
<https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywrb_TT-G$>
+++ b/meta/recipes-multimedia/gstreamer/ gstreamer1.0-plugins-bad_1.28.2.bb
<https://urldefense.com/v3/__http://gstreamer1.0-plugins-bad_1.28.2.bb__;!!AjveYdw8EvQ!dPR5LmVIme5FlfwBJVSZ_k5sL159UKn_EJ1pWkvQuIOeVm3DyoMnbyzaA2dNv0fRnQ7VfufnRvC5_W3JR5-ywrb_TT-G$>

meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.28.2.bb +1 -0
@@ -32,6 +32,8 @@ PACKAGECONFIG ??= " \
     ${@bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'rsvg', d)} \
 "
 
+PACKAGECONFIG:remove = "${@'vulkan' if
Quoted 4 lines

(bb.utils.filter('DISTRO_FEATURES', 'x11 wayland', d) == '') else ''}" <$%7B@'vulkan'if(bb.utils.filter('DISTRO_FEATURES','x11wayland',d)=='')else''%7D> +

Using the 'remove' override on the core should be avoided because it's impossible to revert the changes on other layers.
In my opinion, it would be better to use an auxiliary variable to define when vulkan is enabled, and this could be modified
if necessary in other layers.

PACKAGECONFIG_VULKAN ?= "${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'vulkan', '', d)" <$%[email protected]('DISTRO_FEATURES','x11wayland','vulkan','',d)>

PACKAGECONFIG ??= " \
    ${PACKAGECONFIG_VULKAN}

"

make sense, V2 is sent.

//Changqing

Jose

PACKAGECONFIG[analytics] =

Quoted 11 lines

"-Danalyticsoverlay=enabled,-Danalyticsoverlay=disabled
PACKAGECONFIG[aom] = "-Daom=enabled,-Daom=disabled,aom"
PACKAGECONFIG[assrender] =
"-Dassrender=enabled,-Dassrender=disabled,libass" --
2.34.1

--
Best regards,

José Quaresma

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#236629):
https://lists.openembedded.org/g/openembedded-core/message/236629
Mute This Topic: https://lists.openembedded.org/mt/119192696/5052612
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Best regards,

José Quaresma