From f40bc7354c0534febcec0cb7496b575e4e75acc5 Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Wed, 11 Aug 2021 20:41:53 -0400 Subject: [PATCH 1/6] gnu: sundials-openmpi: Fix compilation with PETSc. Without HDF5 in PETSc's propagated inputs, SUNDIALS's configure script disables PETSc support (even though it is requested in the configure flags) because it fails to compile a test program which includes a PETSc header which itself includes an HDF5 header. * gnu/packages/maths.scm (petsc-openmpi)[inputs]: Move hdf5-parallel-openmpi to... [propagated-inputs]: ...here. --- gnu/packages/maths.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index ce9515fb35..29a4aa4c07 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -2724,14 +2724,15 @@ scientific applications modeled by partial differential equations.") (package (inherit petsc) (name "petsc-openmpi") (inputs - `(("hdf5" ,hdf5-parallel-openmpi) - ("hypre" ,hypre-openmpi) + `(("hypre" ,hypre-openmpi) ("metis" ,metis) ("mumps" ,mumps-openmpi) ("openmpi" ,openmpi) ("scalapack" ,scalapack) ("scotch" ,pt-scotch32) ,@(package-inputs petsc))) + (propagated-inputs + `(("hdf5" ,hdf5-parallel-openmpi))) ; petscis.h includes H5Ipublic.h. (arguments (substitute-keyword-arguments (package-arguments petsc) ((#:configure-flags cf) -- 2.32.0