Merge pull request #6569 from sjackman/portable-ruby

Do not run patchelf on portable-ruby [Linux]
This commit is contained in:
Mike McQuaid 2019-10-09 19:26:25 +01:00 committed by GitHub
commit 108080908f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,10 +3,9 @@
class Keg
def relocate_dynamic_linkage(relocation)
# Patching the dynamic linker of glibc breaks it.
return if name == "glibc"
# Patching patchelf using itself fails with "Text file busy" or SIGBUS.
return if name == "patchelf"
# Patching portable-ruby causes brew tests to segfault.
return if ["glibc", "patchelf", "portable-ruby"].include?(name)
elf_files.each do |file|
file.ensure_writable do