[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
144/281: gnu: rust: Update to 1.67.
From: |
guix-commits |
Subject: |
144/281: gnu: rust: Update to 1.67. |
Date: |
Wed, 22 Feb 2023 05:41:02 -0500 (EST) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 5501b44bc14299266478a8d0df1f674a71515a23
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Feb 20 17:48:11 2023 +0200
gnu: rust: Update to 1.67.
* gnu/packages/rust.scm (rust): Update to 1.67.
[arguments]: Add a phase to skip tests requiring mercurial. Extend the
custom 'patch-process-tests phase.
(rust-1.64)[arguments]: Adjust 'patch-cargo-checksums phase to patch
another file.
* guix/build/cargo-build-system.scm (package): Adjust to remove
Cargo.toml.orig file if it exists.
---
gnu/packages/rust.scm | 25 +++++++++++++++++++------
guix/build/cargo-build-system.scm | 8 ++++++--
2 files changed, 25 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index f46008382e..5a4ecd6f37 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -642,9 +642,10 @@ safety and thread safety guarantees.")
((#:phases phases)
`(modify-phases ,phases
(replace 'patch-cargo-checksums
- (lambda* _
+ (lambda _
(substitute* '("Cargo.lock"
- "src/bootstrap/Cargo.lock")
+ "src/bootstrap/Cargo.lock"
+ "src/tools/rust-analyzer/Cargo.lock")
(("(checksum = )\".*\"" all name)
(string-append name "\"" ,%cargo-reference-hash "\"")))
(generate-all-checksums "vendor"))))))))))
@@ -677,7 +678,7 @@ safety and thread safety guarantees.")
;;; Here we take the latest included Rust, make it public, and re-enable tests
;;; and extra components such as rustfmt.
(define-public rust
- (let ((base-rust rust-1.60))
+ (let ((base-rust rust-1.67))
(package
(inherit base-rust)
(outputs (cons "rustfmt" (package-outputs base-rust)))
@@ -719,6 +720,16 @@ safety and thread safety guarantees.")
"#[ignore]\nfn finds_author_git")
(("fn finds_local_author_git")
"#[ignore]\nfn finds_local_author_git"))))
+ (add-after 'unpack 'disable-tests-requiring-mercurial
+ (lambda _
+ (substitute*
+
"src/tools/cargo/tests/testsuite/init/simple_hg_ignore_exists/mod.rs"
+ (("fn simple_hg_ignore_exists")
+ "#[ignore]\nfn simple_hg_ignore_exists"))
+ (substitute*
+
"src/tools/cargo/tests/testsuite/init/mercurial_autodetect/mod.rs"
+ (("fn mercurial_autodetect")
+ "#[ignore]\nfn mercurial_autodetect"))))
(add-after 'unpack 'patch-command-exec-tests
;; This test suite includes some tests that the stdlib's
;; `Command` execution properly handles in situations where
@@ -752,9 +763,11 @@ safety and thread safety guarantees.")
(string-append "\"" bash "/bin/sh\"")))
(substitute*
"library/std/src/sys/unix/process/process_common/tests.rs"
(("fn test_process_mask")
- "#[allow(unused_attributes)]
- #[ignore]
- fn test_process_mask")))))
+ "#[ignore]\nfn test_process_mask")
+ (("fn test_process_group_posix_spawn")
+ "#[ignore]\nfn test_process_group_posix_spawn")
+ (("fn test_process_group_no_posix_spawn")
+ "#[ignore]\nfn test_process_group_no_posix_spawn")))))
(add-after 'unpack 'disable-interrupt-tests
(lambda _
;; This test hangs in the build container; disable it.
diff --git a/guix/build/cargo-build-system.scm
b/guix/build/cargo-build-system.scm
index 5d7bfc8eb3..fbba554e9b 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -2,7 +2,7 @@
;;; Copyright © 2016 David Craven <david@craven.ch>
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com>
-;;; Copyright © 2019-2022 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2019-2023 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
;;;
@@ -231,7 +231,11 @@ directory = '" port)
(string-length ".tar.gz"))
".crate")))
(find-files "." "\\.tar\\.gz$"))))
- (apply invoke `("cargo" "package" ,@cargo-package-flags)))
+ (begin
+ ;;error: invalid inclusion of reserved file name Cargo.toml.orig in
package source
+ (when (file-exists? "Cargo.toml.orig")
+ (delete-file "Cargo.toml.orig"))
+ (apply invoke `("cargo" "package" ,@cargo-package-flags))))
(format #t "Not installing cargo sources, skipping `cargo package`.~%"))
#t)
- 135/281: gnu: rust-windows-x86-64-msvc: Remove bundled library., (continued)
- 135/281: gnu: rust-windows-x86-64-msvc: Remove bundled library., guix-commits, 2023/02/22
- 139/281: gnu: rav1e: Fix building., guix-commits, 2023/02/22
- 140/281: gnu: librsvg: Adjust test suite., guix-commits, 2023/02/22
- 128/281: gnu: librsvg: Update to 2.54.4., guix-commits, 2023/02/22
- 155/281: gnu: Add rust-botan-sys-0.8., guix-commits, 2023/02/22
- 159/281: gnu: Add rust-cipher-0.4., guix-commits, 2023/02/22
- 161/281: gnu: Add rust-concolor-query-0.1., guix-commits, 2023/02/22
- 138/281: gnu: Add rust-1.67., guix-commits, 2023/02/22
- 130/281: gnu: rust-windows-aarch64-msvc: Remove bundled library., guix-commits, 2023/02/22
- 142/281: build: cargo-build-system: Don't try to package when skipping build., guix-commits, 2023/02/22
- 144/281: gnu: rust: Update to 1.67.,
guix-commits <=
- 145/281: gnu: Add rust-toml-datetime-0.6., guix-commits, 2023/02/22
- 148/281: gnu: rust-1.55: Explicitly use llvm-13., guix-commits, 2023/02/22
- 152/281: gnu: Add rust-base64-0.21., guix-commits, 2023/02/22
- 110/281: gnu: rust-ryu-1: Update to 1.0.12., guix-commits, 2023/02/22
- 107/281: gnu: rust-rand-pcg-0.3: Update to 0.3.1., guix-commits, 2023/02/22
- 116/281: gnu: rust-curl-sys-0.4: Update to 0.4.53+curl-7.82.0., guix-commits, 2023/02/22
- 115/281: gnu: rust-curl-0.4: Update to 0.4.43., guix-commits, 2023/02/22
- 125/281: gnu: newsboat: Update to 2.30.1., guix-commits, 2023/02/22
- 136/281: gnu: rust.scm: Sort packages alphabetically., guix-commits, 2023/02/22
- 169/281: gnu: rust-document-features-0.2: Update to 0.2.7., guix-commits, 2023/02/22