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 @@ def setup_run_environment(self, env): # 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)