All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gstreamer1.0-plugins-base: Set explicit OpenGL Meson selectors
@ 2026-12-03  9:51 olani
  2026-12-03 11:16 ` [OE-core] " Ola x Nilsson
  0 siblings, 1 reply; 2+ messages in thread
From: olani @ 2026-12-03  9:51 UTC (permalink / raw)
  To: openembedded-core

From: Ola x Nilsson <olani@axis.com>

The x11 and opengl PACKAGECONFIGs pulls more or less the same
dependencies.  When -Dgl_api, -Dgl_platform and -Dgl_winsys are left
unset, Meson may autodetect and enable OpenGL support even if only x11
PACKAGECONFIG is selected.

Pass explicit empty selector lists for GL API, platform and winsys
when none are configured, so Meson does not autodetect them.

This may disable GL integration in configurations where it was
previously enabled via autodetection.

AI-Generated: Uses GitHub Copilot
Signed-off-by: Ola x Nilsson <olani@axis.com>
---
 .../gstreamer/gstreamer1.0-plugins-base_1.28.9.bb            | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb
index 0f7044b7ad..66d1c0c0ca 100644
--- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb
+++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb
@@ -88,9 +88,6 @@ def get_opengl_cmdline_list(switch_name, options, d):
         for option in options.split():
             if bb.utils.contains('PACKAGECONFIG', option, True, False, d):
                 selected_options += [option]
-    if selected_options:
-        return '-D' + switch_name + '=' + ','.join(selected_options)
-    else:
-        return ''
+    return '-D' + switch_name + '=' + ','.join(selected_options)
 
 CVE_PRODUCT += "gst-plugins-base"

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [OE-core] [PATCH] gstreamer1.0-plugins-base: Set explicit OpenGL Meson selectors
  2026-12-03  9:51 [PATCH] gstreamer1.0-plugins-base: Set explicit OpenGL Meson selectors olani
@ 2026-12-03 11:16 ` Ola x Nilsson
  0 siblings, 0 replies; 2+ messages in thread
From: Ola x Nilsson @ 2026-12-03 11:16 UTC (permalink / raw)
  To: olani; +Cc: openembedded-core


I must admit I have not done any meaningful testing on this apart from
building.  It should maybe have been an RFC.

I ran into problems where downstream recipes would not compile because
the generated pc-files would refer to libdrm which was not included in
their sysroot.  Not sure how that could happen.

I'd say that having deterministic configuration is the right thing.
gstreamer1.0-plugin-base has a lot of options that default to 'auto',
and the PACKAGECONFIGs interact in complicated ways.

I do not have access to any autobuilder instance, but any tips on how I
can do further testing on this change would be appreciated.

/Ola

On Thu, Dec 03 2026, Ola x Nilsson via openembedded-core wrote:

> From: Ola x Nilsson <olani@axis.com>
>
> The x11 and opengl PACKAGECONFIGs pulls more or less the same
> dependencies.  When -Dgl_api, -Dgl_platform and -Dgl_winsys are left
> unset, Meson may autodetect and enable OpenGL support even if only x11
> PACKAGECONFIG is selected.
>
> Pass explicit empty selector lists for GL API, platform and winsys
> when none are configured, so Meson does not autodetect them.
>
> This may disable GL integration in configurations where it was
> previously enabled via autodetection.
>
> AI-Generated: Uses GitHub Copilot
> Signed-off-by: Ola x Nilsson <olani@axis.com>
> ---
>  .../gstreamer/gstreamer1.0-plugins-base_1.28.9.bb            | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb
> index 0f7044b7ad..66d1c0c0ca 100644
> --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb
> +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.28.9.bb
> @@ -88,9 +88,6 @@ def get_opengl_cmdline_list(switch_name, options, d):
>          for option in options.split():
>              if bb.utils.contains('PACKAGECONFIG', option, True, False, d):
>                  selected_options += [option]
> -    if selected_options:
> -        return '-D' + switch_name + '=' + ','.join(selected_options)
> -    else:
> -        return ''
> +    return '-D' + switch_name + '=' + ','.join(selected_options)
>  
>  CVE_PRODUCT += "gst-plugins-base"
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#251881): https://lists.openembedded.org/g/openembedded-core/message/251881
> Mute This Topic: https://lists.openembedded.org/mt/122570714/3618480
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ola.x.nilsson@axis.com]
> -=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-03 11:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  9:51 [PATCH] gstreamer1.0-plugins-base: Set explicit OpenGL Meson selectors olani
2026-12-03 11:16 ` [OE-core] " Ola x Nilsson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.