3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

gnu: mdadm: Fix cross-compilation.

* gnu/packages/linux.scm (mdadm)[arguments]: Search for coreutils in both
native-inputs and inputs.
This commit is contained in:
Mathieu Othacehe 2019-08-18 13:01:17 +02:00
parent f22997b1a7
commit 7dbd3a8e3e
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -3503,8 +3503,9 @@ MPEG-2 and audio over Linux IEEE 1394.")
#:phases
(modify-phases %standard-phases
(add-before 'build 'patch-program-paths
(lambda* (#:key inputs #:allow-other-keys)
(let ((coreutils (assoc-ref inputs "coreutils")))
(lambda* (#:key native-inputs inputs #:allow-other-keys)
(let ((coreutils (assoc-ref (or native-inputs inputs)
"coreutils")))
(substitute* "udev-md-raid-arrays.rules"
(("/usr/bin/(readlink|basename)" all program)
(string-append coreutils "/bin/" program))))