Subject: bug#35115: closed (Re: [bug#35115] [PATCH] gnu: rust: Update to 1.33.0)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 11 Apr 2019 10:55:02 +0000

Your bug report

#35115: [PATCH] gnu: rust: Update to 1.33.0

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
35115: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35115
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#35115] [PATCH] gnu: rust: Update to 1.33.0
From: Ludovic Courtès <[email-masked]>
To: Ivan Petkov <[email-masked]>
Cc: [email-masked]
Date: Thu, 11 Apr 2019 12:54:40 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Ivan,

Ivan Petkov <[email-masked]> skribis:

> * gnu/packages/rust.scm (rust): Rename to...
> (rust-1.32): ...this.
> (rust): New variable.

I added the new ‘rust’ variable and applied.

Thank you!

Ludo’.

Subject: [PATCH] gnu: rust: Update to 1.33.0
From: Ivan Petkov <[email-masked]>
To: [email-masked]
Cc: Danny Milosavljevic <[email-masked]>
Date: Tue, 2 Apr 2019 19:33:21 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/rust.scm (rust): Rename to...
(rust-1.32): ...this.
(rust): New variable.
---
 gnu/packages/rust.scm | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 63426a12fc..fb045afad4 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -928,7 +928,7 @@ jemalloc = \"" jemalloc "/lib/libjemalloc_pic.a" "\"
                    (("```rust") "```rust,no_run"))
                  #t)))))))))
 
-(define-public rust
+(define-public rust-1.32
   (let ((base-rust
          (rust-bootstrapped-package rust-1.31 "1.32.0"
           "0ji2l9xv53y27xy72qagggvq47gayr5lcv2jwvmfirx029vlqnac"
@@ -980,3 +980,28 @@ jemalloc = \"" jemalloc "/lib/libjemalloc_pic.a" "\"
              ;; Remove no longer relevant steps
              (delete 'remove-flaky-test)
              (delete 'patch-aarch64-test))))))))
+
+(define-public rust-1.33
+  (let ((base-rust
+         (rust-bootstrapped-package rust-1.32 "1.33.0"
+                                    "152x91mg7bz4ygligwjb05fgm1blwy2i70s2j03zc9jiwvbsh0as"
+                                    #:patches '())))
+    (package
+      (inherit base-rust)
+      (inputs
+       ;; Upgrade to [email-masked]
+       (alist-replace "jemalloc" (list jemalloc)
+                      (package-inputs base-rust)))
+      (arguments
+       (substitute-keyword-arguments (package-arguments base-rust)
+         ((#:phases phases)
+          `(modify-phases ,phases
+             (delete 'ignore-cargo-package-tests)
+             (add-after 'configure 'configure-test-threads
+               ;; Several rustc and cargo tests will fail if run on one core
+               ;; https://github.com/rust-lang/rust/issues/59122
+               ;; https://github.com/rust-lang/cargo/issues/6746
+               ;; https://github.com/rust-lang/rust/issues/58907
+               (lambda* (#:key inputs #:allow-other-keys)
+                 (setenv "RUST_TEST_THREADS" "2")
+                 #t)))))))))
-- 
2.21.0