[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch core-updates updated: gnu: elogind: Support global shutdown & sus
From: |
guix-commits |
Subject: |
branch core-updates updated: gnu: elogind: Support global shutdown & suspend hooks. |
Date: |
Wed, 30 Nov 2022 17:46:48 -0500 |
This is an automated email from the git hooks/post-receive script.
nckx pushed a commit to branch core-updates
in repository guix.
The following commit(s) were added to refs/heads/core-updates by this push:
new f27d4c9a78 gnu: elogind: Support global shutdown & suspend hooks.
f27d4c9a78 is described below
commit f27d4c9a78b64a5290cca905a5ad56d7b82ddbf4
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Nov 20 01:00:00 2022 +0100
gnu: elogind: Support global shutdown & suspend hooks.
* gnu/packages/freedesktop.scm (elogind)[arguments]: Add a new
'use-global-hook-directory phase.
---
gnu/packages/freedesktop.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 273e4209b2..3b44bb77c4 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -650,6 +650,13 @@ the freedesktop.org XDG Base Directory specification.")
(substitute* "meson.build"
(("join_paths\\(bindir, 'pkttyagent'\\)")
"'\"/run/current-system/profile/bin/pkttyagent\"'"))))
+ (add-after 'unpack 'use-global-hook-directory
+ ;; XXX There is no run-time setting to set this per-process, only a
+ ;; build-time, hard-coded list of global directories.
+ (lambda _
+ (substitute* (list "src/login/elogind-dbus.c"
+ "src/sleep/sleep.c")
+ (("PKGSYSCONFDIR") "\"/etc/elogind\""))))
(add-after 'unpack 'adjust-tests
(lambda _
;; Skip the following test, which depends on users such as 'root'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch core-updates updated: gnu: elogind: Support global shutdown & suspend hooks.,
guix-commits <=