diff options
author | Martin Lang <67915889+lang-m@users.noreply.github.com> | 2024-11-04 10:47:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 10:47:54 +0100 |
commit | 1ee344c75c75b07769bb0b73024a9c59537fa333 (patch) | |
tree | ca6134a3f8cf90afe4b721a04c8e88e5ad150119 | |
parent | 754011643c83aefda92b43602456ca31c7703121 (diff) | |
download | spack-1ee344c75c75b07769bb0b73024a9c59537fa333.tar.gz spack-1ee344c75c75b07769bb0b73024a9c59537fa333.tar.bz2 spack-1ee344c75c75b07769bb0b73024a9c59537fa333.tar.xz spack-1ee344c75c75b07769bb0b73024a9c59537fa333.zip |
bigdft-futile: fix compilation for @1.9.5~mpi (#47292)
When compiled without MPI support, a fake mpi header is autogenerated during configure/build. The header is missing one symbol in version 1.9.5. The problem has since been fixed upstream.
A simular problem does also occur for 1.9.4. Unfortunately, the patch does not work for 1.9.4 and I also don't know if further fixes would be required for 1.9.4. Therefore, only the newest version 1.9.5 is patched.
-rw-r--r-- | var/spack/repos/builtin/packages/bigdft-futile/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/bigdft-futile/package.py b/var/spack/repos/builtin/packages/bigdft-futile/package.py index 94a66f100d..99bf739a1d 100644 --- a/var/spack/repos/builtin/packages/bigdft-futile/package.py +++ b/var/spack/repos/builtin/packages/bigdft-futile/package.py @@ -49,6 +49,14 @@ class BigdftFutile(AutotoolsPackage, CudaPackage): configure_directory = "futile" + # missing MPI_BOTTOM in fake mpif.h (generated when compiling without MPI support) + # similar issue (maybe others) also in 1.9.4 but this patch does not work for 1.9.4 + patch( + "https://gitlab.com/l_sim/bigdft-suite/-/commit/ec7419011fa9fd815de77bfca8642973091fb64b.diff", + sha256="66c493e37fe7f7f9800ae7f49bb0172a5b2372a2ce0ee4c3bcb7ff5c59a3925c", + when="@1.9.5~mpi", + ) + def configure_args(self): spec = self.spec prefix = self.prefix |