+++ /dev/null
---- mutter-40.0/meson.build.orig 2021-04-04 18:15:31.375227070 +0200
-+++ mutter-40.0/meson.build 2021-04-04 18:55:31.768889688 +0200
-@@ -426,20 +426,17 @@
-
- # For Xwayland -initfd usage
- use_initfd = get_option('xwayland_initfd')
-- if xwayland_dep.found()
-- xwayland_supports_initfd = xwayland_dep.get_pkgconfig_variable('have_initfd') == 'true'
-- else
-- xwayland_options = run_command(xwayland_path, '-help')
-- xwayland_supports_initfd = xwayland_options.stderr().contains('-initfd')
-- endif
--
- if use_initfd.auto()
-+ if xwayland_dep.found()
-+ xwayland_supports_initfd = xwayland_dep.get_pkgconfig_variable('have_initfd') == 'true'
-+ else
-+ xwayland_options = run_command(xwayland_path, '-help')
-+ xwayland_supports_initfd = xwayland_options.stderr().contains('-initfd')
-+ endif
-+
- have_xwayland_initfd = xwayland_supports_initfd
- else
- have_xwayland_initfd = use_initfd.enabled()
-- if have_xwayland_initfd and not xwayland_supports_initfd
-- error('XWayland -initfd support requested but not available')
-- endif
- endif
-
- if (have_xwayland_initfd)
-# TODO: use xorg-xserver-Xwayland-devel >= 21.1 instead of no-xwayland patch after finishing xorg-xserver-Xwayland.spec
#
# Conditional build
%bcond_with eglstream # Wayland EGLStream support
Group: X11/Window Managers
Source0: https://download.gnome.org/sources/mutter/40/%{name}-%{version}.tar.xz
# Source0-md5: 84beb760caa91baad7838260593e488a
-Patch0: %{name}-no-xwayland.patch
-Patch1: %{name}-deps.patch
+Patch0: %{name}-deps.patch
URL: https://gitlab.gnome.org/GNOME/mutter
BuildRequires: EGL-devel
BuildRequires: OpenGL-GLX-devel
BuildRequires: xorg-lib-libxkbcommon-devel >= 0.4.3
BuildRequires: xorg-lib-libxkbcommon-x11-devel >= 0.4.3
BuildRequires: xorg-lib-libxkbfile-devel
+BuildRequires: xorg-xserver-Xwayland-devel >= 21.1
BuildRequires: xz
Requires(post,postun): glib2 >= 1:2.67.3
Requires: %{name}-libs = %{version}-%{release}
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
%build
%meson build \
-Dprofiler=%{__true_false sysprof} \
%{!?with_pipewire:-Dremote_desktop=false} \
-Dtests=%{__true_false tests} \
- -Dxwayland_initfd=disabled \
-Dxwayland_path=/usr/bin/Xwayland
%ninja_build -C build