diff --git a/Formula/lib/libpulsar.rb b/Formula/lib/libpulsar.rb index fc916e9906713..df399012d4e92 100644 --- a/Formula/lib/libpulsar.rb +++ b/Formula/lib/libpulsar.rb @@ -1,19 +1,18 @@ class Libpulsar < Formula desc "Apache Pulsar C++ library" homepage "https://pulsar.apache.org/" - 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" + url "https://dlcdn.apache.org/pulsar/pulsar-client-cpp-3.8.0/apache-pulsar-client-cpp-3.8.0.tar.gz" + mirror "https://archive.apache.org/dist/pulsar/pulsar-client-cpp-3.8.0/apache-pulsar-client-cpp-3.8.0.tar.gz" + sha256 "e5abff91da01cbc19eb8c08002f1ba765f99ce5b7abe1b1689b320658603b70b" license "Apache-2.0" - revision 5 bottle do - sha256 cellar: :any, arm64_tahoe: "e09546097a2674bad598adaceb4bc28d0965ce4df69ce719a90f675508d9c70d" - sha256 cellar: :any, arm64_sequoia: "40a6bd214f171f91ea59051b4bf44e2dc599e8090a8eb53eb7958e2e546beab0" - sha256 cellar: :any, arm64_sonoma: "e56bb469b5ba4cb4d74ef51a308eda1100f3297c08e33fff901c32eb0b48f0e3" - sha256 cellar: :any, sonoma: "e722feeca5fa95f757b21943f53fa58582e6685179b5ecd08c93661dd6a3a040" - sha256 cellar: :any_skip_relocation, arm64_linux: "f2c9a37b5cebdc0588b6b6eedf6e9887b0d896957d7724f74c481649e8c88384" - sha256 cellar: :any_skip_relocation, x86_64_linux: "73d7fd16c1151f644bc85cc842189749cba7ec2bec82d5757453dff8bbc5b5cc" + sha256 cellar: :any, arm64_tahoe: "667770f36de7000a1681d27f4100242d1b430fd8b47553c8a461dc2313de5306" + sha256 cellar: :any, arm64_sequoia: "db9e4113dbdad0399cc644bfeaa85071ef247c127e9a30fc5a34ad77b11d8287" + sha256 cellar: :any, arm64_sonoma: "764b056325bb6d6273c79240c7d62300d0ae059ea5f2ee268bc6456d89cf78d4" + sha256 cellar: :any, sonoma: "bdaa7dda25b93f9f38a39c31acc0fc20c506fd44292648d8e3d612a72b6505a0" + sha256 cellar: :any_skip_relocation, arm64_linux: "8aa2e58ad7d1bb9717b58909e5719ea293cf9ef3b3638fc9cdbd26f353395f47" + sha256 cellar: :any_skip_relocation, x86_64_linux: "b687a6b0a12b3273de8bb52c1867a8938053aec1c101639128ea8b9708002fb3" end depends_on "boost" => :build @@ -28,12 +27,6 @@ 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/homebrew-core/1cf441a0/Patches/libpulsar/asio.patch" - sha256 "519ecb20d3721575a916f45e7e0d382ae61de38ceaee23b53b97c7b4fcdbc019" - end - # Workaround for Protobuf 30+, issue ref: https://github.com/apache/pulsar-client-cpp/issues/478 patch :DATA @@ -76,8 +69,8 @@ def install } const auto fileDescriptor = descriptor->file(); -- const std::string rootMessageTypeName = descriptor->full_name(); -- const std::string rootFileDescriptorName = fileDescriptor->name(); +- const std::string& rootMessageTypeName = descriptor->full_name(); +- const std::string& rootFileDescriptorName = fileDescriptor->name(); + const std::string rootMessageTypeName = std::string(descriptor->full_name()); + const std::string rootFileDescriptorName = std::string(fileDescriptor->name());