apteryx pushed a commit to branch master
in repository guix.

commit 7ece7095e90019a314cac3a9b6a5586e1bd6a98c
Author: Sergey Trofimov <[email protected]>
AuthorDate: Fri May 16 19:28:30 2025 +0200

    gnu: elogind: Adjust patch for pkttyagent.
    
    * gnu/packages/freedesktop.scm (elogind/fixed): New variable.
    (elogind): Replace with elogind/fixed.
    
    Change-Id: I9c474291816aee7464db5cbe9398b589479e79cf
    Signed-off-by: Maxim Cournoyer <[email protected]>
    Modified-by: Maxim Cournoyer <[email protected]>
---
 gnu/packages/freedesktop.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index de8fb975bc..644224a5c6 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -879,6 +879,7 @@ the freedesktop.org XDG Base Directory specification.")
   (package
     (name "elogind")
     (version "255.17")
+    (replacement elogind/fixed)
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -1065,6 +1066,20 @@ the org.freedesktop.login1 interface over the system 
bus, allowing other parts
 of a the system to know what users are logged in, and where.")
     (license license:lgpl2.1+)))
 
+(define-public elogind/fixed
+  (hidden-package
+   (package
+     (inherit elogind)
+     (arguments
+      (substitute-keyword-arguments (package-arguments elogind)
+        ((#:phases phases)
+         #~(modify-phases #$phases
+             (replace 'fix-pkttyagent-path
+               (lambda _
+                 (substitute* "meson.build"
+                   (("bindir / 'pkttyagent'")
+                    "'/run/current-system/profile/bin/pkttyagent'")))))))))))
+
 (define-public basu
   (package
     (name "basu")

Reply via email to