diff --git a/meta-gnome/recipes-gnome/mutter/files/0002-build-Build-remote-selection-source-without-remote-desktop.patch b/meta-gnome/recipes-gnome/mutter/files/0002-build-Build-remote-selection-source-without-remote-desktop.patch new file mode 100644 index 0000000000..094270536e --- /dev/null +++ b/meta-gnome/recipes-gnome/mutter/files/0002-build-Build-remote-selection-source-without-remote-desktop.patch @@ -0,0 +1,42 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 18 Oct 2026 17:50:00 -0700 +Subject: [PATCH] build: Build remote selection source without remote desktop + +meta-clipboard-session.c is built unconditionally, as input capture +uses it, but it calls into meta-selection-source-remote.c, which is only +built with remote desktop support. Linking libmutter with +-Dremote_desktop=false fails: + + ld.lld: error: undefined symbol: meta_selection_source_remote_new + +The remote selection source has no remote desktop dependencies, so +build it unconditionally as well. + +Upstream-Status: Pending +AI-Generated: Uses Claude Code +Signed-off-by: Khem Raj +--- + src/meson.build | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/src/meson.build ++++ b/src/meson.build +@@ -345,6 +345,8 @@ + 'core/meta-selection.c', + 'core/meta-selection-source.c', + 'core/meta-selection-source-memory.c', ++ 'core/meta-selection-source-remote.c', ++ 'core/meta-selection-source-remote.h', + 'core/meta-session-manager.c', + 'core/meta-session-state.c', + 'core/meta-sound-player.c', +@@ -470,8 +472,6 @@ + 'backends/meta-stream-window.h', + 'backends/meta-stream.c', + 'backends/meta-stream.h', +- 'core/meta-selection-source-remote.c', +- 'core/meta-selection-source-remote.h', + ] + endif + diff --git a/meta-gnome/recipes-gnome/mutter/mutter_51.0.bb b/meta-gnome/recipes-gnome/mutter/mutter_51.0.bb index 66a4666c55..4213e2cc06 100644 --- a/meta-gnome/recipes-gnome/mutter/mutter_51.0.bb +++ b/meta-gnome/recipes-gnome/mutter/mutter_51.0.bb @@ -35,7 +35,9 @@ DEPENDS = " \ inherit gnomebase gsettings gobject-introspection gettext features_check -SRC_URI += "file://0001-Dont-use-system-sysprof-dbus-folder.patch" +SRC_URI += "file://0001-Dont-use-system-sysprof-dbus-folder.patch \ + file://0002-build-Build-remote-selection-source-without-remote-desktop.patch \ + " SRC_URI[archive.sha256sum] = "5d28f3ae225692428fcafb96500d673f34328b698b86960c9c1460d0b1d983b3" REQUIRED_DISTRO_FEATURES = "wayland polkit"