[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 4/7] gnu: polkit: Use elogind for seat management.
From: |
Andy Wingo |
Subject: |
[PATCH v2 4/7] gnu: polkit: Use elogind for seat management. |
Date: |
Tue, 18 Aug 2015 11:39:22 +0200 |
* gnu/packages/polkit.scm (polkit): Depend on elogind.
---
gnu/packages/polkit.scm | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/polkit.scm b/gnu/packages/polkit.scm
index 172b0e1..6a89d6b 100644
--- a/gnu/packages/polkit.scm
+++ b/gnu/packages/polkit.scm
@@ -23,6 +23,7 @@
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (gnu packages)
+ #:use-module (gnu packages freedesktop)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnuzilla)
#:use-module (gnu packages linux)
@@ -44,13 +45,33 @@
(sha256
(base32
"109w86kfqrgz83g9ivggplmgc77rz8kx8646izvm2jb57h4rbh71"))
- (patches (list (search-patch "polkit-drop-test.patch")))))
+ (patches (list (search-patch "polkit-drop-test.patch")))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (use-modules (guix build utils))
+ (substitute* "configure"
+ ;; Replace libsystemd-login with libelogind.
+ (("libsystemd-login") "libelogind")
+ ;; Skip the sanity check that the current system runs
+ ;; systemd.
+ (("test ! -d /sys/fs/cgroup/systemd/") "false"))
+ (substitute* "src/polkit/polkitunixsession-systemd.c"
+ (("systemd") "elogind"))
+ (substitute*
"src/polkitbackend/polkitbackendsessionmonitor-systemd.c"
+ (("systemd") "elogind"))
+ (substitute* "src/polkitbackend/polkitbackendjsauthority.c"
+ (("systemd") "elogind"))))))
(build-system gnu-build-system)
(inputs
`(("expat" ,expat)
("glib:bin" ,glib "bin") ; for glib-mkenums
+ ("elogind" ,elogind)
("intltool" ,intltool)
("linux-pam" ,linux-pam)
+ ;; FIXME: Shouldn't need libcap, it should be correctly propagated
+ ;; from elogind.
+ ("libcap" ,libcap)
("mozjs" ,mozjs)
("nspr" ,nspr)))
(propagated-inputs
--
2.4.3
- Re: [PATCH v2 5/7] gnu: colord: Add libcap input., (continued)
[PATCH v2 3/7] gnu: Allow OS configurations to add PAM session modules, Andy Wingo, 2015/08/20
- Re: [PATCH v2 3/7] gnu: Allow OS configurations to add PAM session modules, Ludovic Courtès, 2015/08/25
- Re: [PATCH v2 3/7] gnu: Allow OS configurations to add PAM session modules, Andy Wingo, 2015/08/25
- Re: [PATCH v2 3/7] gnu: Allow OS configurations to add PAM session modules, Ludovic Courtès, 2015/08/25
- Re: [PATCH v2 3/7] gnu: Allow OS configurations to add PAM session modules, Andy Wingo, 2015/08/26
- Re: [PATCH v2 3/7] gnu: Allow OS configurations to add PAM session modules, 宋文武, 2015/08/26
- Re: [PATCH v2 3/7] gnu: Allow OS configurations to add PAM session modules, Ludovic Courtès, 2015/08/28
[PATCH v2 4/7] gnu: polkit: Use elogind for seat management.,
Andy Wingo <=