From 57e3e62edbdf6d0ae21ab101264cc7c0b6c9e260 Mon Sep 17 00:00:00 2001 From: danielnachun Date: Thu, 3 Mar 2022 17:35:16 -0800 Subject: [PATCH] os/mac/keg.rb: rename to codesign_patched_binary --- Library/Homebrew/os/mac/keg.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/os/mac/keg.rb b/Library/Homebrew/os/mac/keg.rb index ead4ad6d71..57c9ed745f 100644 --- a/Library/Homebrew/os/mac/keg.rb +++ b/Library/Homebrew/os/mac/keg.rb @@ -8,7 +8,7 @@ class Keg @require_relocation = true odebug "Changing dylib ID of #{file}\n from #{file.dylib_id}\n to #{id}" file.change_dylib_id(id, strict: false) - apply_ad_hoc_signature(file) + codesign_patched_binary(file) rescue MachO::MachOError onoe <<~EOS Failed changing dylib ID of #{file} @@ -24,7 +24,7 @@ class Keg @require_relocation = true odebug "Changing install name in #{file}\n from #{old}\n to #{new}" file.change_install_name(old, new, strict: false) - apply_ad_hoc_signature(file) + codesign_patched_binary(file) rescue MachO::MachOError onoe <<~EOS Failed changing install name in #{file} @@ -40,7 +40,7 @@ class Keg @require_relocation = true odebug "Changing rpath in #{file}\n from #{old}\n to #{new}" file.change_rpath(old, new, strict: false) - apply_ad_hoc_signature(file) + codesign_patched_binary(file) rescue MachO::MachOError onoe <<~EOS Failed changing rpath in #{file} @@ -53,7 +53,7 @@ class Keg def delete_rpath(rpath, file) odebug "Deleting rpath #{rpath} in #{file}" file.delete_rpath(rpath, strict: false) - apply_ad_hoc_signature(file) + codesign_patched_binary(file) rescue MachO::MachOError onoe <<~EOS Failed deleting rpath #{rpath} in #{file} @@ -61,7 +61,7 @@ class Keg raise end - def apply_ad_hoc_signature(file) + def codesign_patched_binary(file) return if MacOS.version < :big_sur return unless Hardware::CPU.arm?