Skip to content

Commit

Permalink
protobuf: apply upstream fix for thread-local variables
Browse files Browse the repository at this point in the history
This allows us to use the latest `protobuf` with `libphonenumber`.
See Homebrew#133508.

It likely also allows us to use a newer `protobuf` and `grpc` in
`apache-arrow`. See apache/arrow#35987.
  • Loading branch information
carlocab committed Jun 14, 2023
1 parent c3b7cc9 commit b7effb1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Formula/protobuf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ class Protobuf < Formula
desc "Protocol buffers (Google's data interchange format)"
homepage "https://protobuf.dev/"
license "BSD-3-Clause"
revision 1

# TODO: Remove `stable` block when patch is no longer needed.
# TODO: Remove `stable` block when patches are no longer needed.
stable do
url "https://github.com/protocolbuffers/protobuf/releases/download/v23.2/protobuf-23.2.tar.gz"
sha256 "ddf8c9c1ffccb7e80afd183b3bd32b3b62f7cc54b106be190bf49f2bc09daab5"
Expand All @@ -14,6 +15,13 @@ class Protobuf < Formula
url "https://github.com/protocolbuffers/protobuf/commit/fc1c5512e524e0c00a276aa9a38b2cdb8fdf45c7.patch?full_index=1"
sha256 "2ef672ecc95e0b35e2ef455ebbbaaaf0d5a89a341b5bbbe541c6285dfca48508"
end

# Use the same ABI for static and shared objects.
# https://github.com/protocolbuffers/protobuf/pull/12983
patch do
url "https://github.com/protocolbuffers/protobuf/commit/4329fde9cf3fab7d1b3a9abe0fbeee1ad8a8b111.patch?full_index=1"
sha256 "03c52f9207618fcb91cdb8b21dea4b447edcc6ea041f1837b5ff873e6c283b80"
end
end

livecheck do
Expand Down

0 comments on commit b7effb1

Please sign in to comment.