[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
307/469: Revert "gnu: rust: Remove more bundled sources."
From: |
guix-commits |
Subject: |
307/469: Revert "gnu: rust: Remove more bundled sources." |
Date: |
Tue, 25 Apr 2023 15:03:52 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 875b49eb953a8388e0867abcc12999c505edac3d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Mar 15 22:57:51 2023 +0200
Revert "gnu: rust: Remove more bundled sources."
This reverts commit 7e777d70e67cc90f019988aa2af68bbf1fe25c00.
This makes it impractical to update several libraries without a rust
rebuild. Since rust doesn't retain a reference to these libraries it
isn't clear that this is the best choice.
---
gnu/packages/rust.scm | 35 -----------------------------------
1 file changed, 35 deletions(-)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 619980a118..274721caed 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -50,7 +50,6 @@
#:use-module (gnu packages python)
#:use-module (gnu packages ssh)
#:use-module (gnu packages tls)
- #:use-module (gnu packages version-control)
#:use-module (gnu packages)
#:use-module (guix build-system cargo)
#:use-module (guix build-system copy)
@@ -710,33 +709,6 @@ safety and thread safety guarantees.")
(package
(inherit base-rust)
(outputs (cons "rustfmt" (package-outputs base-rust)))
- ;; This is the rust we build everything with, so we make sure to
unbundle more.
- ;; We allow other versions of the rust compiler to use bundled sources
so we
- ;; don't have to worry about carrying old versions of some libraries.
- (source
- (origin
- (inherit (package-source base-rust))
- (snippet
- '(begin
- (for-each delete-file-recursively
- '("src/llvm-project"
- "vendor/curl-sys/curl"
- "vendor/jemalloc-sys/jemalloc"
- "vendor/libgit2-sys/libgit2"
- ;"vendor/libnghttp2-sys/nghttp2"
- "vendor/libssh2-sys/libssh2"
- "vendor/libz-sys/src/zlib"
- ;"vendor/libz-sys/src/zlib-ng"
- "vendor/lzma-sys/xz-5.2"
- ;"vendor/openssl-src"
- "vendor/tikv-jemalloc-sys/jemalloc"))
- ;; 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")
- ;; Also remove the bundled (mostly Windows) libraries.
- (for-each delete-file
- (find-files "vendor" ".*\\.(a|dll|exe|lib)$"))))))
(arguments
(substitute-keyword-arguments (package-arguments base-rust)
((#:tests? _ #f)
@@ -833,11 +805,6 @@ safety and thread safety guarantees.")
((file) file))
(("fn ctrl_c_kills_everyone")
"#[ignore]\nfn ctrl_c_kills_everyone"))))
- (add-after 'set-env 'set-more-env
- (lambda* (#:key inputs #:allow-other-keys)
- (setenv "LIBGIT2_SYS_USE_PKG_CONFIG" "1")
- (setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1")
- (setenv "OPENSSL_DIR" (assoc-ref inputs "openssl"))))
(add-after 'configure 'add-gdb-to-config
(lambda* (#:key inputs #:allow-other-keys)
(let ((gdb (assoc-ref inputs "gdb")))
@@ -882,8 +849,6 @@ safety and thread safety guarantees.")
(("prefix = \"[^\"]*\"")
(format #f "prefix = ~s" (assoc-ref outputs "rustfmt"))))
(invoke "./x.py" "install" "rustfmt")))))))
- (inputs (modify-inputs (package-inputs base-rust)
- (prepend curl libgit2 libssh xz zlib)))
;; Add test inputs.
(native-inputs (cons* `("gdb" ,gdb/pinned)
`("procps" ,procps)
- 246/469: etc: teams: Add sequoia.scm to the rust team., (continued)
- 246/469: etc: teams: Add sequoia.scm to the rust team., guix-commits, 2023/04/25
- 256/469: gnu: Add rust-lscolors-0.13., guix-commits, 2023/04/25
- 258/469: gnu: Add rust-ron-0.7., guix-commits, 2023/04/25
- 270/469: gnu: rust-similar-asserts-1: Update to 1.4.2., guix-commits, 2023/04/25
- 271/469: gnu: rust-tokio-1: Update to 1.26.0., guix-commits, 2023/04/25
- 281/469: gnu: rust-derive-arbitrary-1: Update to 1.2.3., guix-commits, 2023/04/25
- 161/469: gnu: Remove rust-target-lexicon-0.10., guix-commits, 2023/04/25
- 272/469: gnu: rust-adblock: Update to 0.7.5., guix-commits, 2023/04/25
- 289/469: gnu: Add rust-if-addrs-0.6., guix-commits, 2023/04/25
- 308/469: gnu: rust-crossbeam-deque-0.8: Update to 0.8.3., guix-commits, 2023/04/25
- 307/469: Revert "gnu: rust: Remove more bundled sources.",
guix-commits <=
- 323/469: gnu: rust-windows-aarch64-msvc-0.42: Update to 0.42.2., guix-commits, 2023/04/25
- 331/469: gnu: rust-derive-arbitrary-1: Update to 1.3.0., guix-commits, 2023/04/25
- 339/469: gnu: rust-quote-1: Update to 1.0.25., guix-commits, 2023/04/25
- 335/469: gnu: rust-bytecheck-0.6: Update to 0.6.10., guix-commits, 2023/04/25
- 361/469: gnu: rust-fastrand-1: Update to 1.9.0., guix-commits, 2023/04/25
- 364/469: gnu: rust-tls-parser-0.10: Update to 0.11.0., guix-commits, 2023/04/25
- 384/469: gnu: rust-wayland-client-0.29: Update to 0.29.5., guix-commits, 2023/04/25
- 399/469: gnu: Add rust-calloop-0.10., guix-commits, 2023/04/25
- 406/469: gnu: Add rust-alacritty-config-0.1., guix-commits, 2023/04/25
- 395/469: gnu: rust-x11-dl-2: Update to 2.21.0., guix-commits, 2023/04/25