[gnome-settings-daemon/benzea/systemd-3-36: 7/24] meson: Bump systemd requirement to version 243



commit f32fd47372993c30f55d6f7a8170c27891fba2f0
Author: Benjamin Berg <bberg redhat com>
Date:   Wed Dec 11 22:29:37 2019 +0100

    meson: Bump systemd requirement to version 243
    
    If we require version 243 we can rely on special targets like
    smartcard.target working. Also, from 242 onwards the sytemduserunitdir
    path resolving using systemd.pc works fine.
    
    Closes: #444

 meson.build | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index 86e17dd5..a459c949 100644
--- a/meson.build
+++ b/meson.build
@@ -104,14 +104,11 @@ x11_dep = dependency('x11')
 
 enable_systemd = get_option('systemd')
 if enable_systemd
-  systemd_dep = dependency('systemd', required: false)
+  systemd_dep = dependency('systemd', version: '>= 243', required: false)
   assert(systemd_dep.found(), 'Systemd support explicitly required, but systemd not found')
 
-  # XXX: Once https://github.com/systemd/systemd/issues/9595 is fixed and we can
-  # depend on this version, replace with something like:
-  #  systemduserunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir')
-  # and uncomment systemd_dep below
-  systemd_userunitdir = join_paths(gsd_prefix, 'lib', 'systemd', 'user')
+   systemd_userunitdir = systemd_dep.get_pkgconfig_variable('systemduserunitdir',
+                                                            define_variable: ['prefix', gsd_prefix])
 endif
 
 m_dep = cc.find_library('m')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]