Skip to content

Commit 2ca8c60

Browse files
authored
Merge pull request #229832 from Homebrew/bump-opentelemetry-cpp-1.22.0
opentelemetry-cpp 1.22.0
2 parents ccf9ac2 + f43e045 commit 2ca8c60

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

Formula/o/opentelemetry-cpp.rb

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
class OpentelemetryCpp < Formula
22
desc "OpenTelemetry C++ Client"
33
homepage "https://opentelemetry.io/"
4-
url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.21.0.tar.gz"
5-
sha256 "98e5546f577a11b52a57faed1f4cc60d8c1daa44760eba393f43eab5a8ec46a2"
4+
url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.22.0.tar.gz"
5+
sha256 "3428f433f4b435ed1fad64cbdbe75b7288c06f6297786a7036d65d5b9a1d215b"
66
license "Apache-2.0"
7-
revision 1
87
head "https://github.com/open-telemetry/opentelemetry-cpp.git", branch: "main"
98

109
bottle do
11-
sha256 arm64_sequoia: "2ae3c009cd51e1c5f40a396e20730e6ba0ce6d21c00720802f312919714b264e"
12-
sha256 arm64_sonoma: "0ea60332a49b121be93d4f476e2246b07429f582397d26a7325bcdcd0ba66cc2"
13-
sha256 arm64_ventura: "16eb288bc18878471c7fa842b23262b311ff7836232499390cf9abfb39a86675"
14-
sha256 cellar: :any, sonoma: "4512a8f5a3a27c783cc3ebf97e86a1e4c318d7920e365897496929db1fd6c5de"
15-
sha256 cellar: :any, ventura: "cff85b1a0d4623021aa60353af331f7d31807170deb7d959e17ebf37580aa622"
16-
sha256 cellar: :any_skip_relocation, arm64_linux: "21973cb6bc609fba0340022700127671a7d66e306f55d72c425c190af73772b8"
17-
sha256 cellar: :any_skip_relocation, x86_64_linux: "774291f46bdd5d367df15a3d4b578031da99c0f1cc67669940ca6342998855bd"
10+
sha256 arm64_sequoia: "a35066e4bbf7ce6b48af745ca9d8c9bf857ff64d003a74acda6e80976f25accc"
11+
sha256 arm64_sonoma: "9eee5e2ee89f57600a1c9e92faf0f1a0a9e1f53c3a7cf73a35b6a9c035b8e345"
12+
sha256 arm64_ventura: "1e19c1acb7d0e55c3c37aa6774bde595b7a6d67ee2b951026da80ded3aa33a88"
13+
sha256 cellar: :any, sonoma: "cf12afae4299dc2da82fd9fbdd40ca5a3f88707c97d0860fa73fd57dd4ca1514"
14+
sha256 cellar: :any, ventura: "26338b759ba5112624ffe3c849dd1a73debb1f466500244462537d0bb04d9963"
15+
sha256 cellar: :any_skip_relocation, arm64_linux: "a91a6c5e665d463d24ecd9d47af80f0fd6d0eca8b2768628511b1344655169bf"
16+
sha256 cellar: :any_skip_relocation, x86_64_linux: "456bbe893a63a3a9178ef10d201226a7d82f09cf687aafe691b27bd538d2adbf"
1817
end
1918

2019
depends_on "cmake" => :build
@@ -32,12 +31,23 @@ class OpentelemetryCpp < Formula
3231
depends_on "re2"
3332
end
3433

34+
resource "openetelemetry-proto" do
35+
url "https://github.com/open-telemetry/opentelemetry-proto/archive/refs/tags/v1.7.0.tar.gz"
36+
sha256 "11330d850f5e24d34c4246bc8cb21fcd311e7565d219195713455a576bb11bed"
37+
end
38+
3539
def install
40+
(buildpath/"opentelemetry-proto").install resource("openetelemetry-proto")
41+
3642
ENV.append "LDFLAGS", "-Wl,-undefined,dynamic_lookup" if OS.mac?
3743
system "cmake", "-S", ".", "-B", "build",
3844
"-DBUILD_SHARED_LIBS=ON",
3945
"-DCMAKE_CXX_STANDARD=17", # Keep in sync with C++ standard in abseil.rb
4046
"-DCMAKE_INSTALL_RPATH=#{rpath}",
47+
"-DHOMEBREW_ALLOW_FETCHCONTENT=ON",
48+
"-DFETCHCONTENT_FULLY_DISCONNECTED=ON",
49+
"-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS",
50+
"-DOTELCPP_PROTO_PATH=#{buildpath}/opentelemetry-proto",
4151
"-DWITH_ELASTICSEARCH=ON",
4252
"-DWITH_EXAMPLES=OFF",
4353
"-DWITH_OTLP_GRPC=ON",

0 commit comments

Comments
 (0)