From bf60649f13d472e4c3c01a98d336a60a6c279780 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Mon, 7 Jul 2025 05:08:26 +0000 Subject: [PATCH 1/2] libpulsar 3.7.2 Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> --- Formula/lib/libpulsar.rb | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/Formula/lib/libpulsar.rb b/Formula/lib/libpulsar.rb index 4da43160440b..a08308a81337 100644 --- a/Formula/lib/libpulsar.rb +++ b/Formula/lib/libpulsar.rb @@ -1,11 +1,10 @@ class Libpulsar < Formula desc "Apache Pulsar C++ library" homepage "https://pulsar.apache.org/" - url "https://dlcdn.apache.org/pulsar/pulsar-client-cpp-3.7.0/apache-pulsar-client-cpp-3.7.0.tar.gz" - mirror "https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.7.0/apache-pulsar-client-cpp-3.7.0.tar.gz" - sha256 "3223cfeda484ab7b580f4a8768b5a85739cc064005c765c06cde67c3238639c9" + url "https://dlcdn.apache.org/pulsar/pulsar-client-cpp-3.7.2/apache-pulsar-client-cpp-3.7.2.tar.gz" + mirror "https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.7.2/apache-pulsar-client-cpp-3.7.2.tar.gz" + sha256 "e4eee34cfa3d5838c08f20ac70f5b28239cb137bb59c75199f809141070620dd" license "Apache-2.0" - revision 2 bottle do sha256 cellar: :any, arm64_sequoia: "17409dae5bc4dfeae755a2e7ebc4d0e255a56f12f6c8d658a8f631cdbfe35bec" @@ -17,7 +16,6 @@ class Libpulsar < Formula sha256 cellar: :any_skip_relocation, x86_64_linux: "2438a72ed70e421eae87a6e3fa2c4db58d3f4e7ec8b1bce6893421546c533d95" end - depends_on "asio" => :build # FIXME: Not compatible with Boost.Asio 1.87+ depends_on "boost" => :build depends_on "cmake" => :build depends_on "pkgconf" => :build @@ -31,12 +29,18 @@ class Libpulsar < Formula uses_from_macos "curl" uses_from_macos "zlib" + # Backport of https://github.com/apache/pulsar-client-cpp/pull/477 + patch do + url "https://raw.githubusercontent.com/Homebrew/formula-patches/93a4bb54004417c3742ca0e41183c662d9f417f5/libpulsar/asio.patch" + sha256 "519ecb20d3721575a916f45e7e0d382ae61de38ceaee23b53b97c7b4fcdbc019" + end + def install args = %W[ -DBUILD_TESTS=OFF -DCMAKE_CXX_STANDARD=17 -DOPENSSL_ROOT_DIR=#{Formula["openssl@3"].opt_prefix} - -DUSE_ASIO=ON + -DUSE_ASIO=OFF ] system "cmake", "-S", ".", "build", *args, *std_cmake_args @@ -49,7 +53,7 @@ def install #include int main (int argc, char **argv) { - pulsar::Client client("pulsar://localhost:6650"); + pulsar::Client client("pulsar://localhost:#{free_port}"); return 0; } CPP From a80e3e69cf29001046c95895394b8f93740903d4 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Tue, 5 Aug 2025 13:51:28 +0000 Subject: [PATCH 2/2] libpulsar: update 3.7.2 bottle. --- Formula/lib/libpulsar.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Formula/lib/libpulsar.rb b/Formula/lib/libpulsar.rb index a08308a81337..0f4ea514987a 100644 --- a/Formula/lib/libpulsar.rb +++ b/Formula/lib/libpulsar.rb @@ -7,13 +7,13 @@ class Libpulsar < Formula license "Apache-2.0" bottle do - sha256 cellar: :any, arm64_sequoia: "17409dae5bc4dfeae755a2e7ebc4d0e255a56f12f6c8d658a8f631cdbfe35bec" - sha256 cellar: :any, arm64_sonoma: "054c0c3c347a1b55e64eb24978acaf7fdfb72162ed35277f4bf16093a2e1a3ff" - sha256 cellar: :any, arm64_ventura: "1e28e6732875416affdcc4afc3763e798882dd589424e168bb67bd7517411c6d" - sha256 cellar: :any, sonoma: "f87f6563fb986d754764ec158a2deddded5cbfef795bd67c52f83ae0a72e8e8b" - sha256 cellar: :any, ventura: "3061a6de50f7659f859917ad16f20f0e9b312efa90d7123533534ad3a60111e6" - sha256 cellar: :any_skip_relocation, arm64_linux: "5054b692852656ba4580739f5ec8ba057f330c1e15ca36196277c4688b8cac17" - sha256 cellar: :any_skip_relocation, x86_64_linux: "2438a72ed70e421eae87a6e3fa2c4db58d3f4e7ec8b1bce6893421546c533d95" + sha256 cellar: :any, arm64_sequoia: "a45ef331ab3ba08002332e340aeb0c1aea3f4b2463815a4a0423fedaa7e5554b" + sha256 cellar: :any, arm64_sonoma: "1575519667526ab1cc14a4d4c38447ac12342884c06396897be2a31d2a44f3ff" + sha256 cellar: :any, arm64_ventura: "77361fedffdd111e6417f6123ba9365b9cf5e39050523f94ea915a3159f175b0" + sha256 cellar: :any, sonoma: "b9a50db3df086b014ca95c2488751517c4afc22ab61e04c55c1c12e8fa3311e6" + sha256 cellar: :any, ventura: "c9260119842a8ed7cd4857d32aaece69f9f11eae9595fd023159ae8d88953bcc" + sha256 cellar: :any_skip_relocation, arm64_linux: "f97b4db1a95c7f7288db2f33ddd9e2fcce573fb0d30b5a49ca822776b72a03c8" + sha256 cellar: :any_skip_relocation, x86_64_linux: "eb9b0f03c645727f796c138dd2b0666bdbe097e77ad55e14cc6ad0f5633b7189" end depends_on "boost" => :build