From 14025e89f63327bac5bbab081b227411ffda4623 Mon Sep 17 00:00:00 2001 From: Patrick Gartung Date: Wed, 19 Feb 2020 11:41:02 -0600 Subject: Buildcache: join rpaths returned by get_existing_elf_rpaths with ':'. (#15086) This reproduces the behavior expected by patchelf_is_relocatable test. --- lib/spack/spack/relocate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/relocate.py b/lib/spack/spack/relocate.py index 87de08c9b2..6847127efb 100644 --- a/lib/spack/spack/relocate.py +++ b/lib/spack/spack/relocate.py @@ -693,7 +693,7 @@ def file_is_relocatable(file, paths_to_relocate=None): if platform.system().lower() == 'linux': if m_subtype == 'x-executable' or m_subtype == 'x-sharedlib': - rpaths = set(get_existing_elf_rpaths(file)) + rpaths = ':'.join(get_existing_elf_rpaths(file)) set_of_strings.discard(rpaths) if platform.system().lower() == 'darwin': if m_subtype == 'x-mach-binary': -- cgit v1.2.3-70-g09d2