Do not run patchelf on portable-ruby [Linux]

Running patchelf on portable-ruby causes brew tests to segfault.

See https://github.com/Homebrew/brew/pull/6556
This commit is contained in:
Shaun Jackman 2019-10-09 09:21:04 -07:00
parent 77412ad14e
commit 1c6046c7e3

View File

@ -3,10 +3,9 @@
class Keg class Keg
def relocate_dynamic_linkage(relocation) def relocate_dynamic_linkage(relocation)
# Patching the dynamic linker of glibc breaks it. # Patching the dynamic linker of glibc breaks it.
return if name == "glibc"
# Patching patchelf using itself fails with "Text file busy" or SIGBUS. # 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| elf_files.each do |file|
file.ensure_writable do file.ensure_writable do