me
/
guix
Archived
1
0
Fork 0

gnu: dune-istl: Fix build failure.

* gnu/packages/maths.scm (dune-istl)[arguments]: Add phase 'hide-gfortran'.
master
Marius Bakke 2020-04-14 22:29:35 +02:00
parent 83e6b0640a
commit f7cbf403ef
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 12 additions and 0 deletions

View File

@ -4863,6 +4863,18 @@ This package contains the basic DUNE grid classes.")
(arguments
`(#:phases
(modify-phases %standard-phases
;; XXX: istl/test/matrixtest.cc includes <fenv.h> and fails to find
;; the stdlib types when the gfortran header is used. Remove gfortran
;; from CPLUS_INCLUDE_PATH as a workaround.
(add-after 'set-paths 'hide-gfortran
(lambda* (#:key inputs #:allow-other-keys)
(let ((gfortran (assoc-ref inputs "gfortran")))
(setenv "CPLUS_INCLUDE_PATH"
(string-join
(delete (string-append gfortran "/include/c++")
(string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
":"))
#t)))
(add-after 'build 'build-tests
(lambda* (#:key make-flags #:allow-other-keys)
(apply invoke "make" "build_tests" make-flags))))))