Files
gentoo/gui-libs
Eli Schwartz 66d362588a gui-libs/gtk: fix automagic dependency on gstreamer + wayland
gtk has some code which uses `#ifdef HAVE_GST_WAYLAND_SUPPORT`, which is
itself defined by the combination of:
- GST_GL_HAVE_WINDOW_WAYLAND (defined by gst-plugins-base)
- GDK_WINDOWING_WAYLAND (gtk's own internal code)

If present, it uses functions from gst-plugins-base
(/usr/lib64/libgstgl-1.0.so) which are only exposed by USE=wayland.
Result on mismatch:

```
$ gtk4-launch
gtk4-launch: symbol lookup error: /usr/lib64/libgtk-4.so.1: undefined symbol: gst_gl_display_wayland_new_with_display
```

Fix this by requiring gtk to depend on gst-plugins-base[wayland?], since
if general wayland support in gtk is enabled, then we want to actually
build and support wayland in the gtk "gstreamer media backend" too, and
if wayland support in gtk is *disabled* then how gstreamer got built is
irrelevant since GDK_WINDOWING_WAYLAND will be false and the conditions
will not fire to compile against those functions.

Also revealed in binhost builds (nowayland variants failed to compile
various packages, since gtk itself was automagic and thus broken).

Closes: https://bugs.gentoo.org/980642
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
2026-10-08 00:28:45 -04:00
..
…
2026-09-19 23:35:19 +02:00
…