summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSatish Balay <balay@mcs.anl.gov>2017-11-09 13:34:59 -0600
committerTodd Gamblin <tgamblin@llnl.gov>2017-11-09 11:34:59 -0800
commit2b07379831f9f641aa45295b058f8c43d3f506f0 (patch)
treeedc98335910381f6495f5587cd53d582e9d7dfd7 /var
parent8d512ce9ae9a8b71c7442f327c595ac476b261af (diff)
downloadspack-2b07379831f9f641aa45295b058f8c43d3f506f0.tar.gz
spack-2b07379831f9f641aa45295b058f8c43d3f506f0.tar.bz2
spack-2b07379831f9f641aa45295b058f8c43d3f506f0.tar.xz
spack-2b07379831f9f641aa45295b058f8c43d3f506f0.zip
petsc: when hdf5 depends on zlib - petsc+hdf5 should also be configur… (#6189)
* 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
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/petsc/package.py5
1 files changed, 3 insertions, 2 deletions
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'))