Diff mutter-49.7 with a mutter-50.5

/usr/portage/x11-wm/mutter/mutter-50.5.ebuild 2026-10-13 20:03:07.331912612 +0300
14 14
	inherit git-r3
15 15
	EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/mutter.git"
16 16
	SRC_URI=""
17
	SLOT="0/17" # This can get easily out of date, but better than 9967
17
	SLOT="0/18" # This can get easily out of date, but better than 9967
18 18
else
19
	KEYWORDS="amd64 ~arm arm64 ~riscv x86"
19
	KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
20 20
	# 0/libmutter_api_version - ONLY gnome-shell or anything using mutter-clutter-<api_version>.pc
21 21
	# should use the subslot
22 22
	SLOT="0/$(($(ver_cut 1) - 32))"
23 23
fi
24 24

  
25 25
IUSE="bash-completion debug devkit elogind gnome gtk-doc input_devices_wacom +introspection
26
screencast selinux sysprof systemd test udev +wayland X +xwayland video_cards_nvidia"
26
screencast selinux sysprof systemd test video_cards_nvidia +xwayland"
27 27

  
28
# native backend requires gles3 for hybrid graphics blitting support, udev and a logind provider
28
# native backend requires a logind provider
29 29
REQUIRED_USE="
30
	|| ( X wayland )
31
	devkit? ( screencast wayland )
30
	devkit? ( screencast )
32 31
	gtk-doc? ( introspection )
33
	wayland? ( ^^ ( elogind systemd ) udev )
34
	test? ( screencast wayland )
32
	^^ ( elogind systemd )
33
	test? ( screencast )
35 34
"
36 35
RESTRICT="!test? ( test )"
37 36

  
......
47 46
RDEPEND="
48 47
	>=media-libs/graphene-1.10.2[introspection?]
49 48
	>=x11-libs/pango-1.46[introspection?]
50
	>=x11-libs/cairo-1.14[X]
49
	>=x11-libs/cairo-1.14
51 50
	>=x11-libs/pixman-0.42
52 51
	>=gui-libs/gtk-4.14.0:4[introspection?]
53 52
	>=dev-libs/fribidi-1.0.0
54 53
	>=gnome-base/gsettings-desktop-schemas-47_beta[introspection?]
55 54
	>=dev-libs/glib-2.81.1:2
56 55
	gnome-base/gnome-settings-daemon
57
	>=x11-libs/libxkbcommon-1.8.0[X?]
56
	>=x11-libs/libxkbcommon-1.8.0
58 57
	>=app-accessibility/at-spi2-core-2.46:2[introspection?]
59 58
	sys-apps/dbus
60 59
	>=x11-misc/colord-1.4.5:=
......
74 73
	media-libs/libglvnd
75 74

  
76 75
	>=dev-libs/wayland-1.24.0
77
	wayland? (
78
		>=dev-libs/wayland-protocols-1.45
76
	>=dev-libs/wayland-protocols-1.47
79 77

  
80
		>=x11-libs/libdrm-2.4.118
81
		media-libs/mesa[gbm(+)]
82
		>=dev-libs/libinput-1.27.0:=
83

  
84
		elogind? ( sys-auth/elogind )
85
		xwayland? ( >=x11-base/xwayland-23.2.1[libei(+)] )
86
		video_cards_nvidia? ( gui-libs/egl-wayland )
87
	)
88
	udev? (
89
		>=virtual/libudev-232-r1:=
90
		>=dev-libs/libgudev-238
91
	)
78
	>=x11-libs/libdrm-2.4.118
79
	media-libs/mesa[gbm(+)]
80
	>=dev-libs/libinput-1.30.0:=
81

  
82
	elogind? ( sys-auth/elogind )
83
	xwayland? ( >=x11-base/xwayland-23.2.1[libei(+)] )
84
	video_cards_nvidia? ( gui-libs/egl-wayland )
85
	>=virtual/libudev-232-r1:=
86
	>=dev-libs/libgudev-238
92 87
	systemd? ( sys-apps/systemd )
93 88
	input_devices_wacom? ( >=dev-libs/libwacom-0.13:= )
94
	screencast? ( >=media-video/pipewire-1.2.7:= )
89
	screencast? ( >=media-video/pipewire-1.6.0:= )
95 90
	introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
