Merge pull request #12661 from sjackman/sj/relocate_dynamic_linkage

Patch neither glibc nor glibc@* using patchelf
This commit is contained in:
Mike McQuaid 2022-01-03 13:08:42 +00:00 committed by GitHub
commit cf0468c88f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ require "compilers"
class Keg
def relocate_dynamic_linkage(relocation)
# Patching the dynamic linker of glibc breaks it.
return if name == "glibc"
return if name.match? Version.formula_optionally_versioned_regex(:glibc)
# Patching patchelf fails with "Text file busy" or SIGBUS.
return if name == "patchelf"