summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Calori <luigi.calori@gmail.com>2016-02-10 13:28:01 +0100
committerLuigi Calori <luigi.calori@gmail.com>2016-02-10 13:28:01 +0100
commit25e2be3efda2f70cf8d6c4e7b6089fbe9124c0d3 (patch)
tree046b5ed54e575e3a9fbdb6f627a7607d49a7bb29
parent4bf57ef56f1a4bdc0b95c7f39391a71b3cc834c2 (diff)
downloadspack-25e2be3efda2f70cf8d6c4e7b6089fbe9124c0d3.tar.gz
spack-25e2be3efda2f70cf8d6c4e7b6089fbe9124c0d3.tar.bz2
spack-25e2be3efda2f70cf8d6c4e7b6089fbe9124c0d3.tar.xz
spack-25e2be3efda2f70cf8d6c4e7b6089fbe9124c0d3.zip
RPATH was collecting all lib from all dependencies, when dep tree is deep like in ParaView the path was growing too much, showing install problems now just direct dependencies rpath is added
-rw-r--r--lib/spack/spack/build_environment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py
index b2db83acb7..1b87778080 100644
--- a/lib/spack/spack/build_environment.py
+++ b/lib/spack/spack/build_environment.py
@@ -237,9 +237,9 @@ def set_module_variables_for_package(pkg, m):
def get_rpaths(pkg):
"""Get a list of all the rpaths for a package."""
rpaths = [pkg.prefix.lib, pkg.prefix.lib64]
- rpaths.extend(d.prefix.lib for d in pkg.spec.traverse(root=False)
+ rpaths.extend(d.prefix.lib for d in pkg.spec.dependencies.values()
if os.path.isdir(d.prefix.lib))
- rpaths.extend(d.prefix.lib64 for d in pkg.spec.traverse(root=False)
+ rpaths.extend(d.prefix.lib64 for d in pkg.spec.dependencies.values()
if os.path.isdir(d.prefix.lib64))
return rpaths