96 91
	test? (
97 92
		>=x11-libs/gtk+-3.19.8:3[X,introspection?]
......
119 114
"
120 115

  
121 116
RDEPEND+="
122
	X? (
117
	xwayland? (
123 118
		${X11_CLIENT_DEPS}
124
		x11-libs/libxkbfile
125
		x11-libs/libXtst
126 119
	)
127
	wayland? ( xwayland? ( ${X11_CLIENT_DEPS} ) )
128 120
"
129 121
DEPEND="${RDEPEND}
130 122
	x11-base/xorg-proto
......
146 138
			>=dev-python/python-dbusmock-0.28[${PYTHON_USEDEP}]
147 139
		')
148 140
		app-text/docbook-xml-dtd:4.5
149
		X? (
150
			gnome-extra/zenity
151
			x11-misc/xvfb-run
152
		)
153
	)
154
	wayland? (
155
		>=sys-kernel/linux-headers-4.4
156
		x11-libs/libxcvt
157 141
	)
142
	>=sys-kernel/linux-headers-4.4
143
	x11-libs/libxcvt
158 144
	bash-completion? (
159 145
		app-shells/bash-completion
160 146
		${PYTHON_DEPS}
......
165 151
"
166 152

  
167 153
PATCHES=(
168
	"${FILESDIR}"/mutter-49.7-pango-1.58.2.patch
154
	"${FILESDIR}"/mutter-50.3-meta-wayland-touch.patch
169 155
)
170 156

  
171 157
python_check_deps() {
......
180 166
src_configure() {
181 167
	use debug && EMESON_BUILDTYPE=debug
182 168
	local emesonargs=(
183
		# Mutter X11 renderer only supports gles2 and GLX, thus do NOT pass
184
		#
185
		#   -Dopengl_libname=libOpenGL.so.0
186
		#
187
		# while we build the x11 renderer, as we currently enable gles2 only
188
		# with USE=wayland and x11 renderer wouldn't find the needed GLX symbols
189
		# in a configuration where wayland is disabled, as libOpenGL doesn't
190
		# include them.
191
		#
192
		# See
193
		# - https://bugs.gentoo.org/835786
194
		# - https://forums.gentoo.org/viewtopic-p-8695669.html
195

  
196
		-Dopengl=true
197
		$(meson_use wayland gles2)
198
		#gles2_libname
199 169
		-Degl=true
200
		$(meson_use X glx)
201
		$(meson_use wayland)
202 170
		-Dfonts=true
203
	)
204

  
205
	if use wayland; then
206
		emesonargs+=(
207
			$(meson_use xwayland)
208
		)
209
	else
210
		emesonargs+=(
211
			-Dxwayland=false
212
		)
213
	fi
214

  
215
	if use elogind || use systemd; then
216
		emesonargs+=(
217
			-Dlogind=true
218
		)
219
	fi
220

  
221
	emesonargs+=(
222
		$(meson_use wayland native_backend)
171
		-Dnative_backend=true
172
		-Dopengl=true
223 173
		$(meson_use screencast remote_desktop)
224 174
		$(meson_use gnome libgnome_desktop)
225
		$(meson_use udev)
175
		-Dudev=true
226 176
		-Dudev_dir=$(get_udevdir)
227 177
		$(meson_use input_devices_wacom libwacom)
228 178
		-Dsound_player=true
......
238 188
		-Dtty_tests=false
239 189
		$(meson_use sysprof profiler)
240 190
		-Dinstalled_tests=false
241
		$(meson_use X x11)
191
		$(meson_use xwayland)
242 192
		$(meson_use bash-completion bash_completion)
243 193

  
244 194
		#verbose # Let upstream choose default for verbose mode
......
248 198
		#xwayland_grab_default_access_rules
249 199
	)
250 200

  
251
	if use wayland && use video_cards_nvidia; then
201
	if use elogind || use systemd; then
202
		emesonargs+=(
203
			-Dlogind=true
204
		)
205
	fi
206

  
207
	if use video_cards_nvidia; then
252 208
		emesonargs+=(
253 209
			-Degl_device=true
254 210
			-Dwayland_eglstream=true
......
272 228
}
273 229

  
274 230
pkg_postinst() {
275
	use udev && udev_reload
231
	udev_reload
276 232
	xdg_pkg_postinst
277 233
	gnome2_schemas_update
278 234
}
279 235

  
280 236
pkg_postrm() {
281
	use udev && udev_reload
237
	udev_reload
282 238
	xdg_pkg_postrm
283 239
	gnome2_schemas_update
284 240
}
Thank you!