gnu: modules: Avoid FHS file names in 'add.modules'.

* gnu/packages/package-management.scm (modules)[arguments]: Add
'patch-add-modules' phase.
This commit is contained in:
Ludovic Courtès 2021-07-23 17:01:38 +02:00 committed by Ludovic Courtès
parent 8bcd920c71
commit 7273b66945
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1522,6 +1522,14 @@ (define-public modules
#:test-target "test"
#:phases
(modify-phases %standard-phases
(add-before 'configure 'patch-add-modules
(lambda* (#:key inputs #:allow-other-keys)
(let ((coreutils (assoc-ref inputs "coreutils")))
(substitute* "script/add.modules.in"
(("/bin/(cat|cp|rm)" _ command)
(string-append coreutils "/bin/" command))
(("/bin/echo")
"echo")))))
(add-before 'configure 'patch-scripts-for-python-3
(lambda _
;; Patch the script for python-3.