Skip to content

Commit

Permalink
opentelemetry-cpp: fix test
Browse files Browse the repository at this point in the history
Follow-up to Homebrew#131405.
  • Loading branch information
carlocab committed Jun 6, 2023
1 parent 1e45d8e commit dbf7118
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Formula/opentelemetry-cpp.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
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"
license "Apache-2.0"
revision 1
head "https://github.com/open-telemetry/opentelemetry-cpp.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "cbeb1ac7f62d885b1da78d5dd696aba5a64419b633a4632bd697a86bdf75296f"
sha256 cellar: :any_skip_relocation, arm64_monterey: "53a1cabdf23d90daf3eb90b93255ff789ecc82799ab22eed6abf649e6eeb404b"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "165e17e92ff42b8c44c227ed26347fc9c91d178d51f059756980af066c1ca23c"
sha256 cellar: :any_skip_relocation, ventura: "265f8a37577dac9e432aae815243499794c458c6b33a58c5a73769f13e600a98"
sha256 cellar: :any_skip_relocation, monterey: "5c33a21581e4041b8a53e0b5ea8b52d8eff4f070694294578af5cf2d01b8a64a"
sha256 cellar: :any_skip_relocation, big_sur: "3aa32ff2ea64217b303a7634842c9d43049bfe6525e779c6c7d058e63fa67ff5"
sha256 cellar: :any_skip_relocation, x86_64_linux: "cea05e8a8cf47639e53aa33adcb3b65d7e111fe468f7e58971de30421cd89611"
end

depends_on "cmake" => :build
depends_on "boost"
depends_on "grpc@1.54"
Expand Down Expand Up @@ -62,7 +73,10 @@ def install
auto scoped_span = trace_api::Scope(tracer->StartSpan("test"));
}
EOS
system ENV.cxx, "test.cc", "-std=c++11", "-I#{include}", "-L#{lib}",
# Manual `protobuf` include can be removed when we depend on unversioned protobuf.
system ENV.cxx, "test.cc", "-std=c++17",
"-I#{include}", "-L#{lib}",
"-I#{Formula["protobuf@21"].opt_include}",
"-lopentelemetry_resources",
"-lopentelemetry_trace",
"-lopentelemetry_exporter_ostream_span",
Expand Down

0 comments on commit dbf7118

Please sign in to comment.