new file mode 100644
@@ -0,0 +1,41 @@
+From 9b8dab93661798cba9f6a25e2779efd5e8fe2e95 Mon Sep 17 00:00:00 2001
+From: Chris Mayo <aklhfex@gmail.com>
+Date: Mon, 23 Nov 2026 19:24:25 +0000
+Subject: [PATCH] gstsink: Fix building for Wayland only
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+gtk/media/gtkgstsink.c: In function ‘gtk_gst_sink_initialize_gl’:
+gtk/media/gtkgstsink.c:895:25: error: implicit declaration of function ‘gst_gl_display_egl_from_gl_display’; did you mean ‘gst_gl_display_filter_gl_api’? [-Wimplicit-function-declaration]
+ 895 | display_ptr = gst_gl_display_egl_from_gl_display (self->gst_display);
+ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ | gst_gl_display_filter_gl_api
+
+Fixes:
+d4fa0b3ba61c ("gstreamer: mark EGL display as foreign", 2026-10-22)
+
+Part-of: <https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/10772>
+
+Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/gtk/-/commit/9b8dab93661798cba9f6a25e2779efd5e8fe2e95]
+Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
+---
+ gtk/media/gtkgstsink.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gtk/media/gtkgstsink.c b/gtk/media/gtkgstsink.c
+index 22ca97d702c..973dac393db 100644
+--- a/gtk/media/gtkgstsink.c
++++ b/gtk/media/gtkgstsink.c
+@@ -45,7 +45,7 @@
+ #include <gst/d3d12/gstd3d12.h>
+ #endif
+
+-#if GST_GL_HAVE_PLATFORM_EGL && (GST_GL_HAVE_WINDOW_WIN32 || GST_GL_HAVE_WINDOW_X11)
++#if GST_GL_HAVE_PLATFORM_EGL && (GST_GL_HAVE_WINDOW_WAYLAND || GST_GL_HAVE_WINDOW_WIN32 || GST_GL_HAVE_WINDOW_X11)
+ #include <gst/gl/egl/gstgldisplay_egl.h>
+ #endif
+
+--
+GitLab
+
similarity index 96%
rename from meta/recipes-gnome/gtk+/gtk4_4.24.1.bb
rename to meta/recipes-gnome/gtk+/gtk4_4.24.2.bb
@@ -33,7 +33,7 @@ LIC_FILES_CHKSUM = " \
file://tests/testgtk.c;endline=25;md5=49d06770681b8322466b52ed19d29fb2 \
"
-SRC_URI[archive.sha256sum] = "e98abe720e16129c8c0f50761dee0a2e9ae2478055e31018f6cf977fcf6513e9"
+SRC_URI[archive.sha256sum] = "05561abc25d1b1400136bf79ab68830cb4b053d1922ae97e551b3f19755bf3cb"
S = "${UNPACKDIR}/${GNOMEBN}-${PV}"
@@ -43,6 +43,8 @@ GNOMEBN = "gtk"
inherit gettext gnomebase gi-docgen update-alternatives gsettings features_check gobject-introspection mime upstream-version-is-even
+SRC_URI += "file://0001-gstsink-Fix-building-for-Wayland-only.patch"
+
# TBD: nativesdk
# gobject-introspection.bbclass pins introspection off for nativesk. As long as
# we do not remove this wisdom or hack gtk4, it is not possible to build
NEWS: https://gitlab.gnome.org/GNOME/gtk/-/blob/4.24.2/NEWS Changes in 4.24.2, 22-11-2026 ----------------------------- * Bugs fixed: - GNOME/gtksourceview#433 macOS: Number key in the press-and-hold accent menu inserts the digit instead of selecting the accent (João Sacramento) - GNOME/nautilus#3614 Double clicking a file that's slightly off screen doesn't open it (Jing Wang) - #6719 segfaults when using wintab (Alexia Death) - #8455 GTK crashes on launch with floating point exception when wl_output with refresh=0 is encountered (Matthias Clasen) - #8456 Wayland: freeing a GtkMediaFile makes GStreamer eglTerminate() GDK's EGLDisplay (4.24.1 regression) (Benjamin Otte) - #8463 Critical when loading SVG (Matthias Clasen) - #8537 macOS: Press-and-hold accent menu inserts the accented letter without replacing the original one (João Sacramento) - #8563 CSS parsing: use-after-free in gtk_css_parser_end_block_prelude() and three more memory-safety bugs (Matthias Clasen) - !10432 Fix the testsuite and stroke bounds (Benjamin Otte) - !10433 Fix the testsuite and stroke bounds (Benjamin Otte) - !10444 Update Slovenian translation - !10445 Fix various issues (Benjamin Otte) - !10446 Fix various issues (Benjamin Otte) - !10447 Update Chinese (China) translation - !10448 Update Chinese (China) translation - !10459 Update Serbian translation - !10460 Update Serbian (Latin) translation - !10462 Update Georgian translation - !10464 Update Persian translation (Danial Behzadi) - !10466 Update Ukrainian translation - !10469 Update Czech translation (Daniel Rusek) - !10474 Update Belarusian translation (Vasil Pupkin) - !10475 Update Catalan translation (Xavi Ivars) - !10477 Update Norwegian Bokmål translation (Kjartan Maraas) - !10478 Update Norwegian Nynorsk translation (Roy-Magne Mo) - !10484 Update Turkish translation (Emin Tufan Çetin) - !10486 Update Lithuanian translation (Aurimas Černius) - !10487 Declare sysprof counters as G_GNUC_UNUSED (Benjamin Otte) - !10500 nodeparser: Don't crash when someone puts text inside a fill/stroke (Benjamin Otte) - !10502 Update Portuguese translation - !10503 Update Portuguese translation - !10505 nodeparser: Don't crash when someone puts text inside a fill/stroke (Benjamin Otte) - !10524 Update French translation - !10525 Update French translation - !10529 Update Bulgarian translation - !10572 Update Russian translation - !10582 Assorted backports for 4.24 (Zeth (wearing a Fedora), Jing Wang, Felix Häcker, Alexander Davydzik, Martin Fischer, Alexia Death, Sergey Bugaev, Eugenio Depalo, Lukáš Tyrychtr, Dimitriy Ryazantcev, Benjamin Otte, Matthias Clasen, Ignacio Casal Quinteiro) - !10650 Update Kazakh translation - !10680 Update Basque translation - !10683 Update Hebrew translation - !10700 backport gsk(opacity): use original value if opaque region hasn't changed (Arjan Molenaar) - !10707 Update Indonesian translation - !10719 Update Azerbaijani translation - !10721 Update Brazilian Portuguese translation - !10736 backport store-callback-4-24 (Merlijn Sebrechts) - !10743 Update Swedish translation - !10745 Update Galician translation - !10746 macos: Backport input method fixes to gtk-4-24 (João Sacramento) - !10751 gsk: skip unnecessary copy/paste replay (Christian Hergert) - !10758 testsuite: Drop the repeat-snap compare test (Matthias Clasen) - !10760 Backports of assorted css memeory fixes (Matthias Clasen) - Add backport patch to fix building for Wayland only 0001-gstsink-Fix-building-for-Wayland-only.patch Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech> --- Changes Since v1: - Fix compilation error with no-x11 ...stsink-Fix-building-for-Wayland-only.patch | 41 +++++++++++++++++++ .../gtk+/{gtk4_4.24.1.bb => gtk4_4.24.2.bb} | 4 +- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-gnome/gtk+/gtk4/0001-gstsink-Fix-building-for-Wayland-only.patch rename meta/recipes-gnome/gtk+/{gtk4_4.24.1.bb => gtk4_4.24.2.bb} (96%)