From 4be3f8e46728e1cee00fdf63cef5a38f4716be2e Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Wed, 29 May 2024 02:30:04 +0800 Subject: [PATCH] formula_auditor: add exemption for `nghttp2` Needed for Homebrew/homebrew-core#171634 due to nghttp2/nghttp2#2194. --- Library/Homebrew/formula_auditor.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index d8fcd03cb3..5be43238e6 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -453,6 +453,9 @@ module Homebrew return unless @core_tap return unless Homebrew::SimulateSystem.simulating_or_running_on_linux? return unless linux_only_gcc_dep?(formula) + # https://github.com/Homebrew/homebrew-core/pull/171634 + # https://github.com/nghttp2/nghttp2/issues/2194 + return if formula.tap&.audit_exception(:linux_only_gcc_dependency_allowlist, formula.name) problem "Formulae in homebrew/core should not have a Linux-only dependency on GCC." end