summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordownloadico <download@carc.unm.edu>2024-06-18 16:28:11 -0600
committerGitHub <noreply@github.com>2024-06-18 16:28:11 -0600
commit6b052c3af9c9b868f0bb4d75d532ab8540d43a0d (patch)
tree6f438c7c4969ed6e09088caf0362e4fe43c69fa7
parent37e2d46d7dd947a06598f2a3bdc0121dc0697e6a (diff)
downloadspack-6b052c3af9c9b868f0bb4d75d532ab8540d43a0d.tar.gz
spack-6b052c3af9c9b868f0bb4d75d532ab8540d43a0d.tar.bz2
spack-6b052c3af9c9b868f0bb4d75d532ab8540d43a0d.tar.xz
spack-6b052c3af9c9b868f0bb4d75d532ab8540d43a0d.zip
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.
-rw-r--r--var/spack/repos/builtin/packages/abinit/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/abinit/package.py b/var/spack/repos/builtin/packages/abinit/package.py
index 47c69fc402..609e16b00c 100644
--- a/var/spack/repos/builtin/packages/abinit/package.py
+++ b/var/spack/repos/builtin/packages/abinit/package.py
@@ -316,6 +316,16 @@ class Abinit(AutotoolsPackage):
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: