Abinit fix hdf5 (#44763)

* abinit: fix locating HDF5
Remove the check in the configure script to locate HDF5.  Replaced by using
Spack to locate the package.
This commit is contained in:
downloadico 2024-06-18 16:28:11 -06:00 committed by GitHub
parent 37e2d46d7d
commit 6b052c3af9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -316,6 +316,16 @@ def check(self):
if "~mpi" in self.spec:
make("tests_in")
# Abinit assumes the *old* behavior of HDF5 where the library flags to link
# to the library were stored in the lib/libhdf5.settings file.
# Spack already knows how to link to HDF5, disable this check in configure
def patch(self):
filter_file(
r"sd_hdf5_libs_extra=.*",
"sd_hdf5_libs_extra=%s" % self.spec["hdf5"].libs.ld_flags,
"configure",
)
def install(self, spec, prefix):
make("install")
if "+install-tests" in spec: