diff options
author | Federico Padua <padua@uni-mainz.de> | 2017-03-03 01:33:36 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-03-02 18:33:36 -0600 |
commit | ecca9abc729df54017ed43d836eacfc6825be29e (patch) | |
tree | 98d0b15561f320381d3b4681705c04322faf58d0 | |
parent | a7be0d4e5d9dcfd189fd8e7a9240fab7218c73b5 (diff) | |
download | spack-ecca9abc729df54017ed43d836eacfc6825be29e.tar.gz spack-ecca9abc729df54017ed43d836eacfc6825be29e.tar.bz2 spack-ecca9abc729df54017ed43d836eacfc6825be29e.tar.xz spack-ecca9abc729df54017ed43d836eacfc6825be29e.zip |
Ior package: fix build issues (#3276)
This commits address build issues reported in issue #3268.
In particular, makes cleaner the dependency on parallel-netcdf
when +ncmpi variant is requested and adds CFLAGS=-D H5_USE_16_API
to handle the fact that Ior uses old 1.6 style APIs when +hdf5 is
requested.
These changes make Ior build fine and create modules for HDF5 versions
1.8.x and 1.10.0.
Even though build is successfull the modules haven't been tested in a
run.
-rw-r--r-- | var/spack/repos/builtin/packages/ior/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ior/package.py b/var/spack/repos/builtin/packages/ior/package.py index b8825c0fe4..04e32d8887 100644 --- a/var/spack/repos/builtin/packages/ior/package.py +++ b/var/spack/repos/builtin/packages/ior/package.py @@ -40,7 +40,7 @@ class Ior(Package): depends_on('mpi') depends_on('hdf5+mpi', when='+hdf5') - depends_on('netcdf+mpi', when='+ncmpi') + depends_on('parallel-netcdf', when='+ncmpi') def install(self, spec, prefix): os.system('./bootstrap') @@ -52,6 +52,7 @@ class Ior(Package): if '+hdf5' in spec: config_args.append('--with-hdf5') + config_args.append('CFLAGS=-D H5_USE_16_API') else: config_args.append('--without-hdf5') |