diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2022-03-08 09:12:17 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2022-03-08 09:13:12 +0200 |
commit | d4f9c21a84ba4ced10d30c2b3f16faffd7a15f03 (patch) | |
tree | 9bcfb10ad73da6f98bb61114ffb7477c731136a1 | |
parent | f7bb161445903c51d299307610403cb3de0fcc56 (diff) | |
download | guix-d4f9c21a84ba4ced10d30c2b3f16faffd7a15f03.tar.gz |
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.
-rw-r--r-- | gnu/packages/linux.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index d26239ea66..96650d6abc 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -4001,13 +4001,22 @@ one to send arbitrary keycodes when a given key is tapped or held.") (patches (search-patches "lvm2-static-link.patch")))) (build-system gnu-build-system) (native-inputs - (list pkg-config procps)) ;tests use 'pgrep' + (list config + pkg-config procps)) ;tests use 'pgrep' (inputs `(("libaio" ,libaio) ("udev" ,eudev))) (arguments `(#: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 (lambda _ ;; Use 'sh', not 'bash', so that '. lib/utils.sh' works as |