summaryrefslogtreecommitdiffstats
path: root/desktop/weston/weston-10.0.0-elogind.patch
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/weston/weston-10.0.0-elogind.patch')
-rw-r--r--desktop/weston/weston-10.0.0-elogind.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/weston/weston-10.0.0-elogind.patch b/desktop/weston/weston-10.0.0-elogind.patch
new file mode 100644
index 0000000000..776f15497c
--- /dev/null
+++ b/desktop/weston/weston-10.0.0-elogind.patch
@@ -0,0 +1,13 @@
+diff -Naur weston-10.0.0/libweston/meson.build weston-10.0.0-elogind/libweston/meson.build
+--- weston-10.0.0/libweston/meson.build 2022-02-01 16:59:57.000000000 -0500
++++ weston-10.0.0-elogind/libweston/meson.build 2022-03-28 23:44:39.649373893 -0400
+@@ -157,6 +157,9 @@
+ systemd_dep = dependency('', required: false)
+ if get_option('launcher-logind')
+ systemd_dep = dependency('libsystemd', version: '>= 209', required: false)
++ if not systemd_dep.found()
++ systemd_dep = dependency('libelogind', version: '>= 209', required: false)
++ endif
+ if systemd_dep.found()
+ config_h.set('HAVE_SYSTEMD_LOGIN_209', '1')
+ else