From 86b01acd9734c095e88d84cac3f09acb8bb3d97a Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Tue, 19 Oct 2021 03:09:29 +0100 Subject: [PATCH] formula_installer: don't install bottle deps for `all` bottles --- Library/Homebrew/formula_installer.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 0fbee44fca..5681a3eb71 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -590,7 +590,9 @@ class FormulaInstaller end end - if pour_bottle && !Keg.bottle_dependencies.empty? + # We require some dependencies (glibc, GCC 5, etc.) if binaries were built. + # Native binaries shouldn't exist in cross-platform `all` bottles. + if pour_bottle && !formula.bottled?(:all) && !Keg.bottle_dependencies.empty? bottle_deps = if Keg.bottle_dependencies.exclude?(formula.name) Keg.bottle_dependencies elsif Keg.relocation_formulae.exclude?(formula.name)