[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#50080] [PATCH v3 1/4] gnu: petsc-openmpi: Fix header inclusions.
From: |
Paul A. Patience |
Subject: |
[bug#50080] [PATCH v3 1/4] gnu: petsc-openmpi: Fix header inclusions. |
Date: |
Mon, 02 May 2022 13:28:28 +0000 |
* gnu/packages/maths.scm (petsc-openmpi)[arguments]: Add
'patch-header-inclusions' phase.
---
gnu/packages/maths.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index fcd9c5482f..2922d95a70 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -3174,7 +3174,16 @@ (define-public petsc-openmpi
(("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
--
2.36.0
- [bug#50080] [PATCH v3 0/4] gnu: sundials: Fix various issues and update to 6.2.0., Paul A. Patience, 2022/05/02
- [bug#50080] [PATCH v3 1/4] gnu: petsc-openmpi: Fix header inclusions.,
Paul A. Patience <=
- [bug#50080] [PATCH v3 3/4] gnu: sundials-openmpi: Add HYPRE dependency., Paul A. Patience, 2022/05/02
- [bug#50080] [PATCH v3 2/4] gnu: sundials: Fix various issues., Paul A. Patience, 2022/05/02
- [bug#50080] [PATCH v3 4/4] gnu: sundials: Update to 6.2.0., Paul A. Patience, 2022/05/02
- bug#50080: [PATCH] gnu: sundials, dealii: Update sundials to 5.7.0 and add to dealii inputs., Ludovic Courtès, 2022/05/03