guix-commits
[Top][All Lists]
Advanced

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

198/276: gnu: rust-addr2line-0.17: Fix building.


From: guix-commits
Subject: 198/276: gnu: rust-addr2line-0.17: Fix building.
Date: Wed, 18 Oct 2023 04:50:03 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit c68f15cd8e46766fbfc98dcdc13743c834af23e4
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Oct 8 12:13:59 2023 +0300

    gnu: rust-addr2line-0.17: Fix building.
    
    * gnu/packages/crates-io.scm (rust-addr2line-0.17)[source]: Add snippet
    to correctly build one of the dependency crates.
---
 gnu/packages/crates-io.scm | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 636e64d664..32301bcde5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -1869,9 +1869,17 @@ Rust, using gimli.")
               (file-name (string-append name "-" version ".tar.gz"))
               (sha256
                (base32
-                "0sw16zqy6w0ar633z69m7lw6gb0k1y7xj3387a8wly43ij5div5r"))))
+                "0sw16zqy6w0ar633z69m7lw6gb0k1y7xj3387a8wly43ij5div5r"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  (substitute* "Cargo.toml.orig"
+                    (("(cpp_demangle =.*)default-features = false,(.*)" _ 
first last)
+                     (string-append first last))
+                    ((".*auxiliary.*") ""))
+                  (copy-file "Cargo.toml.orig" "Cargo.toml")))))
     (arguments
-     `(#:tests? #false ;use of undeclared crate or module `auxiliary`
+     `(#:tests? #false  ; Not all files included.
        #:cargo-inputs
        (("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
         ("rust-cpp-demangle" ,rust-cpp-demangle-0.3)



reply via email to

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