Some fixups for Adam's callpath and adept-utils packages.

- Make spack packages RPATH *ALL* dependencies (i.e. the whole tree)
- prevents callpath link from finding wrong libelf -- always uses the one dyninst used.
This commit is contained in:
Todd Gamblin
2014-09-16 21:52:39 -07:00
parent 656cf12cda
commit a4c8e945c7
5 changed files with 12 additions and 10 deletions

View File

@@ -122,7 +122,7 @@ def set_build_environment_variables(pkg):
# Prefixes of all of the package's dependencies go in
# SPACK_DEPENDENCIES
dep_prefixes = [d.package.prefix for d in pkg.spec.dependencies.values()]
dep_prefixes = [d.prefix for d in pkg.spec.traverse(root=False)]
path_set(SPACK_DEPENDENCIES, dep_prefixes)
# Install prefix

View File

@@ -773,7 +773,7 @@ def do_uninstall(self, **kwargs):
' '.join(formatted_deps))
self.remove_prefix()
tty.msg("Successfully uninstalled %s." % self.spec)
tty.msg("Successfully uninstalled %s." % self.spec.short_spec)
# Once everything else is done, run post install hooks
spack.hooks.post_uninstall(self)

View File

@@ -121,7 +121,7 @@ def which(name, **kwargs):
for dir in path:
exe = os.path.join(dir, name)
if os.access(exe, os.X_OK):
if os.path.isfile(exe) and os.access(exe, os.X_OK):
return Executable(exe)
if required: