efraim pushed a commit to branch master
in repository guix.

commit d896a4d2ff1ffd7a5a41c41509f9516ddf7c1934
Author: Efraim Flashner <efr...@flashner.co.il>
AuthorDate: Thu Dec 8 16:08:08 2022 +0200

    gnu: suitesparse: Skip building graphblas on riscv64-linux.
    
    * gnu/packages/maths.scm (suitesparse)[arguments]: Add a phase when
    building for riscv64-linux to skip building graphblas.
---
 gnu/packages/maths.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 27b8eaf60d..aee050735e 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4977,6 +4977,15 @@ Fresnel integrals, and similar related functions as 
well.")
              "library")
        #:phases
        (modify-phases %standard-phases
+         ,@(if (target-riscv64?)
+             ;; GraphBLAS FTBFS on riscv64-linux
+             `((add-after 'unpack 'skip-graphblas
+                 (lambda _
+                   (substitute* "Makefile"
+                     ((".*cd GraphBLAS.*") "")
+                     (("metisinstall gbinstall moninstall")
+                     "metisinstall moninstall")))))
+             '())
          (delete 'configure))))         ;no configure script
     (inputs
      (list tbb openblas gmp mpfr metis))

Reply via email to