Skip to content

Commit

Permalink
Merge pull request #13618 from sjackman/sj/audit_glibc
Browse files Browse the repository at this point in the history
audit_glibc: Permit glibc 2.27, 2.31, or 2.35 and fix the error message
  • Loading branch information
sjackman authored Jul 29, 2022
2 parents 43a3470 + 7d1197e commit 4f02c5d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Library/Homebrew/formula_auditor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,11 @@ def audit_postgresql
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
Expand Down

0 comments on commit 4f02c5d

Please sign in to comment.