audit: pin glibc version to 2.23

This commit is contained in:
Michka Popoff 2021-02-13 17:13:50 +01:00
parent a625948b14
commit 6249b6b86a
No known key found for this signature in database
GPG Key ID: 033D03F151030611

View File

@ -339,6 +339,18 @@ module Homebrew
end
end
def audit_glibc
return if formula.name != "glibc"
return unless @core_tap
version = formula.version.to_s
return if version == "2.23"
problem "The glibc version must be #{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
def audit_versioned_keg_only
return unless @versioned_formula
return unless @core_tap