Buildcache: join rpaths returned by get_existing_elf_rpaths with ':'. (#15086)

This reproduces the behavior expected by patchelf_is_relocatable test.
This commit is contained in:
Patrick Gartung 2020-02-19 11:41:02 -06:00 committed by GitHub
parent f2aca86502
commit 14025e89f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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':