diff options
author | Marius Bakke <[email protected]> | 2022-10-16 00:10:07 +0200 |
---|---|---|
committer | Marius Bakke <[email protected]> | 2022-10-16 00:10:07 +0200 |
commit | c567a82a6975e70c8207a4aeed55a72b5121213c (patch) | |
tree | 8a6dfe8a78726933e4a1581a2c6ba4a84d59411f /gnu/packages/patches/polkit-disable-systemd.patch | |
parent | 3a84b4ec4cec1d122cb454da9d4f6a747a51e49a (diff) | |
parent | 322917aeb8e672c21378fd371a5cff4a9f0c2520 (diff) |
Merge branch 'staging'
Diffstat (limited to 'gnu/packages/patches/polkit-disable-systemd.patch')
-rw-r--r-- | gnu/packages/patches/polkit-disable-systemd.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/patches/polkit-disable-systemd.patch b/gnu/packages/patches/polkit-disable-systemd.patch new file mode 100644 index 0000000000..551fdf7de8 --- /dev/null +++ b/gnu/packages/patches/polkit-disable-systemd.patch @@ -0,0 +1,30 @@ +Don't install systemd units unless using libsystemd session tracking. + +Submitted upstream: + + https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/134 + +diff --git a/data/meson.build b/data/meson.build +--- a/data/meson.build ++++ b/data/meson.build +@@ -26,7 +26,7 @@ if enable_pam + ) + endif + +-if enable_logind ++if session_tracking == 'libsystemd-login' + configure_file( + input: 'polkit.service.in', + output: '@BASENAME@', +diff --git a/meson.build b/meson.build +--- a/meson.build ++++ b/meson.build +@@ -199,7 +199,7 @@ if enable_logind + + # systemd unit / service files + systemd_systemdsystemunitdir = get_option('systemdsystemunitdir') +- if systemd_systemdsystemunitdir == '' ++ if systemd_systemdsystemunitdir == '' and session_tracking == 'libsystemd-login' + systemd_dep = dependency('systemd', not_found_message: 'systemd required but not found, please provide a valid systemd user unit dir or disable it') + # FIXME: systemd.pc file does not use variables with relative paths, so `define_variable` cannot be used + systemd_systemdsystemunitdir = systemd_dep.get_pkgconfig_variable('systemdsystemunitdir') |