[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
307/471: Revert "gnu: rust: Remove more bundled sources."
From: |
guix-commits |
Subject: |
307/471: Revert "gnu: rust: Remove more bundled sources." |
Date: |
Wed, 3 May 2023 09:28:35 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 54f42de96c2b4722a89d6f09e0da8fe79a664af6
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 7d401897cc..20db7d4968 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)
@@ -712,33 +711,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)
@@ -835,11 +807,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")))
@@ -884,8 +851,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)
- 258/471: gnu: Add rust-ron-0.7., (continued)
- 258/471: gnu: Add rust-ron-0.7., guix-commits, 2023/05/03
- 259/471: gnu: rust-signal-hook-mio-0.2: Update to 0.2.3., guix-commits, 2023/05/03
- 264/471: gnu: Add rust-option-set-0.1., guix-commits, 2023/05/03
- 267/471: gnu: Add rust-faccess-0.2., guix-commits, 2023/05/03
- 269/471: gnu: rust-signal-hook-0.3: Update to 0.3.15., guix-commits, 2023/05/03
- 153/471: gnu: Add rust-proptest-derive-0.3., guix-commits, 2023/05/03
- 284/471: gnu: rust-ring-0.16: Remove pregenerated files., guix-commits, 2023/05/03
- 283/471: gnu: rust-fixedbitset-0.4: Update to 0.4.2., guix-commits, 2023/05/03
- 285/471: gnu: rust-ring-0.14: Remove pregenerated files., guix-commits, 2023/05/03
- 295/471: gnu: rust-tikv-jemalloc-sys-0.4: Remove bundled sources., guix-commits, 2023/05/03
- 307/471: Revert "gnu: rust: Remove more bundled sources.",
guix-commits <=
- 308/471: gnu: rust-crossbeam-deque-0.8: Update to 0.8.3., guix-commits, 2023/05/03
- 303/471: gnu: alfis: Add missing input., guix-commits, 2023/05/03
- 310/471: gnu: Add rust-funty-2., guix-commits, 2023/05/03
- 319/471: gnu: Add rust-wyz-0.5., guix-commits, 2023/05/03
- 314/471: gnu: Add rust-pyo3-ffi-0.18., guix-commits, 2023/05/03
- 204/471: gnu: Add rust-libdeflater-0.11., guix-commits, 2023/05/03
- 214/471: gnu: rust-wasm-bindgen-0.2: Update to 0.2.84., guix-commits, 2023/05/03
- 215/471: gnu: rust-wasm-bindgen-backend-0.2: Update to 0.2.84., guix-commits, 2023/05/03
- 317/471: gnu: Add rust-radium-0.7., guix-commits, 2023/05/03
- 272/471: gnu: rust-adblock: Update to 0.7.5., guix-commits, 2023/05/03