guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

23/25: gnu: rust: Fix building on riscv64-linux.


From: guix-commits
Subject: 23/25: gnu: rust: Fix building on riscv64-linux.
Date: Thu, 25 Jan 2024 04:55:54 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 8ba582a47ec1f4cf9e045c4792539740bc9d6da5
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Jan 25 08:27:50 2024 +0200

    gnu: rust: Fix building on riscv64-linux.
    
    * gnu/packages/rust.scm (rust)[arguments]: Add a phase when building for
    riscv64-linux to skip two tests.
    
    Change-Id: I5ea605efc794efb113022432b74c81e4626e2678
---
 gnu/packages/rust.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 164404111e..959b08b8d0 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -1060,6 +1060,19 @@ safety and thread safety guarantees.")
                    (substitute* "patch.rs"
                      ,@(make-ignore-test-list
                         '("fn gitoxide_clones_shallow_old_git_patch"))))))
+             ,@(if (target-riscv64?)
+                   ;; Keep this phase separate so it can be adjusted without 
needing
+                   ;; to adjust the skipped tests on other architectures.
+                   `((add-after 'unpack 'disable-tests-broken-on-riscv64
+                       (lambda _
+                         (with-directory-excursion 
"src/tools/cargo/tests/testsuite"
+                           (substitute* "build.rs"
+                             ,@(make-ignore-test-list
+                                 '("fn uplift_dwp_of_bin_on_linux")))
+                           (substitute* "cache_lock.rs"
+                             ,@(make-ignore-test-list
+                                 '("fn multiple_download")))))))
+                   `())
              (add-after 'unpack 'disable-tests-broken-on-aarch64
                (lambda _
                  (with-directory-excursion "src/tools/cargo/tests/testsuite/"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]