summary refs log tree commit diff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-03-08 09:12:17 +0200
committerEfraim Flashner <efraim@flashner.co.il>2022-03-08 09:13:12 +0200
commitd4f9c21a84ba4ced10d30c2b3f16faffd7a15f03 (patch)
tree9bcfb10ad73da6f98bb61114ffb7477c731136a1
parentf7bb161445903c51d299307610403cb3de0fcc56 (diff)
downloadguix-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.scm11
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