aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-04-03 23:12:10 +0200
committerLudovic Courtès <ludo@gnu.org>2020-04-11 19:22:26 +0200
commitb7e23a92a57f50686a5334c4737ffe46b06bbf77 (patch)
tree3620a573d31b8c54c2d49bb2f582a03cbf9736d8 /gnu/packages
parent09ac892a951aeded1bc6d0487980041fb55a71b7 (diff)
downloadguix-b7e23a92a57f50686a5334c4737ffe46b06bbf77.tar
guix-b7e23a92a57f50686a5334c4737ffe46b06bbf77.tar.gz
gnu: hurd: Record the right file name of 'login'.
* gnu/packages/hurd.scm (hurd)[arguments]: Add 'set-file-names' phase.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/hurd.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/hurd.scm b/gnu/packages/hurd.scm
index 6478eb4434..9f398e0d6c 100644
--- a/gnu/packages/hurd.scm
+++ b/gnu/packages/hurd.scm
@@ -347,6 +347,13 @@ boot, since this cannot be done from GNU/Linux."
(substitute* '("daemons/Makefile" "utils/Makefile")
(("-o root -m 4755") ""))
#t))
+ (add-before 'build 'set-file-names
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (substitute* '("daemons/runttys.c" "daemons/getty.c")
+ (("/bin/login")
+ (string-append out "/bin/login")))
+ #t)))
(add-after 'install 'install-rc-file
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))