guix-commits
[Top][All Lists]
Advanced

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

307/459: gnu: rust-bootstrap: Remove bundled libraries.


From: guix-commits
Subject: 307/459: gnu: rust-bootstrap: Remove bundled libraries.
Date: Mon, 24 Apr 2023 15:03:26 -0400 (EDT)

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

commit a2b9aa9347f2dcc8281d244ebd278b85c721290f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Mar 14 13:57:47 2023 +0200

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

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index b0fb49ae46..d3968be6dc 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -166,7 +166,11 @@
            ;; Remove vendored dynamically linked libraries.
            ;; find . -not -type d -executable -exec file {} \+ | grep ELF
            (delete-file "vendor/vte/vim10m_match")
-           (delete-file "vendor/vte/vim10m_table")))
+           (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)$"))))
        (patches (search-patches "rustc-1.54.0-src.patch"))
        (patch-flags '("-p0"))))         ;default is -p1
     (outputs '("out" "cargo"))



reply via email to

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