From 84de30b653342f51edd375f2cecf73be2a08bf6b Mon Sep 17 00:00:00 2001 From: danielnachun Date: Tue, 7 Dec 2021 10:59:08 -0800 Subject: [PATCH] formula_installer.rb: call relocate_build_prefix --- Library/Homebrew/formula_installer.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index f9dce3fbf5..424b95605f 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -1230,6 +1230,10 @@ class FormulaInstaller keg = Keg.new(formula.prefix) skip_linkage = formula.bottle_specification.skip_relocation? keg.replace_placeholders_with_locations tab.changed_files, skip_linkage: skip_linkage + + return if formula.bottle_specification.skip_prefix_relocation? + + keg.relocate_build_prefix(keg, Utils::Bottles.tag.default_prefix, HOMEBREW_PREFIX) end sig { params(output: T.nilable(String)).void }