From 2b07379831f9f641aa45295b058f8c43d3f506f0 Mon Sep 17 00:00:00 2001 From: Satish Balay Date: Thu, 9 Nov 2017 13:34:59 -0600 Subject: petsc: when hdf5 depends on zlib - petsc+hdf5 should also be configur… (#6189) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * petsc: when hdf5 depends on zlib - petsc+hdf5 should also be configured with zlib * petsc: fix dependency [of zlib to be on hdf5 - and not on petsc] * petsc: use the fact that hdf5/package.py has a hard dependency on zlib [so no need to check for this dependency in code] recommended-by: @davydden * petsc: change hdf5 dependency to 'hdf5+hl' as petsc configure is looing for -lhdf5_hl https://github.com/spack/spack/issues/5846 --- var/spack/repos/builtin/packages/petsc/package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index b0b9b85911..b2ded43d95 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -113,7 +113,8 @@ class Petsc(Package): depends_on('metis@5:~int64+real64', when='+metis~int64+double') depends_on('metis@5:+int64', when='+metis+int64~double') - depends_on('hdf5+mpi', when='+hdf5+mpi') + depends_on('hdf5+mpi+hl', when='+hdf5+mpi') + depends_on('zlib', when='+hdf5') depends_on('parmetis', when='+metis+mpi') # Hypre does not support complex numbers. # Also PETSc prefer to build it without internal superlu, likely due to @@ -211,7 +212,7 @@ class Petsc(Package): # Activates library support if needed for library in ('metis', 'boost', 'hdf5', 'hypre', 'parmetis', - 'mumps', 'trilinos'): + 'mumps', 'trilinos', 'zlib'): options.append( '--with-{library}={value}'.format( library=library, value=('1' if library in spec else '0')) -- cgit v1.2.3-70-g09d2