1 |
commit: ae47f3cbcab490acce0b539a250d76ac6d9c7588 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 3 04:00:30 2023 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 3 14:07:56 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae47f3cb |
7 |
|
8 |
x11-wm/mutter: Drop old versions |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
x11-wm/mutter/Manifest | 2 - |
13 |
.../mutter-42.0-Disable-anonymous-file-test.patch | 30 --- |
14 |
...d-native-Don-t-warn-on-EACCES-if-headless.patch | 79 -------- |
15 |
x11-wm/mutter/mutter-42.5.ebuild | 190 ------------------- |
16 |
x11-wm/mutter/mutter-43.1.ebuild | 206 --------------------- |
17 |
5 files changed, 507 deletions(-) |
18 |
|
19 |
diff --git a/x11-wm/mutter/Manifest b/x11-wm/mutter/Manifest |
20 |
index 3453a13f8a7c..1cb303dcd3ae 100644 |
21 |
--- a/x11-wm/mutter/Manifest |
22 |
+++ b/x11-wm/mutter/Manifest |
23 |
@@ -1,3 +1 @@ |
24 |
-DIST mutter-42.5.tar.xz 2743636 BLAKE2B 87ee26ccee6c21404ac069e7b35d2b93ef38d0eda0963107c08a72599915fba56a653968fe456afa42f4eeb28aed5526d23d344f7e1f9f4fdf9cf35b5a66fca5 SHA512 cd7ef29211a1568f5f8d43182da6569db22005c0b67204a300edb4952d9c18f73def1558843a009a7475a82d7ce9754bd8741b214a931764798dbeaaecbbec49 |
25 |
-DIST mutter-43.1.tar.xz 2779416 BLAKE2B 1b7bf1ec44f6e47a859e84adb93a869be261ef3699ab773014e1497ea6c944e91d7a1766a2f126c79c1b21ba78e1ba25314c32113bc194f580d847e8617ae0d3 SHA512 6553ee855ebb3bb88bc12f823a5813c6b1b6ff983f1af716521b5e04903bc30112954e3e5d781516b087e247088cced1f560fce54eac28207a6cbc61d78b05b7 |
26 |
DIST mutter-43.2.tar.xz 2781032 BLAKE2B cb4fc05ae9b53029649e9c80c8ce450d383a41f142ff1000bca6f9c1ddc707897511b5b54e8e28b4d263d19cffdfa699cef034d667cd8f166f8274c0f237d41a SHA512 ae6afccdf6af99197072afabf0900e1a72f38acfa6c4d039e8db03d21e89513f8828f29eb292ca9dfdec64388dcc4a93db64139e3af66706aaac81461b5da96d |
27 |
|
28 |
diff --git a/x11-wm/mutter/files/mutter-42.0-Disable-anonymous-file-test.patch b/x11-wm/mutter/files/mutter-42.0-Disable-anonymous-file-test.patch |
29 |
deleted file mode 100644 |
30 |
index d0e07840d46e..000000000000 |
31 |
--- a/x11-wm/mutter/files/mutter-42.0-Disable-anonymous-file-test.patch |
32 |
+++ /dev/null |
33 |
@@ -1,30 +0,0 @@ |
34 |
-From 8cb699dc59c64dc9f58873b3bbe2d17c3a08d2f9 Mon Sep 17 00:00:00 2001 |
35 |
-From: Matt Turner <mattst88@×××××.com> |
36 |
-Date: Fri, 18 Mar 2022 17:40:52 -0700 |
37 |
-Subject: [PATCH] Disable anonymous-file test |
38 |
- |
39 |
-It attempts to open /proc/self/fd/* (an fd created by memfd_create), |
40 |
-which sandbox disallows. |
41 |
---- |
42 |
- src/tests/meson.build | 5 ----- |
43 |
- 1 file changed, 5 deletions(-) |
44 |
- |
45 |
-diff --git a/src/tests/meson.build b/src/tests/meson.build |
46 |
-index a19703288..50027d1f8 100644 |
47 |
---- a/src/tests/meson.build |
48 |
-+++ b/src/tests/meson.build |
49 |
-@@ -180,11 +180,6 @@ test_cases += [ |
50 |
- 'suite': 'compositor', |
51 |
- 'sources': [ 'stage-view-tests.c', ], |
52 |
- }, |
53 |
-- { |
54 |
-- 'name': 'anonymous-file', |
55 |
-- 'suite': 'unit', |
56 |
-- 'sources': [ 'anonymous-file.c', ], |
57 |
-- }, |
58 |
- ] |
59 |
- |
60 |
- if have_native_tests |
61 |
--- |
62 |
-2.34.1 |
63 |
- |
64 |
|
65 |
diff --git a/x11-wm/mutter/files/mutter-42.4-backend-native-Don-t-warn-on-EACCES-if-headless.patch b/x11-wm/mutter/files/mutter-42.4-backend-native-Don-t-warn-on-EACCES-if-headless.patch |
66 |
deleted file mode 100644 |
67 |
index 98b58d3dfeff..000000000000 |
68 |
--- a/x11-wm/mutter/files/mutter-42.4-backend-native-Don-t-warn-on-EACCES-if-headless.patch |
69 |
+++ /dev/null |
70 |
@@ -1,79 +0,0 @@ |
71 |
-From db854a8588c1164df2f54c5718930aadf353b948 Mon Sep 17 00:00:00 2001 |
72 |
-From: Simon McVittie <smcv@××××××.org> |
73 |
-Date: Thu, 18 Aug 2022 10:41:01 +0100 |
74 |
-Subject: [PATCH] backend/native: Don't warn on EACCES if headless |
75 |
- |
76 |
-Since commit 1bf70334 "tests/runner: Make test runner use the headless |
77 |
-backend", tests are run with the native backend in headless mode, which |
78 |
-will attempt to open each GPU and show a warning (fatal during tests) |
79 |
-if it cannot. |
80 |
- |
81 |
-However, in headless mode we might not be logged in on any seat (for |
82 |
-example we might be logged in via ssh instead), which means we might |
83 |
-legitimately not have permission to use any GPUs, even if they exist. |
84 |
-Downgrade the warning to a debug message in this case. |
85 |
- |
86 |
-Resolves: https://gitlab.gnome.org/GNOME/mutter/-/issues/2381 |
87 |
-Signed-off-by: Simon McVittie <smcv@××××××.org> |
88 |
-Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2584> |
89 |
-(cherry picked from commit 64a67aa00bfe54fe7219d7f581950897fcbf9a75) |
90 |
---- |
91 |
- src/backends/native/meta-backend-native.c | 35 +++++++++++++++++++---- |
92 |
- 1 file changed, 30 insertions(+), 5 deletions(-) |
93 |
- |
94 |
-diff --git a/src/backends/native/meta-backend-native.c b/src/backends/native/meta-backend-native.c |
95 |
-index 224538787..a2babb4b0 100644 |
96 |
---- a/src/backends/native/meta-backend-native.c |
97 |
-+++ b/src/backends/native/meta-backend-native.c |
98 |
-@@ -514,8 +514,20 @@ on_udev_device_added (MetaUdev *udev, |
99 |
- new_gpu_kms = create_gpu_from_udev_device (native, device, &error); |
100 |
- if (!new_gpu_kms) |
101 |
- { |
102 |
-- g_warning ("Failed to hotplug secondary gpu '%s': %s", |
103 |
-- device_path, error->message); |
104 |
-+ if (meta_backend_is_headless (backend) && |
105 |
-+ g_error_matches (error, G_IO_ERROR, |
106 |
-+ G_IO_ERROR_PERMISSION_DENIED)) |
107 |
-+ { |
108 |
-+ meta_topic (META_DEBUG_BACKEND, |
109 |
-+ "Ignoring unavailable secondary gpu '%s': %s", |
110 |
-+ device_path, error->message); |
111 |
-+ } |
112 |
-+ else |
113 |
-+ { |
114 |
-+ g_warning ("Failed to hotplug secondary gpu '%s': %s", |
115 |
-+ device_path, error->message); |
116 |
-+ } |
117 |
-+ |
118 |
- return; |
119 |
- } |
120 |
- |
121 |
-@@ -552,9 +564,22 @@ init_gpus (MetaBackendNative *native, |
122 |
- |
123 |
- if (!gpu_kms) |
124 |
- { |
125 |
-- g_warning ("Failed to open gpu '%s': %s", |
126 |
-- g_udev_device_get_device_file (device), |
127 |
-- local_error->message); |
128 |
-+ if (meta_backend_is_headless (backend) && |
129 |
-+ g_error_matches (local_error, G_IO_ERROR, |
130 |
-+ G_IO_ERROR_PERMISSION_DENIED)) |
131 |
-+ { |
132 |
-+ meta_topic (META_DEBUG_BACKEND, |
133 |
-+ "Ignoring unavailable gpu '%s': %s'", |
134 |
-+ g_udev_device_get_device_file (device), |
135 |
-+ local_error->message); |
136 |
-+ } |
137 |
-+ else |
138 |
-+ { |
139 |
-+ g_warning ("Failed to open gpu '%s': %s", |
140 |
-+ g_udev_device_get_device_file (device), |
141 |
-+ local_error->message); |
142 |
-+ } |
143 |
-+ |
144 |
- g_clear_error (&local_error); |
145 |
- continue; |
146 |
- } |
147 |
--- |
148 |
-2.35.1 |
149 |
- |
150 |
|
151 |
diff --git a/x11-wm/mutter/mutter-42.5.ebuild b/x11-wm/mutter/mutter-42.5.ebuild |
152 |
deleted file mode 100644 |
153 |
index 4ded64a18383..000000000000 |
154 |
--- a/x11-wm/mutter/mutter-42.5.ebuild |
155 |
+++ /dev/null |
156 |
@@ -1,190 +0,0 @@ |
157 |
-# Copyright 1999-2022 Gentoo Authors |
158 |
-# Distributed under the terms of the GNU General Public License v2 |
159 |
- |
160 |
-EAPI=8 |
161 |
-PYTHON_COMPAT=( python3_{8..11} ) |
162 |
-inherit gnome.org gnome2-utils meson python-any-r1 udev xdg |
163 |
- |
164 |
-DESCRIPTION="GNOME compositing window manager based on Clutter" |
165 |
-HOMEPAGE="https://gitlab.gnome.org/GNOME/mutter/" |
166 |
- |
167 |
-LICENSE="GPL-2+" |
168 |
-SLOT="0/$(($(ver_cut 1) - 32))" # 0/libmutter_api_version - ONLY gnome-shell (or anything using mutter-clutter-<api_version>.pc) should use the subslot |
169 |
- |
170 |
-IUSE="doc elogind gnome input_devices_wacom +introspection screencast sysprof systemd test udev wayland video_cards_nvidia" |
171 |
-# native backend requires gles3 for hybrid graphics blitting support, udev and a logind provider |
172 |
-REQUIRED_USE=" |
173 |
- wayland? ( ^^ ( elogind systemd ) udev ) |
174 |
- test? ( wayland )" |
175 |
-RESTRICT="!test? ( test )" |
176 |
- |
177 |
-KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86" |
178 |
- |
179 |
-# gnome-settings-daemon is build checked, but used at runtime only for org.gnome.settings-daemon.peripherals.keyboard gschema |
180 |
-# xorg-server is needed at build and runtime with USE=wayland for Xwayland |
181 |
-# v3.32.2 has many excessive or unused *_req variables declared, thus currently the dep order ignores those and goes via dependency() call order |
182 |
-DEPEND=" |
183 |
- >=x11-libs/libX11-1.7.0 |
184 |
- >=media-libs/graphene-1.10.2[introspection?] |
185 |
- >=x11-libs/gtk+-3.19.8:3[X,introspection?] |
186 |
- x11-libs/gdk-pixbuf:2 |
187 |
- >=x11-libs/pango-1.46[introspection?] |
188 |
- >=dev-libs/fribidi-1.0.0 |
189 |
- >=x11-libs/cairo-1.14[X] |
190 |
- >=gnome-base/gsettings-desktop-schemas-42.0[introspection?] |
191 |
- >=dev-libs/glib-2.69.0:2 |
192 |
- gnome-base/gnome-settings-daemon |
193 |
- >=dev-libs/json-glib-0.12.0[introspection?] |
194 |
- >=x11-libs/libXcomposite-0.4 |
195 |
- x11-libs/libXcursor |
196 |
- x11-libs/libXdamage |
197 |
- x11-libs/libXext |
198 |
- >=x11-libs/libXfixes-3 |
199 |
- >=x11-libs/libXi-1.7.4 |
200 |
- x11-libs/libXtst |
201 |
- x11-libs/libxkbfile |
202 |
- x11-misc/xkeyboard-config |
203 |
- >=x11-libs/libxkbcommon-0.4.3[X] |
204 |
- x11-libs/libXrender |
205 |
- >=x11-libs/libXrandr-1.5.0 |
206 |
- x11-libs/libxcb:= |
207 |
- x11-libs/libXinerama |
208 |
- x11-libs/libXau |
209 |
- x11-libs/libICE |
210 |
- >=dev-libs/atk-2.5.3[introspection?] |
211 |
- >=media-libs/libcanberra-0.26 |
212 |
- sys-apps/dbus |
213 |
- gnome? ( gnome-base/gnome-desktop:3= ) |
214 |
- media-libs/mesa[X(+),egl(+)] |
215 |
- sysprof? ( >=dev-util/sysprof-capture-3.40.1:4 ) |
216 |
- systemd? ( sys-apps/systemd ) |
217 |
- wayland? ( |
218 |
- >=dev-libs/wayland-protocols-1.21 |
219 |
- >=dev-libs/wayland-1.18.0 |
220 |
- x11-libs/libdrm |
221 |
- >=media-libs/mesa-17.3[egl(+),gbm(+),wayland,gles2] |
222 |
- >=dev-libs/libinput-1.18.0:= |
223 |
- elogind? ( sys-auth/elogind ) |
224 |
- x11-base/xwayland |
225 |
- video_cards_nvidia? ( gui-libs/egl-wayland ) |
226 |
- ) |
227 |
- udev? ( >=dev-libs/libgudev-232 |
228 |
- >=virtual/libudev-232-r1:= |
229 |
- ) |
230 |
- x11-libs/libSM |
231 |
- input_devices_wacom? ( >=dev-libs/libwacom-0.13:= ) |
232 |
- >=x11-libs/startup-notification-0.7 |
233 |
- screencast? ( >=media-video/pipewire-0.3.21:= ) |
234 |
- introspection? ( >=dev-libs/gobject-introspection-1.54:= ) |
235 |
- doc? ( >=dev-util/gi-docgen-2021.1 ) |
236 |
-" |
237 |
-RDEPEND="${DEPEND} |
238 |
- gnome-extra/zenity |
239 |
- |
240 |
- !<gui-libs/gtk-4.6.4:4 |
241 |
- !<x11-libs/gtk+-3.24.34:3 |
242 |
-" |
243 |
-DEPEND="${DEPEND} |
244 |
- x11-base/xorg-proto |
245 |
- sysprof? ( >=dev-util/sysprof-common-3.38.0 ) |
246 |
-" |
247 |
-BDEPEND=" |
248 |
- dev-util/wayland-scanner |
249 |
- dev-util/gdbus-codegen |
250 |
- dev-util/glib-utils |
251 |
- >=sys-devel/gettext-0.19.8 |
252 |
- virtual/pkgconfig |
253 |
- test? ( |
254 |
- ${PYTHON_DEPS} |
255 |
- $(python_gen_any_dep ' |
256 |
- dev-python/python-dbusmock[${PYTHON_USEDEP}] |
257 |
- ') |
258 |
- app-text/docbook-xml-dtd:4.5 |
259 |
- x11-misc/xvfb-run |
260 |
- ) |
261 |
- wayland? ( |
262 |
- >=sys-kernel/linux-headers-4.4 |
263 |
- x11-libs/libxcvt |
264 |
- ) |
265 |
-" |
266 |
- |
267 |
-PATCHES=( |
268 |
- "${FILESDIR}"/${PN}-42.0-Disable-anonymous-file-test.patch |
269 |
- "${FILESDIR}"/${PN}-42.4-backend-native-Don-t-warn-on-EACCES-if-headless.patch |
270 |
-) |
271 |
- |
272 |
-python_check_deps() { |
273 |
- if use test; then |
274 |
- python_has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]" |
275 |
- fi |
276 |
-} |
277 |
- |
278 |
-src_configure() { |
279 |
- # TODO: Replicate debug vs release meson build type behaviour under our buildtype=plain |
280 |
- local emesonargs=( |
281 |
- -Dopengl=true |
282 |
- #opengl_libname |
283 |
- #gles2_libname |
284 |
- $(meson_use wayland gles2) |
285 |
- -Degl=true |
286 |
- -Dglx=true |
287 |
- $(meson_use wayland) |
288 |
- $(meson_use systemd) |
289 |
- $(meson_use wayland native_backend) |
290 |
- $(meson_use screencast remote_desktop) |
291 |
- -Dlibgnome_desktop=true |
292 |
- $(meson_use udev) |
293 |
- -Dudev_dir=$(get_udevdir) |
294 |
- $(meson_use input_devices_wacom libwacom) |
295 |
- -Dpango_ft2=true |
296 |
- -Dstartup_notification=true |
297 |
- -Dsm=true |
298 |
- $(meson_use introspection) |
299 |
- $(meson_use doc docs) |
300 |
- $(meson_use test cogl_tests) |
301 |
- $(meson_use wayland core_tests) # core tests require wayland; overall -Dtests option is honored on top, so no extra conditional needed |
302 |
- -Dnative_tests=false |
303 |
- $(meson_use test clutter_tests) |
304 |
- $(meson_use test tests) |
305 |
- -Dkvm_tests=false |
306 |
- -Dtty_tests=false |
307 |
- $(meson_use sysprof profiler) |
308 |
- -Dinstalled_tests=false |
309 |
- #verbose # Let upstream choose default for verbose mode |
310 |
- #xwayland_path |
311 |
- # TODO: relies on default settings, but in Gentoo we might have some more packages we want to give Xgrab access (mostly virtual managers and remote desktops) |
312 |
- #xwayland_grab_default_access_rules |
313 |
- ) |
314 |
- |
315 |
- if use wayland && use video_cards_nvidia; then |
316 |
- emesonargs+=( |
317 |
- -Degl_device=true |
318 |
- -Dwayland_eglstream=true |
319 |
- ) |
320 |
- else |
321 |
- emesonargs+=( |
322 |
- -Degl_device=false |
323 |
- -Dwayland_eglstream=false |
324 |
- ) |
325 |
- fi |
326 |
- |
327 |
- meson_src_configure |
328 |
-} |
329 |
- |
330 |
-src_test() { |
331 |
- gnome2_environment_reset # Avoid dconf that looks at XDG_DATA_DIRS, which can sandbox fail if flatpak is installed |
332 |
- glib-compile-schemas "${BUILD_DIR}"/data |
333 |
- GSETTINGS_SCHEMA_DIR="${BUILD_DIR}"/data meson_src_test --setup=CI |
334 |
-} |
335 |
- |
336 |
-pkg_postinst() { |
337 |
- use udev && udev_reload |
338 |
- xdg_pkg_postinst |
339 |
- gnome2_schemas_update |
340 |
-} |
341 |
- |
342 |
-pkg_postrm() { |
343 |
- use udev && udev_reload |
344 |
- xdg_pkg_postrm |
345 |
- gnome2_schemas_update |
346 |
-} |
347 |
|
348 |
diff --git a/x11-wm/mutter/mutter-43.1.ebuild b/x11-wm/mutter/mutter-43.1.ebuild |
349 |
deleted file mode 100644 |
350 |
index 7da49c14e5e5..000000000000 |
351 |
--- a/x11-wm/mutter/mutter-43.1.ebuild |
352 |
+++ /dev/null |
353 |
@@ -1,206 +0,0 @@ |
354 |
-# Copyright 1999-2022 Gentoo Authors |
355 |
-# Distributed under the terms of the GNU General Public License v2 |
356 |
- |
357 |
-EAPI=8 |
358 |
-PYTHON_COMPAT=( python3_{8..11} ) |
359 |
-inherit gnome.org gnome2-utils meson python-any-r1 udev xdg |
360 |
- |
361 |
-DESCRIPTION="GNOME compositing window manager based on Clutter" |
362 |
-HOMEPAGE="https://gitlab.gnome.org/GNOME/mutter/" |
363 |
- |
364 |
-LICENSE="GPL-2+" |
365 |
-SLOT="0/$(($(ver_cut 1) - 32))" # 0/libmutter_api_version - ONLY gnome-shell (or anything using mutter-clutter-<api_version>.pc) should use the subslot |
366 |
- |
367 |
-IUSE="doc elogind gnome input_devices_wacom +introspection screencast sysprof systemd test udev wayland video_cards_nvidia" |
368 |
-# native backend requires gles3 for hybrid graphics blitting support, udev and a logind provider |
369 |
-REQUIRED_USE=" |
370 |
- wayland? ( ^^ ( elogind systemd ) udev ) |
371 |
- test? ( wayland )" |
372 |
-RESTRICT="!test? ( test )" |
373 |
- |
374 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
375 |
- |
376 |
-# gnome-settings-daemon is build checked, but used at runtime only for org.gnome.settings-daemon.peripherals.keyboard gschema |
377 |
-# xorg-server is needed at build and runtime with USE=wayland for Xwayland |
378 |
-# v3.32.2 has many excessive or unused *_req variables declared, thus currently the dep order ignores those and goes via dependency() call order |
379 |
-DEPEND=" |
380 |
- >=media-libs/lcms-2.6:2 |
381 |
- >=x11-misc/colord-1.4.5:= |
382 |
- >=x11-libs/libX11-1.7.0 |
383 |
- >=media-libs/graphene-1.10.2[introspection?] |
384 |
- >=x11-libs/gtk+-3.19.8:3[X,introspection?] |
385 |
- x11-libs/gdk-pixbuf:2 |
386 |
- >=x11-libs/pango-1.46[introspection?] |
387 |
- >=dev-libs/fribidi-1.0.0 |
388 |
- >=x11-libs/cairo-1.14[X] |
389 |
- >=gnome-base/gsettings-desktop-schemas-42.0[introspection?] |
390 |
- >=dev-libs/glib-2.69.0:2 |
391 |
- gnome-base/gnome-settings-daemon |
392 |
- >=dev-libs/json-glib-0.12.0[introspection?] |
393 |
- >=x11-libs/libxkbcommon-0.4.3 |
394 |
- x11-libs/libICE |
395 |
- >=app-accessibility/at-spi2-core-2.46:2[introspection?] |
396 |
- >=media-libs/libcanberra-0.26 |
397 |
- sys-apps/dbus |
398 |
- gnome? ( gnome-base/gnome-desktop:3= ) |
399 |
- media-libs/libglvnd[X] |
400 |
- sysprof? ( >=dev-util/sysprof-capture-3.40.1:4 ) |
401 |
- systemd? ( sys-apps/systemd ) |
402 |
- wayland? ( |
403 |
- >=dev-libs/wayland-protocols-1.26 |
404 |
- >=dev-libs/wayland-1.21.0 |
405 |
- x11-libs/libdrm |
406 |
- >=media-libs/mesa-21.3[egl(+),gbm(+),wayland,gles2] |
407 |
- >=dev-libs/libinput-1.18.0:= |
408 |
- elogind? ( sys-auth/elogind ) |
409 |
- x11-base/xwayland |
410 |
- video_cards_nvidia? ( gui-libs/egl-wayland ) |
411 |
- ) |
412 |
- udev? ( >=dev-libs/libgudev-232 |
413 |
- >=virtual/libudev-232-r1:= |
414 |
- ) |
415 |
- x11-libs/libSM |
416 |
- input_devices_wacom? ( >=dev-libs/libwacom-0.13:= ) |
417 |
- >=x11-libs/startup-notification-0.7 |
418 |
- screencast? ( >=media-video/pipewire-0.3.21:= ) |
419 |
- introspection? ( >=dev-libs/gobject-introspection-1.54:= ) |
420 |
- doc? ( >=dev-util/gi-docgen-2021.1 ) |
421 |
-" |
422 |
-# for now upstream has "have_x11 = true" in the meson.build, but sooner or later upstream is going to make X optional. |
423 |
-# X? ( |
424 |
-DEPEND+=" |
425 |
- >=x11-libs/libXcomposite-0.4 |
426 |
- x11-libs/libXcursor |
427 |
- x11-libs/libXdamage |
428 |
- x11-libs/libXext |
429 |
- >=x11-libs/libXfixes-3 |
430 |
- >=x11-libs/libXi-1.7.4 |
431 |
- x11-libs/libXtst |
432 |
- x11-libs/libxkbfile |
433 |
- x11-misc/xkeyboard-config |
434 |
- >=x11-libs/libxkbcommon-0.4.3[X] |
435 |
- x11-libs/libXrender |
436 |
- >=x11-libs/libXrandr-1.5.0 |
437 |
- x11-libs/libxcb:= |
438 |
- x11-libs/libXinerama |
439 |
- x11-libs/libXau |
440 |
-" |
441 |
-# )" |
442 |
- |
443 |
-RDEPEND="${DEPEND} |
444 |
- gnome-extra/zenity |
445 |
- |
446 |
- !<gui-libs/gtk-4.6.4:4 |
447 |
- !<x11-libs/gtk+-3.24.34:3 |
448 |
-" |
449 |
-DEPEND="${DEPEND} |
450 |
- x11-base/xorg-proto |
451 |
- sysprof? ( >=dev-util/sysprof-common-3.38.0 ) |
452 |
-" |
453 |
-BDEPEND=" |
454 |
- dev-util/wayland-scanner |
455 |
- dev-util/gdbus-codegen |
456 |
- dev-util/glib-utils |
457 |
- >=sys-devel/gettext-0.19.8 |
458 |
- virtual/pkgconfig |
459 |
- test? ( |
460 |
- ${PYTHON_DEPS} |
461 |
- $(python_gen_any_dep ' |
462 |
- >=dev-python/python-dbusmock-0.28[${PYTHON_USEDEP}] |
463 |
- ') |
464 |
- app-text/docbook-xml-dtd:4.5 |
465 |
- x11-misc/xvfb-run |
466 |
- ) |
467 |
- wayland? ( |
468 |
- >=sys-kernel/linux-headers-4.4 |
469 |
- x11-libs/libxcvt |
470 |
- ) |
471 |
-" |
472 |
- |
473 |
-PATCHES=( |
474 |
- "${FILESDIR}"/${PN}-43.0-Disable-anonymous-file-test.patch |
475 |
-) |
476 |
- |
477 |
-python_check_deps() { |
478 |
- if use test; then |
479 |
- python_has_version ">=dev-python/python-dbusmock-0.28[${PYTHON_USEDEP}]" |
480 |
- fi |
481 |
-} |
482 |
- |
483 |
-src_prepare() { |
484 |
- default |
485 |
- |
486 |
- sed -i -e "s:#!/usr/bin/bash:#!$(command -v bash):" src/tests/x11-test.sh || die |
487 |
-} |
488 |
- |
489 |
-src_configure() { |
490 |
- # TODO: Replicate debug vs release meson build type behaviour under our buildtype=plain |
491 |
- local emesonargs=( |
492 |
- -Dopengl=true |
493 |
- #opengl_libname |
494 |
- #gles2_libname |
495 |
- $(meson_use wayland gles2) |
496 |
- -Degl=true |
497 |
- -Dglx=true |
498 |
- $(meson_use wayland) |
499 |
- $(meson_use systemd) |
500 |
- $(meson_use wayland native_backend) |
501 |
- $(meson_use screencast remote_desktop) |
502 |
- -Dlibgnome_desktop=true |
503 |
- $(meson_use udev) |
504 |
- -Dudev_dir=$(get_udevdir) |
505 |
- $(meson_use input_devices_wacom libwacom) |
506 |
- -Dsound_player=true |
507 |
- -Dpango_ft2=true |
508 |
- -Dstartup_notification=true |
509 |
- -Dsm=true |
510 |
- $(meson_use introspection) |
511 |
- $(meson_use doc docs) |
512 |
- $(meson_use test cogl_tests) |
513 |
- $(meson_use wayland core_tests) # core tests require wayland; overall -Dtests option is honored on top, so no extra conditional needed |
514 |
- -Dnative_tests=false |
515 |
- $(meson_use test clutter_tests) |
516 |
- $(meson_use test tests) |
517 |
- -Dkvm_tests=false |
518 |
- -Dtty_tests=false |
519 |
- $(meson_use sysprof profiler) |
520 |
- -Dinstalled_tests=false |
521 |
- |
522 |
- #verbose # Let upstream choose default for verbose mode |
523 |
- #xwayland_path |
524 |
- # TODO: relies on default settings, but in Gentoo we might have some more packages we want to give Xgrab access (mostly virtual managers and remote desktops) |
525 |
- #xwayland_grab_default_access_rules |
526 |
- ) |
527 |
- |
528 |
- if use wayland && use video_cards_nvidia; then |
529 |
- emesonargs+=( |
530 |
- -Degl_device=true |
531 |
- -Dwayland_eglstream=true |
532 |
- ) |
533 |
- else |
534 |
- emesonargs+=( |
535 |
- -Degl_device=false |
536 |
- -Dwayland_eglstream=false |
537 |
- ) |
538 |
- fi |
539 |
- |
540 |
- meson_src_configure |
541 |
-} |
542 |
- |
543 |
-src_test() { |
544 |
- gnome2_environment_reset # Avoid dconf that looks at XDG_DATA_DIRS, which can sandbox fail if flatpak is installed |
545 |
- glib-compile-schemas "${BUILD_DIR}"/data |
546 |
- GSETTINGS_SCHEMA_DIR="${BUILD_DIR}"/data meson_src_test --setup=CI |
547 |
-} |
548 |
- |
549 |
-pkg_postinst() { |
550 |
- use udev && udev_reload |
551 |
- xdg_pkg_postinst |
552 |
- gnome2_schemas_update |
553 |
-} |
554 |
- |
555 |
-pkg_postrm() { |
556 |
- use udev && udev_reload |
557 |
- xdg_pkg_postrm |
558 |
- gnome2_schemas_update |
559 |
-} |