gnu: lvm2: Use 'modify-phases'.

* gnu/packages/linux.scm (lvm2)[arguments]: Use 'modify-phases'.
This commit is contained in:
Leo Famulari 2016-10-03 03:57:53 -04:00
parent af0ba93825
commit 3afbc6b3c3
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -1661,16 +1661,17 @@ (define-public lvm2
(inputs
`(("udev" ,eudev)))
(arguments
'(#:phases (alist-cons-after
'configure 'set-makefile-shell
(lambda _
;; Use 'sh', not 'bash', so that '. lib/utils.sh' works as
;; expected.
(setenv "SHELL" (which "sh"))
'(#:phases
(modify-phases %standard-phases
(add-after 'configure 'set-makefile-shell
(lambda _
;; Use 'sh', not 'bash', so that '. lib/utils.sh' works as
;; expected.
(setenv "SHELL" (which "sh"))
;; Replace /bin/sh with the right file name.
(patch-makefile-SHELL "make.tmpl"))
%standard-phases)
;; Replace /bin/sh with the right file name.
(patch-makefile-SHELL "make.tmpl")
#t)))
#:configure-flags (list (string-append "--sysconfdir="
(assoc-ref %outputs "out")