guix-commits
[Top][All Lists]
Advanced

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

308/373: gnu: rust-1.55: Remove bundled libraries.


From: guix-commits
Subject: 308/373: gnu: rust-1.55: Remove bundled libraries.
Date: Sun, 16 Apr 2023 07:11:32 -0400 (EDT)

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

commit 5df88d5ed04c410189d8746299e856dc21819255
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]