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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
 
 | 
			
		||||
@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user