diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2016-08-17 13:03:56 -0500 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2016-08-17 13:03:56 -0500 |
commit | 4d12c5455a18e14b77badca5e27743af47339947 (patch) | |
tree | 375bc56ced8bd411d7e720e3f7bb585d398c7fa0 /var | |
parent | 7f57405eac19fd2f28d32e7c69348112653ad6e8 (diff) | |
download | spack-4d12c5455a18e14b77badca5e27743af47339947.tar.gz spack-4d12c5455a18e14b77badca5e27743af47339947.tar.bz2 spack-4d12c5455a18e14b77badca5e27743af47339947.tar.xz spack-4d12c5455a18e14b77badca5e27743af47339947.zip |
Fix NetCDF/HDF5 dependency resolution problems
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/netcdf/package.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/netcdf/package.py b/var/spack/repos/builtin/packages/netcdf/package.py index ab40c14340..9b4d80119c 100644 --- a/var/spack/repos/builtin/packages/netcdf/package.py +++ b/var/spack/repos/builtin/packages/netcdf/package.py @@ -50,10 +50,15 @@ class Netcdf(Package): # Required for NetCDF-4 support depends_on("zlib") - depends_on('hdf5@:1.8+mpi', when='@:4.4.0+mpi') - depends_on('hdf5+mpi', when='@4.4.1:+mpi') - depends_on('hdf5@:1.8~mpi', when='@:4.4.0~mpi') - depends_on('hdf5~mpi', when='@4.4.1:~mpi') + depends_on('hdf5') + + # Variant forwarding + depends_on('hdf5+mpi', when='+mpi') + depends_on('hdf5~mpi', when='~mpi') + + # NetCDF 4.4.0 and prior have compatibility issues with HDF5 1.10 and later + # https://github.com/Unidata/netcdf-c/issues/250 + depends_on('hdf5@:1.8', when='@:4.4.0') def install(self, spec, prefix): # Environment variables |