Merge pull request #13618 from sjackman/sj/audit_glibc

audit_glibc: Permit glibc 2.27, 2.31, or 2.35 and fix the error message
This commit is contained in:
Shaun Jackman 2022-07-29 14:57:45 -07:00 committed by GitHub
commit 4f02c5de99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -410,13 +410,11 @@ module Homebrew
end
def audit_glibc
return if formula.name != "glibc"
return unless @core_tap
return if formula.name != "glibc"
return if [OS::CI_GLIBC_VERSION, "2.27", "2.31", "2.35"].include?(formula.version.to_s)
version = formula.version.to_s
return if version == OS::CI_GLIBC_VERSION
problem "The glibc version must be #{version}, as this is the version used by our CI on Linux. " \
problem "The glibc version must be #{OS::CI_GLIBC_VERSION}, as this is the version used by our CI on Linux. " \
"Glibc is for users who have a system Glibc with a lower version, " \
"which allows them to use our Linux bottles, which were compiled against system Glibc on CI."
end