1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| | This patch, borrowed from Gentoo, allows configuring gnome-sesssion with
elogind support.
https://gitweb.gentoo.org/repo/gentoo.git/plain/gnome-base/gnome-session/files/gnome-session-46.0-meson-Support-elogind.patch?id=47aae21c1beeef930aa7e2125d93e52bf237d2b9
--- a/meson.build 2024-07-29 16:43:01.812864903 +0200
+++ b/meson.build 2024-07-29 16:54:16.654741387 +0200
@@ -113,8 +113,13 @@
pkgconfig_define: ['prefix', session_prefix])
endif
-libsystemd_dep = dependency('libsystemd', version: '>= 209', required: true)
-session_bin_deps += libsystemd_dep
+libsystemd_dep = dependency('libsystemd', version: '>= 209', required: false)
+if libsystemd_dep.found()
+ session_bin_deps += libsystemd_dep
+else
+ elogind_dep = dependency('libelogind', version: '>=209', required: true)
+ session_bin_deps += elogind_dep
+endif
configure_file(
output: 'config.h',
|