| Message ID | 20261203095132.1758043-1-olani@axis.com |
|---|---|
| State | Under Review |
| Headers | show |
| Series | gstreamer1.0-plugins-base: Set explicit OpenGL Meson selectors | expand |
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] > -=-=-=-=-=-=-=-=-=-=-=-
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"