guix-commits
[Top][All Lists]
Advanced

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

456/470: gnu: rust-1.55: Remove bundled libraries.


From: guix-commits
Subject: 456/470: gnu: rust-1.55: Remove bundled libraries.
Date: Thu, 16 Mar 2023 03:02:40 -0400 (EDT)

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

commit 87fad3504f9cf9e1bf1444289c49a541b7a4c82b
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]