From a7bfb807861b18cc652d518d50b1761a4dfbd7f1 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 10 Oct 2019 15:16:30 +0100 Subject: [PATCH] Revert "Do not run patchelf on portable-ruby [Linux]" --- Library/Homebrew/extend/os/linux/keg_relocate.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/extend/os/linux/keg_relocate.rb b/Library/Homebrew/extend/os/linux/keg_relocate.rb index 4ceeab0e00..34fcb9b5cc 100644 --- a/Library/Homebrew/extend/os/linux/keg_relocate.rb +++ b/Library/Homebrew/extend/os/linux/keg_relocate.rb @@ -3,9 +3,10 @@ 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. - # Patching portable-ruby causes brew tests to segfault. - return if ["glibc", "patchelf", "portable-ruby"].include?(name) + return if name == "patchelf" elf_files.each do |file| file.ensure_writable do