From 96df5666c3b732a5db066f84744c8cf4ab7fcbaf Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Wed, 24 Apr 2024 16:14:07 -0400 Subject: [PATCH] uv: add `bzip2` dependency on Linux Add comment on reason why macOS doesn't have a dependency (via `uses_from_macos` or from `depends_on`) Signed-off-by: Michael Cho --- Formula/u/uv.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/u/uv.rb b/Formula/u/uv.rb index dd3c6864d214..67101f0b924a 100644 --- a/Formula/u/uv.rb +++ b/Formula/u/uv.rb @@ -23,6 +23,12 @@ class Uv < Formula uses_from_macos "python" => :test + on_linux do + # On macOS, bzip2-sys will use the bundled lib as it cannot find the system or brew lib. + # We only ship bzip2.pc on Linux which bzip2-sys needs to find library. + depends_on "bzip2" + end + def install ENV["LIBGIT2_NO_VENDOR"] = "1"