build: Specify systemd version requirement
Since we are specifying in the unit files a comment of requiring systemd >= 246, set the req at buildtime and drop the comment. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2800>
This commit is contained in:
parent
95f923f21a
commit
51dc50144e
@ -13,7 +13,6 @@ Requisite=gnome-session-initialized.target
|
||||
PartOf=gnome-session-initialized.target
|
||||
Before=gnome-session-initialized.target
|
||||
|
||||
#NOTE: ConditionEnvironment works with systemd >= 246
|
||||
ConditionEnvironment=XDG_SESSION_TYPE=%I
|
||||
|
||||
[Service]
|
||||
|
@ -13,7 +13,6 @@ Requisite=gnome-session-initialized.target
|
||||
PartOf=gnome-session-initialized.target
|
||||
Before=gnome-session-initialized.target
|
||||
|
||||
#NOTE: ConditionEnvironment works with systemd >= 246
|
||||
ConditionEnvironment=XDG_SESSION_TYPE=%I
|
||||
|
||||
# Limit startup frequency more than the default
|
||||
|
@ -29,6 +29,7 @@ mutter_req = '>= 44.0'
|
||||
polkit_req = '>= 0.100'
|
||||
schemas_req = '>= 42.beta'
|
||||
startup_req = '>= 0.11'
|
||||
systemd_req = '>= 246'
|
||||
ibus_req = '>= 1.5.19'
|
||||
gnome_desktop_req = '>= 40'
|
||||
|
||||
@ -102,8 +103,8 @@ else
|
||||
endif
|
||||
|
||||
if get_option('systemd')
|
||||
libsystemd_dep = dependency('libsystemd')
|
||||
systemd_dep = dependency('systemd')
|
||||
libsystemd_dep = dependency('libsystemd', version: systemd_req)
|
||||
systemd_dep = dependency('systemd', version: systemd_req)
|
||||
systemduserunitdir = systemd_dep.get_variable('systemduserunitdir',
|
||||
pkgconfig_define: ['prefix', prefix])
|
||||
have_systemd = true
|
||||
|
Loading…
Reference in New Issue
Block a user