Package: libgtk-4-1
Version: 4.18.6+ds-2
Severity: normal
Tags: patch upstream
Dear Maintainer,
When using COSMIC Dekstop on Debian 13, I found that all apps crash
after compiling a version after the following:
https://github.com/pop-os/cosmic-
comp/commit/091583ac84abac02967ae358cf9570ddfef63b31 (backend: Support
wl-dmabuf v6)
Debugging showed that the gtk-4 version included in Debian 13 (4.18.6)
announced support for versions higher than 5 while it does not seem to
implement what is needed for proper v6 support.
patching gtk4 to only announce v5 support fixes the problem.
A patch is attached.
-- System Information:
Debian Release: 13.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 7.1.3+deb13-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libgtk-4-1 depends on:
ii adwaita-icon-theme 48.1-1
ii hicolor-icon-theme 0.18-2
ii libc6 2.41-12+deb13u3
ii libcairo-gobject2 1.18.4-1+b1
ii libcairo-script-interpreter2 1.18.4-1+b1
ii libcairo2 1.18.4-1+b1
ii libcloudproviders0 0.3.6-2
ii libcolord2 1.4.7-3
ii libcups2t64 2.4.10-3+deb13u2
ii libepoxy0 1.5.10-2
ii libfontconfig1 2.15.0-2.3
ii libfribidi0 1.0.16-1
ii libgdk-pixbuf-2.0-0 2.42.12+dfsg-4+deb13u1
ii libgles2 1.7.0-1+b2
ii libglib2.0-0t64 2.84.4-3~deb13u3
ii libgraphene-1.0-0 1.10.8-5
ii libgtk-4-common 4.18.6+ds-2
ii libharfbuzz-subset0 10.2.0-1+deb13u1
ii libharfbuzz0b 10.2.0-1+deb13u1
ii libjpeg62-turbo 1:2.1.5-4
ii libpango-1.0-0 1.56.3-1
ii libpangocairo-1.0-0 1.56.3-1
ii libpangoft2-1.0-0 1.56.3-1
ii libpng16-16t64 1.6.48-1+deb13u5
ii libtiff6 4.7.0-3+deb13u3
ii libvulkan1 1.4.309.0-1
ii libwayland-client0 1.23.1-3
ii libwayland-egl1 1.23.1-3
ii libx11-6 2:1.8.12-1
ii libxcursor1 1:1.2.3-1
ii libxdamage1 1:1.1.6-1+b2
ii libxext6 2:1.3.4-1+b3
ii libxfixes3 1:6.0.0-2+b4
ii libxi6 2:1.8.2-1
ii libxinerama1 2:1.1.4-3+b4
ii libxkbcommon0 1.7.0-2
ii libxrandr2 2:1.5.4-1+b3
ii shared-mime-info 2.4-5+b2
Versions of packages libgtk-4-1 recommends:
ii iso-codes 4.18.0-1
ii libgtk-4-bin 4.18.6+ds-2
ii libgtk-4-media-gstreamer 4.18.6+ds-2
ii librsvg2-common 2.60.0+dfsg-1
Versions of packages libgtk-4-1 suggests:
ii gvfs 1.57.2-2+deb13u1
Versions of packages libgtk-4-1 is related to:
ii fcitx5-frontend-gtk4 5.1.3-3
ii ibus-gtk4 1.5.32-2
pn scim-gtk-immodule <none>
-- no debconf information
--- gtk4-4.18.6+ds.orig/gdk/wayland/gdkdisplay-wayland.c
+++ gtk4-4.18.6+ds/gdk/wayland/gdkdisplay-wayland.c
@@ -367,7 +367,7 @@ gdk_registry_handle_global (void
struct zwp_linux_dmabuf_feedback_v1 *feedback;
display_wayland->linux_dmabuf =
- wl_registry_bind (display_wayland->wl_registry, id, &zwp_linux_dmabuf_v1_interface, version);
+ wl_registry_bind (display_wayland->wl_registry, id, &zwp_linux_dmabuf_v1_interface, MIN (version, 5));
feedback = zwp_linux_dmabuf_v1_get_default_feedback (display_wayland->linux_dmabuf);
display_wayland->dmabuf_formats_info = dmabuf_formats_info_new (GDK_DISPLAY (display_wayland),
"default",