me
/
guix
Archived
1
0
Fork 0

gnu: petsc-openmpi: Fix header inclusions.

* gnu/packages/maths.scm (petsc-openmpi)[arguments]: Add
'patch-header-inclusions' phase.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Paul A. Patience 2022-05-02 13:28:28 +00:00 committed by Ludovic Courtès
parent 7855a9366b
commit a3b6a4df6c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 10 additions and 1 deletions

View File

@ -3174,7 +3174,16 @@ scientific applications modeled by partial differential equations.")
(("libptesmumps") "libesmumps")
(("libptscotchparmetis") "libptscotchparmetisv3"))))
(add-before 'configure 'mpi-setup
#$%openmpi-setup)))))
#$%openmpi-setup)
(add-after 'install 'patch-header-inclusions
;; TODO: Replace with patch-header-inclusions when (some form
;; of) https://issues.guix.gnu.org/54780#19 is merged.
(lambda _
(substitute* (string-append #$output "/include/petsclayouthdf5.h")
(("<(H5Ipublic.h)>" _ header)
(format #f "<~a/include/~a>"
#$(this-package-input "hdf5-parallel-openmpi")
header)))))))))
(synopsis "Library to solve PDEs (with MUMPS and MPI support)")))
(define-public petsc-complex-openmpi