guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: lvm2: Fix cross-compiling on some architectures.


From: guix-commits
Subject: 01/03: gnu: lvm2: Fix cross-compiling on some architectures.
Date: Tue, 8 Mar 2022 05:11:03 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit d4f9c21a84ba4ced10d30c2b3f16faffd7a15f03
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Mar 8 09:12:17 2022 +0200

    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.
---
 gnu/packages/linux.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]