mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-18 00:42:17 -05:00
gnu: lvm2: Fix cross-compiling on some architectures.
* gnu/packages/linux.scm (lvm2)[native-inputs]: Add config. [arguments]: Add phase to replace old versions of config.sub and config.guess.
This commit is contained in:
parent
f7bb161445
commit
d4f9c21a84
1 changed files with 10 additions and 1 deletions
|
@ -4001,13 +4001,22 @@ (define-public lvm2
|
||||||
(patches (search-patches "lvm2-static-link.patch"))))
|
(patches (search-patches "lvm2-static-link.patch"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config procps)) ;tests use 'pgrep'
|
(list config
|
||||||
|
pkg-config procps)) ;tests use 'pgrep'
|
||||||
(inputs
|
(inputs
|
||||||
`(("libaio" ,libaio)
|
`(("libaio" ,libaio)
|
||||||
("udev" ,eudev)))
|
("udev" ,eudev)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'update-config
|
||||||
|
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
||||||
|
(install-file (search-input-file
|
||||||
|
(or native-inputs inputs) "/bin/config.sub")
|
||||||
|
"autoconf")
|
||||||
|
(install-file (search-input-file
|
||||||
|
(or native-inputs inputs) "/bin/config.guess")
|
||||||
|
"autoconf")))
|
||||||
(add-after 'configure 'set-makefile-shell
|
(add-after 'configure 'set-makefile-shell
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Use 'sh', not 'bash', so that '. lib/utils.sh' works as
|
;; Use 'sh', not 'bash', so that '. lib/utils.sh' works as
|
||||||
|
|
Loading…
Reference in a new issue