Merge pull request #12256 from Bo98/fi-no-bottle-deps-certs

formula_installer: don't install bottle deps for `all` bottles
This commit is contained in:
Mike McQuaid 2021-10-20 11:27:05 +01:00 committed by GitHub
commit 73d0a5f681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)