From 1c6046c7e398104225ddf64561cc60ed8402054a Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Wed, 9 Oct 2019 09:21:04 -0700 Subject: [PATCH] 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 --- Library/Homebrew/extend/os/linux/keg_relocate.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/extend/os/linux/keg_relocate.rb b/Library/Homebrew/extend/os/linux/keg_relocate.rb index 34fcb9b5cc..4ceeab0e00 100644 --- a/Library/Homebrew/extend/os/linux/keg_relocate.rb +++ b/Library/Homebrew/extend/os/linux/keg_relocate.rb @@ -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