-
Notifications
You must be signed in to change notification settings - Fork 0
/
2702.patch
166 lines (142 loc) · 5.62 KB
/
2702.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
From c4f43b65ed4ffd4db98bf083ea5c7637194944ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <[email protected]>
Date: Sat, 19 Nov 2022 02:16:04 +0100
Subject: [PATCH 1/2] build: Replace deprecated meson functions
The `dep.get_<type>_variable()` methods have been deprecated in
favor of the generic `dep.get_variable()` method.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2702>
---
meson.build | 12 ++++++------
src/meson.build | 6 +++---
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/meson.build b/meson.build
index cbeb83ee50..66a2eb7962 100644
--- a/meson.build
+++ b/meson.build
@@ -224,7 +224,7 @@ if have_libgudev
udev_dir = get_option('udev_dir')
if udev_dir == ''
- udev_dir = udev_dep.get_pkgconfig_variable('udevdir')
+ udev_dir = udev_dep.get_variable('udevdir')
endif
endif
@@ -515,7 +515,7 @@ cdata.set('HAVE_INTROSPECTION', have_introspection)
cdata.set('HAVE_PROFILER', have_profiler)
if have_x11_client
- xkb_base = xkeyboard_config_dep.get_pkgconfig_variable('xkb_base')
+ xkb_base = xkeyboard_config_dep.get_variable('xkb_base')
cdata.set_quoted('XKB_BASE', xkb_base)
endif
@@ -532,7 +532,7 @@ if have_xwayland
xwayland_path = get_option('xwayland_path')
if xwayland_path == ''
if xwayland_dep.found()
- xwayland_path = xwayland_dep.get_pkgconfig_variable('xwayland')
+ xwayland_path = xwayland_dep.get_variable('xwayland')
else
xwayland_path = find_program('Xwayland').path()
endif
@@ -551,7 +551,7 @@ if have_xwayland
# 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'
+ xwayland_supports_initfd = xwayland_dep.get_variable('have_initfd') == 'true'
else
xwayland_options = run_command(xwayland_path, '-help')
xwayland_supports_initfd = xwayland_options.stderr().contains('-initfd')
@@ -572,7 +572,7 @@ if have_xwayland
# For Xwayland -listenfd usage
if xwayland_dep.found()
- have_xwayland_listenfd = xwayland_dep.get_pkgconfig_variable('have_listenfd') == 'true'
+ have_xwayland_listenfd = xwayland_dep.get_variable('have_listenfd') == 'true'
endif
if (have_xwayland_listenfd)
@@ -581,7 +581,7 @@ if have_xwayland
# For Xwayland -listenfd usage
if xwayland_dep.found()
- have_xwayland_terminate_delay = xwayland_dep.get_pkgconfig_variable('have_terminate_delay') == 'true'
+ have_xwayland_terminate_delay = xwayland_dep.get_variable('have_terminate_delay') == 'true'
endif
if (have_xwayland_terminate_delay)
diff --git a/src/meson.build b/src/meson.build
index 6790efa161..063c06b02f 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -882,7 +882,7 @@ if have_profiler
]
if sysprof_dep.type_name() == 'pkgconfig'
- sysprof_dbus_interfaces_dir = join_paths(sysprof_dep.get_pkgconfig_variable('datadir'), 'dbus-1', 'interfaces')
+ sysprof_dbus_interfaces_dir = join_paths(sysprof_dep.get_variable('datadir'), 'dbus-1', 'interfaces')
else
sysprof_dbus_interfaces_dir = join_paths(mutter_srcdir, 'subprojects', 'sysprof', 'src')
endif
@@ -980,14 +980,14 @@ if have_wayland
['xwayland-keyboard-grab', 'unstable', 'v1', ],
]
if have_wayland_eglstream
- wayland_eglstream_protocols_dir = wayland_eglstream_protocols_dep.get_pkgconfig_variable('pkgdatadir')
+ wayland_eglstream_protocols_dir = wayland_eglstream_protocols_dep.get_variable('pkgdatadir')
wayland_protocols += [
['wayland-eglstream-controller', 'third-party', wayland_eglstream_protocols_dir],
]
endif
wayland_scanner = find_program('wayland-scanner')
- protocols_dir = wayland_protocols_dep.get_pkgconfig_variable('pkgdatadir')
+ protocols_dir = wayland_protocols_dep.get_variable('pkgdatadir')
assert(protocols_dir != '', 'Could not get pkgdatadir from wayland-protocols.pc')
foreach p: wayland_protocols
--
GitLab
From 770a72f4469adae6060922175fe92dc9d7eec5f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <[email protected]>
Date: Sat, 19 Nov 2022 01:51:27 +0100
Subject: [PATCH 2/2] build: Replace custom post-install script
Since meson 0.57, the gnome module includes a function we can
use instead.
https://gitlab.gnome.org/GNOME/mutter/-/issues/2518
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2702>
---
meson.build | 7 +++++--
meson/meson-postinstall.sh | 10 ----------
2 files changed, 5 insertions(+), 12 deletions(-)
delete mode 100755 meson/meson-postinstall.sh
diff --git a/meson.build b/meson.build
index 66a2eb7962..6a310376e8 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
project('mutter', 'c',
version: '43.1',
- meson_version: '>= 0.55.0',
+ meson_version: '>= 0.58.0',
license: 'GPLv2+'
)
@@ -640,7 +640,10 @@ if have_documentation
subdir('doc/reference')
endif
-meson.add_install_script('meson/meson-postinstall.sh')
+gnome.post_install(
+ glib_compile_schemas: true,
+)
+
meson.add_dist_script('meson/check-version.py', meson.project_version(), 'NEWS')
summary('prefix', prefix, section: 'Directories')
diff --git a/meson/meson-postinstall.sh b/meson/meson-postinstall.sh
deleted file mode 100755
index 4500dcb016..0000000000
--- a/meson/meson-postinstall.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-# Package managers set this so we don't need to run
-if [ -z "$DESTDIR" ]; then
- echo Compiling GSettings schemas...
- glib-compile-schemas ${MESON_INSTALL_PREFIX}/share/glib-2.0/schemas
-
- echo Updating desktop database...
- update-desktop-database -q ${MESON_INSTALL_PREFIX}/share/applications
-fi
--
GitLab