Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions Formula/lib/libpulsar.rb
Original file line number Diff line number Diff line change
@@ -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.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"
Expand All @@ -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

Expand Down Expand Up @@ -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());

Expand Down
Loading