gnu: hurd: Record the right file name of 'login'.

* gnu/packages/hurd.scm (hurd)[arguments]: Add 'set-file-names' phase.
This commit is contained in:
Ludovic Courtès 2020-04-03 23:12:10 +02:00
parent 09ac892a95
commit b7e23a92a5
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -347,6 +347,13 @@ (define-public hurd
(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"))