diff options
author | Hector Martinez-Seara <hseara@gmail.com> | 2023-02-15 01:17:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 16:17:37 -0800 |
commit | 1894b64851f0ecd87e05a268794da1be398faba4 (patch) | |
tree | 0ec342ddf18530361bf364fa7077f567558e2884 /var | |
parent | 9551312e9d8c5fa0769feacfd98eb86f41ede6b5 (diff) | |
download | spack-1894b64851f0ecd87e05a268794da1be398faba4.tar.gz spack-1894b64851f0ecd87e05a268794da1be398faba4.tar.bz2 spack-1894b64851f0ecd87e05a268794da1be398faba4.tar.xz spack-1894b64851f0ecd87e05a268794da1be398faba4.zip |
Orca: Added required runtime libraries (#35481)
* Update package.py
Several libraries are need to be present at run time so that the code can be run in parallel.
I have added them as dependencies and to LD_LIBRARY_PATH. Orca comes as a binary so the libraries cannot be added as RPATH at compilation time.
Also, orca 5.0.3 was compiled against 4.1.1, not 4.1.2.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/orca/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/orca/package.py b/var/spack/repos/builtin/packages/orca/package.py index f1ed55c1ba..9195c58da0 100644 --- a/var/spack/repos/builtin/packages/orca/package.py +++ b/var/spack/repos/builtin/packages/orca/package.py @@ -49,6 +49,8 @@ class Orca(Package): ) depends_on("zstd", when="@:4.2.1", type="build") + depends_on("libevent", type="run") + depends_on("libpciaccess", type="run") # Map Orca version with the required OpenMPI version openmpi_versions = { @@ -98,3 +100,6 @@ class Orca(Package): # In 5.0.3-f.1 an RPATH is set to $ORGIN/../lib if not self.spec.satisfies("@5.0.3-f.1"): env.prepend_path("LD_LIBRARY_PATH", self.prefix.bin) + env.prepend_path("LD_LIBRARY_PATH", self.spec["libevent"].prefix.lib) + env.prepend_path("LD_LIBRARY_PATH", self.spec["libpciaccess"].prefix.lib) + env.prepend_path("LD_LIBRARY_PATH", self.spec["openmpi"].prefix.lib) |