Created attachment 871191 [details, diff] workaround for my environment There is at least two includes without ifdef Reported upstream https://gitlab.gnome.org/GNOME/mutter/-/issues/3046
Thanks. It'll likely be better received upstream if you make an MR.
It seems dev-util/wayland-scanner can be ifdef in deps when USE='-wayland'. I can build mutter without this one in ebuild.
The above patch fixed the issue for me; I was able to build Mutter perfectly fine after adding it to `portage/patches`
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61dfbb83a61d0e5ee3e6822f22b1d3a3bb1afbb9 commit 61dfbb83a61d0e5ee3e6822f22b1d3a3bb1afbb9 Author: Mart Raudsepp <leio@gentoo.org> AuthorDate: 2023-12-25 15:39:39 +0000 Commit: Mart Raudsepp <leio@gentoo.org> CommitDate: 2023-12-25 17:13:58 +0000 x11-wm/mutter: fix USE=-wayland build; add various upstream fixes Upstream patchset up to current state of stable branch most notably includes: * fixes compatibility with xdg-desktop-portal-gnome-45.1 * some important NVIDIA EGLStream fix when that ends up used (with e.g. MUTTER_DEBUG_FORCE_EGL_STREAM=1) * window size and related fixes when moving fullscreen window across differently sized monitors * fixes handling of relative mode for tablet * improvements for desktop icons extension purposes * much more Closes: https://bugs.gentoo.org/914571 Signed-off-by: Mart Raudsepp <leio@gentoo.org> x11-wm/mutter/Manifest | 1 + x11-wm/mutter/files/45.2-fix-X-only.patch | 48 ++++++ x11-wm/mutter/mutter-45.2-r1.ebuild | 239 ++++++++++++++++++++++++++++++ 3 files changed, 288 insertions(+)