Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Ola x Nilsson <ola.x.nilsson@axis.com>
To: <olani@axis.com>
Cc: <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH] gstreamer1.0-plugins-base: Set explicit OpenGL Meson selectors
Date: Thu, 3 Dec 2026 12:16:09 +0100	[thread overview]
Message-ID: <jwqecbywr5y.fsf@axis.com> (raw)
In-Reply-To: <20261203095132.1758043-1-olani@axis.com>


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]
> -=-=-=-=-=-=-=-=-=-=-=-

      reply	other threads:[~2026-12-03 11:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  9:51 [PATCH] gstreamer1.0-plugins-base: Set explicit OpenGL Meson selectors olani
2026-12-03 11:16 ` Ola x Nilsson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwqecbywr5y.fsf@axis.com \
    --to=ola.x.nilsson@axis.com \
    --cc=olani@axis.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox