GNU bug report logs - #58942
[PATCH core-updates] gnu: rust: Use rust-1.63.0

Previous Next

Package: guix-patches;

Reported by: Matthew James Kraai <kraai <at> ftbfs.org>

Date: Tue, 1 Nov 2022 10:25:01 UTC

Severity: normal

Tags: patch

Done: Matthew James Kraai <kraai <at> ftbfs.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58942 in the body.
You can then email your comments to 58942 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#58942; Package guix-patches. (Tue, 01 Nov 2022 10:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Matthew James Kraai <kraai <at> ftbfs.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 01 Nov 2022 10:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Matthew James Kraai <kraai <at> ftbfs.org>
To: guix-patches <at> gnu.org
Cc: Matthew James Kraai <kraai <at> ftbfs.org>
Subject: [PATCH core-updates] gnu: rust: Use rust-1.63.0
Date: Tue,  1 Nov 2022 03:24:44 -0700
* gnu/packages/rust.scm (rust-1.61, rust-1.62, rust-1.63): New variables.
  (rust): Base on rust-1.63, add disable-tests-requiring-mercurial phase, and
  ignore more process tests.
---
 gnu/packages/rust.scm | 42 ++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 40 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index d6e8795698..0f8b8cc54e 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -591,6 +591,32 @@ (define rust-1.60
    ;; * error: unknown codegen option: `symbol-mangling-version`
    rust-1.59 "1.60.0" "1drqr0a26x1rb2w3kj0i6abhgbs3jx5qqkrcwbwdlx7n3inq5ji0"))
 
+(define rust-1.61
+  (rust-bootstrapped-package
+   ;; Verified that it *doesn't* build with 1.59. e.g.:
+   ;; * error[E0522]: definition of an unknown language item: `panic_no_unwind`
+   ;; * error[E0093]: unrecognized intrinsic function: `const_deallocate`
+   ;; * error: unrecognized platform-specific intrinsic function: `simd_as`
+   rust-1.60 "1.61.0" "1vfs05hkf9ilk19b2vahqn8l6k17pl9nc1ky9kgspaascx8l62xd"))
+
+(define rust-1.62
+  (rust-bootstrapped-package
+   ;; Verified that it *doesn't* build with 1.60. e.g.:
+   ;; error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
+   ;; error: expected `(`, found `{`
+   ;; error: expected one of: `*`, `+`, or `?`
+   rust-1.61 "1.62.1" "0gqkg34ic77dcvsz69qbdng6g3zfhl6hnhx7ha1mjkyrzipvxb3j"))
+
+(define rust-1.63
+  (rust-bootstrapped-package
+   ;; Verified that it *doesn't* build with 1.61. e.g.:
+   ;; error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
+   ;; error: cannot find attribute `rustc_has_incoherent_inherent_impls` in this scope
+   ;; error[E0522]: definition of an unknown language item: `from_yeet`
+   ;; error[E0093]: unrecognized intrinsic function: `ptr_offset_from_unsigned`
+   ;; error: unrecognized platform-specific intrinsic function: `simd_arith_offset`
+   rust-1.62 "1.63.0" "1l4rrbzhxv88pnfq94nbyb9m6lfnjwixma3mwjkmvvs2aqlq158z"))
+
 ;;; Note: Only the latest versions of Rust are supported and tested.  The
 ;;; intermediate rusts are built for bootstrapping purposes and should not
 ;;; be relied upon.  This is to ease maintenance and reduce the time
@@ -599,7 +625,7 @@ (define rust-1.60
 ;;; 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.63))
     (package
       (inherit base-rust)
       (outputs (cons "rustfmt" (package-outputs base-rust)))
@@ -641,6 +667,14 @@ (define-public rust
                     "#[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/mercurial_autodetect/mod.rs"
+                   (("fn mercurial_autodetect")
+                    "#[ignore]\nfn mercurial_autodetect"))
+                 (substitute* "src/tools/cargo/tests/testsuite/init/simple_hg_ignore_exists/mod.rs"
+                   (("fn simple_hg_ignore_exists")
+                    "#[ignore]\nfn simple_hg_ignore_exists"))))
              (add-after 'unpack 'patch-command-exec-tests
                ;; This test suite includes some tests that the stdlib's
                ;; `Command` execution properly handles in situations where
@@ -676,7 +710,11 @@ (define-public rust
                      (("fn test_process_mask")
                       "#[allow(unused_attributes)]
     #[ignore]
-    fn test_process_mask")))))
+    fn test_process_mask")
+                     (("fn test_process_group_no_posix_spawn")
+                      "#[ignore]\nfn test_process_group_no_posix_spawn")
+                     (("fn test_process_group_posix_spawn")
+                      "#[ignore]\nfn test_process_group_posix_spawn")))))
              (add-after 'unpack 'disable-interrupt-tests
                (lambda _
                  ;; This test hangs in the build container; disable it.
-- 
2.38.0





Information forwarded to guix-patches <at> gnu.org:
bug#58942; Package guix-patches. (Thu, 10 Nov 2022 14:27:02 GMT) Full text and rfc822 format available.

Message #8 received at 58942 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: Matthew James Kraai <kraai <at> ftbfs.org>
Cc: 58942 <at> debbugs.gnu.org
Subject: Re: [bug#58942] [PATCH core-updates] gnu: rust: Use rust-1.63.0
Date: Thu, 10 Nov 2022 09:25:48 -0500
On Tue, Nov 1, 2022 at 6:25 AM Matthew James Kraai <kraai <at> ftbfs.org> wrote:
>
> * gnu/packages/rust.scm (rust-1.61, rust-1.62, rust-1.63): New variables.
>   (rust): Base on rust-1.63, add disable-tests-requiring-mercurial phase, and
>   ignore more process tests.

I am not a committer but did need a newer version of rust and this
built and works for me on master.

Greg Hogan




Reply sent to Matthew James Kraai <kraai <at> ftbfs.org>:
You have taken responsibility. (Wed, 16 Nov 2022 13:20:02 GMT) Full text and rfc822 format available.

Notification sent to Matthew James Kraai <kraai <at> ftbfs.org>:
bug acknowledged by developer. (Wed, 16 Nov 2022 13:20:02 GMT) Full text and rfc822 format available.

Message #13 received at 58942-done <at> debbugs.gnu.org (full text, mbox):

From: Matthew James Kraai <kraai <at> ftbfs.org>
To: 58942-done <at> debbugs.gnu.org
Subject: Close 58942
Date: Wed, 16 Nov 2022 05:19:40 -0800
Close 58942 because Rust 1.65 is already available on the master branch.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 15 Dec 2022 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 278 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.