summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <me@harmenstoppels.nl>2024-05-23 16:05:10 +0200
committerGitHub <noreply@github.com>2024-05-23 14:05:10 +0000
commit92000e81b870073213970725de0ceaff6f900f2c (patch)
tree2aefb3b29526e3fe4feea639074344ef9da69e02
parent125175ae25be852b8d84db488cc5cb3b32bd379f (diff)
downloadspack-92000e81b870073213970725de0ceaff6f900f2c.tar.gz
spack-92000e81b870073213970725de0ceaff6f900f2c.tar.bz2
spack-92000e81b870073213970725de0ceaff6f900f2c.tar.xz
spack-92000e81b870073213970725de0ceaff6f900f2c.zip
absolutify_elf_sonames.py: fix _patchelf (#44343)
-rw-r--r--lib/spack/spack/hooks/absolutify_elf_sonames.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/spack/spack/hooks/absolutify_elf_sonames.py b/lib/spack/spack/hooks/absolutify_elf_sonames.py
index d203c6d1ef..654e313fc5 100644
--- a/lib/spack/spack/hooks/absolutify_elf_sonames.py
+++ b/lib/spack/spack/hooks/absolutify_elf_sonames.py
@@ -13,7 +13,6 @@ import spack.bootstrap
import spack.config
import spack.relocate
from spack.util.elf import ElfParsingError, parse_elf
-from spack.util.executable import Executable
def is_shared_library_elf(filepath):
@@ -149,10 +148,9 @@ def post_install(spec, explicit=None):
return
# Should failing to locate patchelf be a hard error?
- patchelf_path = spack.relocate._patchelf()
- if not patchelf_path:
+ patchelf = spack.relocate._patchelf()
+ if not patchelf:
return
- patchelf = Executable(patchelf_path)
fixes = find_and_patch_sonames(spec.prefix, spec.package.non_bindable_shared_objects, patchelf)