From 70ba40989426c1be2620770c3e1142cb22b1d5ae Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Sat, 23 Nov 2024 23:45:45 -0500 Subject: [PATCH] zeek: remove unsupported gcc reference, update test --- Formula/z/zeek.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Formula/z/zeek.rb b/Formula/z/zeek.rb index 4c0517d45f846..cd87aa3c27557 100644 --- a/Formula/z/zeek.rb +++ b/Formula/z/zeek.rb @@ -36,8 +36,6 @@ class Zeek < Formula uses_from_macos "libxcrypt" uses_from_macos "zlib" - fails_with gcc: "5" - def install # Remove SDK paths from zeek-config. This breaks usage with other SDKs. # https://github.com/Homebrew/homebrew-core/pull/74932 @@ -70,10 +68,10 @@ def install assert_match "version #{version}", shell_output("#{bin}/zeek --version") assert_match "ARP packet analyzer", shell_output("#{bin}/zeek --print-plugins") system bin/"zeek", "-C", "-r", test_fixtures("test.pcap") - assert_predicate testpath/"conn.log", :exist? - refute_predicate testpath/"conn.log", :empty? - assert_predicate testpath/"http.log", :exist? - refute_predicate testpath/"http.log", :empty? + assert_path_exists testpath/"conn.log" + refute_empty (testpath/"conn.log").read + assert_path_exists testpath/"http.log" + refute_empty (testpath/"http.log").read # For bottling MacOS SDK paths must not be part of the public include directories, see zeek/zeek#1468. refute_includes shell_output("#{bin}/zeek-config --include_dir").chomp, "MacOSX" end