From 78894645eb28455d564252150e86c8772f6c0b12 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 14 Sep 2017 19:08:03 +0200 Subject: [PATCH] ADIOS: Fix Build (Autotools) (#5363) This fixes the build of the ADIOS package. The `with_or_without` interface of the Autotools builds seems to have changed, this fixes it. --- .../repos/builtin/packages/adios/package.py | 34 +++++++++++++------ 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/var/spack/repos/builtin/packages/adios/package.py b/var/spack/repos/builtin/packages/adios/package.py index 91188b8e4e..01013958de 100644 --- a/var/spack/repos/builtin/packages/adios/package.py +++ b/var/spack/repos/builtin/packages/adios/package.py @@ -49,17 +49,26 @@ class Adios(AutotoolsPackage): variant('fortran', default=False, description='Enable Fortran bindings support') - variant('mpi', default=True, description='Enable MPI support') - variant('infiniband', default=False, description='Enable infiniband support') + variant('mpi', default=True, + description='Enable MPI support') + variant('infiniband', default=False, + description='Enable infiniband support') # transforms - variant('zlib', default=True, description='Enable zlib transform support') - variant('bzip2', default=False, description='Enable bzip2 transform support') - variant('szip', default=False, description='Enable szip transform support') - variant('zfp', default=True, description='Enable ZFP transform support') - variant('sz', default=True, description='Enable SZ transform support') + variant('zlib', default=True, + description='Enable zlib transform support') + variant('bzip2', default=False, + description='Enable bzip2 transform support') + variant('szip', default=False, + description='Enable szip transform support') + variant('zfp', default=True, + description='Enable ZFP transform support') + variant('sz', default=True, + description='Enable SZ transform support') # transports and serial file converters - variant('hdf5', default=False, description='Enable parallel HDF5 transport and serial bp2h5 converter') + variant('hdf5', default=False, + description='Enable parallel HDF5 transport and serial bp2h5 ' + + 'converter') variant('netcdf', default=False, description='Enable netcdf support') variant( @@ -142,7 +151,7 @@ def configure_args(self): env['MPICC'] = spec['mpi'].mpicc env['MPICXX'] = spec['mpi'].mpicxx - extra_args += self.with_or_without('mpi', activation='prefix') + extra_args += self.with_or_without('mpi', activation_value='prefix') extra_args += self.with_or_without('infiniband') # Transforms @@ -152,7 +161,7 @@ def configure_args(self): variants += ['hdf5', 'netcdf'] for x in variants: - extra_args += self.with_or_without(x, activation='prefix') + extra_args += self.with_or_without(x, activation_value='prefix') # Staging transports def with_staging(name): @@ -160,6 +169,9 @@ def with_staging(name): return spec['libevpath'].prefix return spec[name].prefix - extra_args += self.with_or_without('staging', activation=with_staging) + extra_args += self.with_or_without( + 'staging', + activation_value=with_staging + ) return extra_args