unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#49956] [PATCH] gnu: Add rust-1.53.
@ 2021-08-09 13:49 Matthew James Kraai
  2021-10-16  5:42 ` bug#49956: " Maxim Cournoyer
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew James Kraai @ 2021-08-09 13:49 UTC (permalink / raw)
  To: 49956; +Cc: Matthew James Kraai

* gnu/packages/rust.scm (rust-1.53): New variable.
---
 gnu/packages/rust.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 73f94a3929..bb4da17243 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -10,7 +10,7 @@
 ;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com>
 ;;; Copyright © 2020, 2021 Jakub Kądziołka <kuba@kadziolka.net>
 ;;; Copyright © 2020 Pierre Langlois <pierre.langlois@gmx.com>
-;;; Copyright © 2020 Matthew James Kraai <kraai@ftbfs.org>
+;;; Copyright © 2020, 2021 Matthew James Kraai <kraai@ftbfs.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1474,5 +1474,31 @@ move around."
         (alist-replace "llvm" (list llvm-12)
                        (package-inputs base-rust))))))
 
+(define-public rust-1.53
+  (let ((base-rust
+         (rust-bootstrapped-package rust-1.52 "1.53.0"
+           "1f95p259dfp5ca118bg107rj3rqwlswy65dxn3hg8sqgl4wwmxsw")))
+    (package
+      (inherit base-rust)
+      (arguments
+       (substitute-keyword-arguments (package-arguments base-rust)
+         ((#:phases phases)
+          `(modify-phases ,phases
+             ;; Some tests got split out into separate files.
+             (replace 'patch-tests
+               (lambda* (#:key inputs #:allow-other-keys)
+                 (let ((bash (assoc-ref inputs "bash")))
+                   (substitute* "library/std/src/process/tests.rs"
+                     (("\"/bin/sh\"") (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"))
+                   (substitute* "src/test/codegen/alloc-optimisation.rs"
+                     (("// min-llvm-version: 10.0.1") "// no-system-llvm"))
+                   (substitute* "src/test/ui/asm/sym.rs"
+                     (("// min-llvm-version: 10.0.1") "// no-system-llvm"))
+                   #t))))))))))
+
 ;; TODO(staging): Bump this variable to the latest packaged rust.
 (define-public rust rust-1.45)
-- 
2.32.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#49956: [PATCH] gnu: Add rust-1.53.
  2021-08-09 13:49 [bug#49956] [PATCH] gnu: Add rust-1.53 Matthew James Kraai
@ 2021-10-16  5:42 ` Maxim Cournoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Maxim Cournoyer @ 2021-10-16  5:42 UTC (permalink / raw)
  To: Matthew James Kraai; +Cc: 49956-done

Hello,

Matthew James Kraai <kraai@ftbfs.org> writes:

> * gnu/packages/rust.scm (rust-1.53): New variable.
> ---
>  gnu/packages/rust.scm | 28 +++++++++++++++++++++++++++-
>  1 file changed, 27 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
> index 73f94a3929..bb4da17243 100644
> --- a/gnu/packages/rust.scm
> +++ b/gnu/packages/rust.scm
> @@ -10,7 +10,7 @@
>  ;;; Copyright © 2019 Ivan Petkov <ivanppetkov@gmail.com>
>  ;;; Copyright © 2020, 2021 Jakub Kądziołka <kuba@kadziolka.net>
>  ;;; Copyright © 2020 Pierre Langlois <pierre.langlois@gmx.com>
> -;;; Copyright © 2020 Matthew James Kraai <kraai@ftbfs.org>
> +;;; Copyright © 2020, 2021 Matthew James Kraai <kraai@ftbfs.org>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -1474,5 +1474,31 @@ move around."
>          (alist-replace "llvm" (list llvm-12)
>                         (package-inputs base-rust))))))
>  
> +(define-public rust-1.53
> +  (let ((base-rust
> +         (rust-bootstrapped-package rust-1.52 "1.53.0"
> +           "1f95p259dfp5ca118bg107rj3rqwlswy65dxn3hg8sqgl4wwmxsw")))
> +    (package
> +      (inherit base-rust)
> +      (arguments
> +       (substitute-keyword-arguments (package-arguments base-rust)
> +         ((#:phases phases)
> +          `(modify-phases ,phases
> +             ;; Some tests got split out into separate files.
> +             (replace 'patch-tests
> +               (lambda* (#:key inputs #:allow-other-keys)
> +                 (let ((bash (assoc-ref inputs "bash")))
> +                   (substitute* "library/std/src/process/tests.rs"
> +                     (("\"/bin/sh\"") (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"))
> +                   (substitute* "src/test/codegen/alloc-optimisation.rs"
> +                     (("// min-llvm-version: 10.0.1") "// no-system-llvm"))
> +                   (substitute* "src/test/ui/asm/sym.rs"
> +                     (("// min-llvm-version: 10.0.1") "// no-system-llvm"))
> +                   #t))))))))))
> +
>  ;; TODO(staging): Bump this variable to the latest packaged rust.
>  (define-public rust rust-1.45)

Apologies for the duplicated work, but that's been tackled as part of
the reduced rust bootstrap that you can currently inspect in the
core-updates-frozen-batched-changes branch (to be merged into
core-updates-frozen soonish).

Closing,

Thank you!

Maxim




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-16  5:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-09 13:49 [bug#49956] [PATCH] gnu: Add rust-1.53 Matthew James Kraai
2021-10-16  5:42 ` bug#49956: " Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).