aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-12-08 16:08:08 +0200
committerEfraim Flashner <efraim@flashner.co.il>2022-12-08 19:53:38 +0200
commitd896a4d2ff1ffd7a5a41c41509f9516ddf7c1934 (patch)
treea97b2b7eebb25ec080e9439965132ea62f1f8b8b
parent02d591206259b30462764cb2f978ae214dea0449 (diff)
downloadguix-d896a4d2ff1ffd7a5a41c41509f9516ddf7c1934.tar
guix-d896a4d2ff1ffd7a5a41c41509f9516ddf7c1934.tar.gz
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.
-rw-r--r--gnu/packages/maths.scm9
1 files changed, 9 insertions, 0 deletions
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))