hdf-eos5: Fix issue when linking against hdf5+szip (#23411) (#23412)

* hdf-eos5: Fix issue when linking against hdf5+szip (#23411)

Should fix issue #23411 when linking against hdf5+szip

Also fix bug if hdf5 does not depend on zlib

Reluctantly added payerle as a maintainer
This commit is contained in:
Tom Payerle 2021-06-05 07:44:49 -04:00 committed by GitHub
parent af3ebeeea1
commit 9f8e40e95c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,6 +46,8 @@ class HdfEos5(AutotoolsPackage):
conflicts('~static', when='~shared',
msg='At least one of +static or +shared must be set')
maintainers = ['payerle']
# Build dependencies
depends_on('hdf5+hl')
@ -92,7 +94,10 @@ def configure_args(self):
# Provide config args for dependencies
extra_args.append('--with-hdf5={0}'.format(self.spec['hdf5'].prefix))
if self.spec['zlib']:
if 'szip' in self.spec:
extra_args.append('--with-szlib={0}'.format(
self.spec['libszip'].prefix))
if 'zlib' in self.spec:
extra_args.append('--with-zlib={0}'.format(
self.spec['zlib'].prefix))