From 46233c5f6ced0ad5e535a848527ad35309535b97 Mon Sep 17 00:00:00 2001 From: Pierre Langlois Date: Fri, 23 Nov 2018 11:58:06 +0000 Subject: [PATCH] gnu: rust: Do not run tests when building for bootstrapping. * gnu/packages/rust.scm (rust-bootstrapped-package): Add 'arguments' field that removes the check phase. --- gnu/packages/rust.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index a56faad079..40160de05c 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2017 Efraim Flashner ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2018 Danny Milosavljevic +;;; Copyright © 2018 Pierre Langlois ;;; ;;; This file is part of GNU Guix. ;;; @@ -91,7 +92,15 @@ (native-inputs (alist-replace "cargo-bootstrap" (list base-rust "cargo") (alist-replace "rustc-bootstrap" (list base-rust) - (package-native-inputs base-rust)))))) + (package-native-inputs base-rust)))) + (arguments + (substitute-keyword-arguments (package-arguments base-rust) + ((#:phases phases) + `(modify-phases ,phases + ;; Tests take a long time to run, as they do not run in parallel + ;; for stability reasons. Disable them when building rust for + ;; bootstrapping. + (delete 'check))))))) (define-public mrustc (let ((rustc-version "1.19.0")) -- 2.19.1