guix-commits
[Top][All Lists]
Advanced

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

05/17: gnu: rust-1.55: Remove bundled libraries.


From: guix-commits
Subject: 05/17: gnu: rust-1.55: Remove bundled libraries.
Date: Wed, 15 Mar 2023 06:55:01 -0400 (EDT)

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

commit 4bf793cdbdf670d97c91e44110509f6cdf928294
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Mar 14 13:58:34 2023 +0200

    gnu: rust-1.55: Remove bundled libraries.
    
    * gnu/packages/rust.scm (rust-1.55)[source]: Adjust snippet to remove
    bundled libraries.
---
 gnu/packages/rust.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index d3968be6dc..085123176f 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -386,6 +386,10 @@ safety and thread safety guarantees.")
            ;; find . -not -type d -executable -exec file {} \+ | grep ELF
            (delete-file "vendor/vte/vim10m_match")
            (delete-file "vendor/vte/vim10m_table")
+           ;; Also remove the bundled (mostly Windows) libraries.
+           ;; find vendor -not -type d -exec file {} \+ | grep PE32
+           (for-each delete-file
+                     (find-files "vendor" ".*\\.(a|dll|exe|lib)$"))
            ;; Add support for riscv64-linux.
            (substitute* "vendor/tikv-jemallocator/src/lib.rs"
              (("    target_arch = \"s390x\"," all)



reply via email to

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