[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/08: gnu: gdm: Use proper elogind check, and wrap environment.
From: |
Andy Wingo |
Subject: |
05/08: gnu: gdm: Use proper elogind check, and wrap environment. |
Date: |
Fri, 25 Aug 2017 10:02:48 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guix.
commit 957dbc0a4d2c4d173b094a3c003c87deffc8a8a0
Author: Andy Wingo <address@hidden>
Date: Tue Aug 22 22:51:32 2017 +0200
gnu: gdm: Use proper elogind check, and wrap environment.
* gnu/packages/gnome.scm (gdm): Use glib-or-gtk-build-system to make sure
the
schemas are available to GDM. Install gdm to /bin to make this happen.
Use a
proper elogind check.
---
gnu/packages/gnome.scm | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index a26688d..2d82508 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -5095,16 +5095,20 @@ libxml2.")
(sha256
(base32
"1s2xzrwcjhfb4ra8jrxqfycs1jpv97id0f6idb2h6vjkspxbjy23"))))
- (build-system gnu-build-system)
+ (build-system glib-or-gtk-build-system)
(arguments
'(#:configure-flags
`("--without-plymouth"
+ "--disable-systemd-journal"
"--localstatedir=/var"
,(string-append "--with-default-path="
(string-join '("/run/setuid-programs"
"/run/current-system/profile/bin"
"/run/current-system/profile/sbin")
- ":")))
+ ":"))
+ ;; Put GDM in bindir so that glib-or-gtk-build-system wraps the
+ ;; XDG_DATA_DIRS so that it finds its schemas.
+ "--sbindir" ,(string-append (assoc-ref %outputs "out") "/bin"))
#:phases
(modify-phases %standard-phases
(add-before
@@ -5122,9 +5126,10 @@ libxml2.")
"libgdm/gdm-user-switching.c")
(("#include <systemd/sd-login\\.h>")
"#include <elogind/sd-login.h>"))
- ;; Avoid checking SYSTEMD using pkg-config.
- (setenv "SYSTEMD_CFLAGS" " ")
- (setenv "SYSTEMD_LIBS" "-lelogind")
+ ;; Check for elogind.
+ (substitute* '("configure")
+ (("libsystemd")
+ "libelogind"))
;; Look for system-installed sessions in
;; /run/current-system/profile/share.
(substitute* '("libgdm/gdm-sessions.c"
- branch master updated (cb8b14f -> 6e99c01), Andy Wingo, 2017/08/25
- 02/08: gnu: Add AccountsService service to desktop services., Andy Wingo, 2017/08/25
- 05/08: gnu: gdm: Use proper elogind check, and wrap environment.,
Andy Wingo <=
- 07/08: gnu: services: Log debug messages to /var/log/debug., Andy Wingo, 2017/08/25
- 01/08: gnu: accountsservice: Properly reference shadow., Andy Wingo, 2017/08/25
- 03/08: gnu: services: Refactor to separate X and startx wrappers., Andy Wingo, 2017/08/25
- 04/08: gnu: gdm: Look for sessions in /run/current-system., Andy Wingo, 2017/08/25
- 08/08: gnu: Add draft of gdm service., Andy Wingo, 2017/08/25
- 06/08: gnu: gdm: Fix environment of worker processes and sessions., Andy Wingo, 2017/08/25