[PATCH] gnu: rust: update to 1.77.0

  • Done
  • quality assurance status badge
Details
2 participants
  • Brennan Vincent
  • Efraim Flashner
Owner
unassigned
Submitted by
Brennan Vincent
Severity
normal

Debbugs page

B
B
Brennan Vincent wrote on 24 Mar 07:27 -0700
(address . guix-patches@gnu.org)
20240324142738.353171-1-brennan@umanwizard.com
* gnu/packages/rust.scm (rust-1.77): New variable.
* gnu/packages/rust.scm (rust): Base main rust package on rust-1.77.

Change-Id: Ia4611b0ea153bce1de97e711af6d3f7396a6bf85
---
gnu/packages/rust.scm | 29 +++++++++++++++++++++++++++--
1 file changed, 27 insertions(+), 2 deletions(-)

Toggle diff (56 lines)
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index e4cc14d26d..fc9a003f9b 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -957,6 +957,31 @@ (define-public rust-1.76
(inputs (modify-inputs (package-inputs base-rust)
(replace "llvm" llvm-17))))))
+(define-public rust-1.77
+ (let ((base-rust (rust-bootstrapped-package rust-1.76 "1.77.0"
+ "11rda8d8qj24a5mkjzj1x6x9pkvaq0zlhkgdp5b39zj5m0gwsv0d")))
+ (package
+ (inherit base-rust)
+ (arguments
+ (substitute-keyword-arguments (package-arguments base-rust)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'configure 'no-optimized-compiler-builtins
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Pre-1.77, the behavior was equivalent to this flag being
+ ;; "false" if the llvm-project submodule wasn't checked out.
+ ;;
+ ;; Now there's an explicit check, so the build fails if we don't
+ ;; manually disable this (given that we don't have the submodule checked out).
+ ;; Thus making the build behave the same as it did in 1.76 and earlier.
+ ;;
+ ;; TODO - make the build system depend on system llvm for this, so we
+ ;; can get the performance benefits of setting this to true?
+ (substitute* "config.toml"
+ (("\\[build\\]")
+ "[build]
+optimized-compiler-builtins = false")))))))))))
+
(define (make-ignore-test-list strs)
"Function to make creating a list to ignore tests a bit easier."
(map (lambda (str)
@@ -971,7 +996,7 @@ (define (make-ignore-test-list strs)
;;; 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.76))
+ (let ((base-rust rust-1.77))
(package
(inherit base-rust)
(properties (append
@@ -1139,7 +1164,7 @@ (define-public rust
;; The three tests which are known to fail upstream on QEMU
;; emulation on aarch64 and riscv64 also fail on x86_64 in
;; Guix's build system. Skip them on all builds.
- (substitute* "sys/unix/process/process_common/tests.rs"
+ (substitute* "sys/pal/unix/process/process_common/tests.rs"
;; We can't use make-ignore-test-list because we will get
;; build errors due to the double [ignore] block.
(("target_arch = \"arm\"" arm)
--
2.41.0
E
E
Efraim Flashner wrote on 26 Mar 03:34 -0700
(name . Brennan Vincent)(address . brennan@umanwizard.com)(address . 69981@debbugs.gnu.org)
ZgKktbBEJplEqMDN@3900XT
Thanks. I've applied it locally and I'll push it to the rust-team branch
after I see that it also builds successfully on aarch64 and riscv64.

--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmYCpLUACgkQQarn3Mo9
g1EdJw/8CQ/PeDOqmOpJGRQ/LKJ/SsHLuaHFd/v5EW8sn82VTM25SOiNqJvUN/97
a+dOZwvGnkvRfQ4bZBLopyajjUqr+xictNWbu0L/wC5tyPDD1ROGxEV1+GsKYprB
aRCAVM8/UjwtNZB/QYxwhoGQ6smoMUt52j6snICsGjcg/79wL/ys70ICffsm6V4u
1oa/LEgEjr8VbvPD3/SFsERXU4GG2RJMJ7NGKSJL2vWrhZDiNAi5GkyQDr566Kf1
dsDiFvXm9dg6aBJyODIT5fWa25BzUvA1ixyeFBggKvbeFV8mp8ls7O1E57hpw6XG
yjNQS9uJIr1JSRl2bU7LUN3w8ACRToRqV+J07wBJehK7kPL0z2hyCuZpXcSnubTG
Sz6YfAy9o6Co161nVOM8HLSKSl7XWs2yk9teHQ2+lC+pMsYbeY7NANm4G3PqfWTH
BNI+P42b4+xoOOfLKcGd0MC4kdJ06TcSKqnnvunaG/mMKBU2QPTh75TVWKiM0EmE
3dlqaaUhDYnQL5+g3avPcZHhz0dgYUYoulfWoCLL/TIf06RIP0ZsfP7Y3+EoD8Hx
99DgzDrKGcJmyxIEtqLU+4frKGI6noL4EnwJAQ8lVg2fKa1MsC11iYR12ig6Jn88
5a59RHYVvaPuSNjrxWUeb10Jy+F/jHFLKwVX8qmOB83yhK2zDOs=
=JctF
-----END PGP SIGNATURE-----


E
E
Efraim Flashner wrote on 2 Apr 06:25 -0700
Re: [bug#69981] [PATCH] gnu: rust: update to 1.77.0
(address . 69981-done@debbugs.gnu.org)
ZgwHMt1RYS-SX2vI@3900XT
Looks like I forgot to close the bug.

--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmYMBzIACgkQQarn3Mo9
g1E2dg//XeByTX+9KblU9VOOA1wwdvshSk5eN4hZ/rbNca5jBl0XrEWLmXpJDG1k
iIZrqJpKVPHJEXLxN33Nikrb90zoXTXs1jjr+KaI6OsGhZprbkCVGyGPo+gupIRb
ak6AjpJhKT3n159Owphqfy/q1Z2w5dNUk0B0DCEg+zu0c74cwv5MgZGk4bo6xRiI
6ldQ4Nqfos02t/TNYaAAEP9JTfBW/gDBsBBzjOVlmZ7wwsgx8jRkQ2cx+vU2v8wa
TeH7oYw9XMrUWLWT2ZliiBrzP0A47IXjVq9yNoM1TDARCTdhe5gtnq8TOHIJxwkp
DNlPg/XS9n8yJ6ZIazoB0afUhaX7VZfQKImbDjQQaVDotpZNsryO7fu2li92BiEo
drOPLvexEJ665sCu6ph59mjy7Os9dhNSaOvDvQCBjcI2UFNJsTKxlSaFIwD4JGDi
B2fU+VjT3nHGBdO4SoaXq4g0dsg+Ncv21FJ5t8W38hpZwuvjjX6YNmTCXg2SMsXr
2TngkCUCxEvu/oHTZnihwAedG1Xbn4rH+SRdAdkPpVVlT/6M9YypZwZ6iIGqPldk
sjowxAVrgvXsKHAraXGjq6mdI/snVytGbobLY7Ri4t9lznqzRjkwGI5mFAjGUC4e
SBntLywAVhs06auHzVyH73THTqqGaDpdjAL0eHMS8lOhZ3+9fSs=
=rf3e
-----END PGP SIGNATURE-----


Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 69981@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 69981
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch