From 6249b6b86a2cdbfda261c8a96ede4b786a203bbe Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Sat, 13 Feb 2021 17:13:50 +0100 Subject: [PATCH] audit: pin glibc version to 2.23 --- Library/Homebrew/formula_auditor.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 9d4a691144..73bf464033 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -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