diff --git a/Formula/opentelemetry-cpp.rb b/Formula/opentelemetry-cpp.rb index ff317ea55a574..1ac7dcd8c9cf9 100644 --- a/Formula/opentelemetry-cpp.rb +++ b/Formula/opentelemetry-cpp.rb @@ -2,21 +2,19 @@ class OpentelemetryCpp < Formula desc "OpenTelemetry C++ Client" homepage "https://opentelemetry.io/" # TODO: Check if we can use unversioned `grpc` and `protobuf` at version bump. - url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.8.2.tar.gz" - sha256 "20fa97e507d067e9e2ab0c1accfc334f5a4b10d01312e55455dc3733748585f4" + url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.9.1.tar.gz" + sha256 "668de24f81c8d36d75092ad9dcb02a97cd41473adbe72485ece05e336db48249" license "Apache-2.0" - revision 1 head "https://github.com/open-telemetry/opentelemetry-cpp.git", branch: "main" bottle do - rebuild 1 - sha256 cellar: :any_skip_relocation, arm64_ventura: "17809590a134d0817ddf64dffdefc888f0fc9d4f846de6a066687da64121f8f9" - sha256 cellar: :any_skip_relocation, arm64_monterey: "74f3dc5b76f35ffdd91bc27f5726e6969c1a3170a26be689c17b95d2a2db62a1" - sha256 cellar: :any_skip_relocation, arm64_big_sur: "95b029bb2986e7ac7bd6e4d50d3d55cc3cf1fbeee3b23b4b4251b2b5e6fffb9a" - sha256 cellar: :any_skip_relocation, ventura: "0e1dcc6a778ab5c2491ca7c1341d836f9ed6608b814b9b25b09ea0f2126ae2dd" - sha256 cellar: :any_skip_relocation, monterey: "e1e4bfb297d5a69f04bdd1702cb7918dd51741b98ecb6113ed7c099c74c14ad9" - sha256 cellar: :any_skip_relocation, big_sur: "ba36165ed9a192966ab3590d071d1f14092d156bc7910bd53be4eee01a00569a" - sha256 cellar: :any_skip_relocation, x86_64_linux: "72c2c26b235cd609c780a3ac804d53379d78e97c44820993f4b5cdae74de4a37" + sha256 cellar: :any, arm64_ventura: "c017afd677a9a7ffeaca95802501acca8e9bb2f39198f3eb8e50369cb37ff4e8" + sha256 cellar: :any, arm64_monterey: "ff83b5b54d1c1d4426d178099fda960355002b58a1b2e9f4339a0298f34e8ae4" + sha256 cellar: :any, arm64_big_sur: "1019ce81ac7c511dd70628d23c5327ee48db252876086d32765dcf6c233ca5a1" + sha256 cellar: :any, ventura: "b6be466f4f4fde9e44d26ca7c4793046c905ed5eeea4f7f41c49d974989b8e87" + sha256 cellar: :any, monterey: "948cd713fa9367d563efb6bf29074fbc3a82d7a67eba219aedb858542df8fccf" + sha256 cellar: :any, big_sur: "2a23c4ea823a4bb909f7eaf3adfc946a60c57e69d3c44c3af465e30faf650a28" + sha256 cellar: :any_skip_relocation, x86_64_linux: "6d8d7433417685b7a23d0b89f874e59c3cb6f224b0f9f01f3b6a9c6f41be6e53" end depends_on "cmake" => :build @@ -28,6 +26,7 @@ class OpentelemetryCpp < Formula uses_from_macos "curl" def install + ENV.append "LDFLAGS", "-Wl,-undefined,dynamic_lookup" if OS.mac? system "cmake", "-S", ".", "-B", "build", "-DCMAKE_CXX_STANDARD=17", # Keep in sync with C++ standard in abseil.rb "-DCMAKE_INSTALL_RPATH=#{rpath}", @@ -79,8 +78,8 @@ def install "-I#{include}", "-L#{lib}", "-I#{Formula["protobuf@21"].opt_include}", "-lopentelemetry_resources", - "-lopentelemetry_trace", "-lopentelemetry_exporter_ostream_span", + "-lopentelemetry_trace", "-lopentelemetry_common", "-pthread", "-o", "simple-example"