formula_installer: don't install bottle deps for all bottles

This commit is contained in:
Bo Anderson 2021-10-19 03:09:29 +01:00
parent 2734fdbec6
commit 86b01acd97
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -590,7 +590,9 @@ class FormulaInstaller
end end
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) bottle_deps = if Keg.bottle_dependencies.exclude?(formula.name)
Keg.bottle_dependencies Keg.bottle_dependencies
elsif Keg.relocation_formulae.exclude?(formula.name) elsif Keg.relocation_formulae.exclude?(formula.name)