gnu: guix: Install SysV init files to $(prefix)/etc.

Fixes <https://bugs.gnu.org/40153>.
Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com>.

This is a followup to 73fbe04107.

* gnu/packages/package-management.scm (guix)[arguments]: In 'bootstrap'
phase, change "sysvinitservicedir" in 'nix/local.mk'.
This commit is contained in:
Ludovic Courtès 2020-03-20 23:12:36 +01:00
parent f08040c5f8
commit fe4a37276b
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -170,6 +170,13 @@ (define-public guix
(lambda (port)
(display ,version port)))
;; Install SysV init files to $(prefix)/etc rather
;; than to /etc.
(substitute* "nix/local.mk"
(("^sysvinitservicedir = .*$")
(string-append "sysvinitservicedir = \
$(prefix)/etc/init.d\n")))
(invoke "sh" "bootstrap")))
(add-before 'check 'copy-bootstrap-guile
(lambda* (#:key system inputs #:allow-other-keys)