unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 551fdf7de83f39cc2dda5c566c747cad46b7e761 1143 bytes (raw)
name: packages/patches/polkit-disable-systemd.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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')

debug log:

solving 551fdf7de83f39cc2dda5c566c747cad46b7e761 ...
found 551fdf7de83f39cc2dda5c566c747cad46b7e761 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).