diff options
Diffstat (limited to 'dev-cpp/opentelemetry-cpp')
-rw-r--r-- | dev-cpp/opentelemetry-cpp/Manifest | 3 | ||||
-rw-r--r-- | dev-cpp/opentelemetry-cpp/files/opentelemetry-cpp-1.5.0-tests.patch | 67 | ||||
-rw-r--r-- | dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.5.0.ebuild | 50 |
3 files changed, 120 insertions, 0 deletions
diff --git a/dev-cpp/opentelemetry-cpp/Manifest b/dev-cpp/opentelemetry-cpp/Manifest index 54dc5629310a..b0dc0cb58da8 100644 --- a/dev-cpp/opentelemetry-cpp/Manifest +++ b/dev-cpp/opentelemetry-cpp/Manifest @@ -1,6 +1,9 @@ AUX opentelemetry-cpp-1.3.0-tests.patch 2937 BLAKE2B 179c6828a429d8d16ea8a8ff38044da8377922e74422b0a2df8d66e5648ddc8eae87e66ed2ccd8bbd6d4a356a37867c406988568aa8ffd538a2ca26161ab07b9 SHA512 fe8eae72b984bb5730fe095fef2a07a6e5dfdaa4c9b752e7ab5b3170f1c1054b1e888335e51257c52d2955b0a4d5ed80fc206c875fbb80990fa13f9f4ad1759d +AUX opentelemetry-cpp-1.5.0-tests.patch 2102 BLAKE2B 8bf862ce9efe502cfe79924301a11de6d29a3d9c304caa09af5855bf2639152a36d4901db9477778f62756cdfc3a413df559e7514463e7ee5019db52d5122c70 SHA512 33e68b88a79d1f902ee23327147092b189068def115572d1c088e97dd29aa13aa138af87c9ab1bb0b6599026a9db16c60f72b8855e9f3ec43ce3b4ed69406438 DIST opentelemetry-cpp-1.3.0.tar.gz 710030 BLAKE2B 56aa3213fd9c9ac5266197c2ca417f5ff181ca28016033c9320e63122eaf9a53bdb265e1778227a9036bc42f8837755a3009cb23610268bc03b9fb24b3844c82 SHA512 38f613c208ec847c8bf7765732d8198fcc427c293a929945d72c2f739e89d2a0ad36be4d94cc3c1b77fd7b1f1d1e5d8bdb38094a493ba3da3125281cd1016836 DIST opentelemetry-cpp-1.4.0.tar.gz 722520 BLAKE2B c34867846708218e5ffcff9cdaa275e0c43201f681a68ad697d9f83ac04b7fdc6cdb69d942274cbe200b241e407ba11218c7e92da4f9adf4490e89c06388347f SHA512 a2339c0f9b2dc0d4f1964536a844241436bd68774445a0eab6e89e51965e01d3c40d2aa776d751eb497c50e9fdaa4e0023095efb14c8abbd6bbe23a2596eb3c9 +DIST opentelemetry-cpp-1.5.0.tar.gz 782336 BLAKE2B 11153dc8a219d3916c3d8aeb7575c2a98d5e8e094cbada096bfa03dd465a08a4fb09139ad22400e4b5693a5d740b8095618858256a2c5679ae080e4e3db16005 SHA512 a506973223c49531d4b0c3febf5734dfe2e44c22f8854ed96935cda0783a14d0819cc3dbb2d3f8373f960f27acf78aafc777ee76aeb14828df9c4b4434e4fe6f EBUILD opentelemetry-cpp-1.3.0-r2.ebuild 966 BLAKE2B 256f46f7225b64a79a3e13e9582e0bfb275c5a22cb79f8f6ff619735dfe7a5ef6d4e6a8f2406fce71adb93ec546822c1366e9baa556f7e6e6322f168fe46c776 SHA512 83996a9639d03457037372443af6b48e4d0c75ec60cb8e9e4e9a29223d9b0081c1e9ec2150431e407290f22ee31cb5fcfe111eb9ca0b29c0988eff6eb3af7bfe EBUILD opentelemetry-cpp-1.4.0.ebuild 966 BLAKE2B 256f46f7225b64a79a3e13e9582e0bfb275c5a22cb79f8f6ff619735dfe7a5ef6d4e6a8f2406fce71adb93ec546822c1366e9baa556f7e6e6322f168fe46c776 SHA512 83996a9639d03457037372443af6b48e4d0c75ec60cb8e9e4e9a29223d9b0081c1e9ec2150431e407290f22ee31cb5fcfe111eb9ca0b29c0988eff6eb3af7bfe +EBUILD opentelemetry-cpp-1.5.0.ebuild 966 BLAKE2B 6a8223d7565c5d5ddfa394a14455645f055c3afb911c98c7429b98d785658518bafe1bc93fe8429fa45d001d97c61417e5cb4e176b55a2cac8abf89fc31e1591 SHA512 3146c21d6da4e76c4fa8b3d17a9c52fb4e9b64657f7f1e03dbf19ea3a767554473aaff7eaeee7089d2e4a9e2c2202f4cc2090c816323a54420e6c4113f79da47 MISC metadata.xml 396 BLAKE2B 4f1e0d0edd6e3c57c5e01d8428a4203113e0bbabb1c9e02c03c99998ce839edf422bb058c28fc0b1adec6655114fd89ef11dec4897cbde4fef61d80bd11fbaf9 SHA512 f56f523cb2b99bb75162d06a0be09e662cfd64b5b58b5f92f61d4384319285f0614965ee3d585e16067249b4b17f01bef566b34e5bbfd6faf5ba2574c233b982 diff --git a/dev-cpp/opentelemetry-cpp/files/opentelemetry-cpp-1.5.0-tests.patch b/dev-cpp/opentelemetry-cpp/files/opentelemetry-cpp-1.5.0-tests.patch new file mode 100644 index 000000000000..1ef8821f55d8 --- /dev/null +++ b/dev-cpp/opentelemetry-cpp/files/opentelemetry-cpp-1.5.0-tests.patch @@ -0,0 +1,67 @@ +diff --git a/ext/test/http/curl_http_test.cc b/ext/test/http/curl_http_test.cc +index 3059faaa..55657809 100644 +--- a/ext/test/http/curl_http_test.cc ++++ b/ext/test/http/curl_http_test.cc +@@ -229,7 +229,7 @@ TEST_F(BasicCurlHttpTests, HttpResponse) + ASSERT_EQ(count, 4); + } + +-TEST_F(BasicCurlHttpTests, SendGetRequest) ++TEST_F(BasicCurlHttpTests, DISABLED_SendGetRequest) + { + received_requests_.clear(); + auto session_manager = http_client::HttpClientFactory::Create(); +@@ -246,7 +246,7 @@ TEST_F(BasicCurlHttpTests, SendGetRequest) + ASSERT_TRUE(handler->got_response_); + } + +-TEST_F(BasicCurlHttpTests, SendPostRequest) ++TEST_F(BasicCurlHttpTests, DISABLED_SendPostRequest) + { + received_requests_.clear(); + auto session_manager = http_client::HttpClientFactory::Create(); +@@ -312,7 +312,7 @@ TEST_F(BasicCurlHttpTests, CurlHttpOperations) + delete handler; + } + +-TEST_F(BasicCurlHttpTests, SendGetRequestSync) ++TEST_F(BasicCurlHttpTests, DISABLED_SendGetRequestSync) + { + received_requests_.clear(); + curl::HttpClientSync http_client; +@@ -337,7 +337,7 @@ TEST_F(BasicCurlHttpTests, SendGetRequestSyncTimeout) + result.GetSessionState() == http_client::SessionState::SendFailed); + } + +-TEST_F(BasicCurlHttpTests, SendPostRequestSync) ++TEST_F(BasicCurlHttpTests, DISABLED_SendPostRequestSync) + { + received_requests_.clear(); + curl::HttpClientSync http_client; +@@ -365,7 +365,7 @@ TEST_F(BasicCurlHttpTests, GetBaseUri) + "http://127.0.0.1:31339/"); + } + +-TEST_F(BasicCurlHttpTests, SendGetRequestAsync) ++TEST_F(BasicCurlHttpTests, DISABLED_SendGetRequestAsync) + { + curl::HttpClient http_client; + +@@ -439,7 +439,7 @@ TEST_F(BasicCurlHttpTests, SendGetRequestAsyncTimeout) + } + } + +-TEST_F(BasicCurlHttpTests, SendPostRequestAsync) ++TEST_F(BasicCurlHttpTests, DISABLED_SendPostRequestAsync) + { + curl::HttpClient http_client; + +@@ -478,7 +478,7 @@ TEST_F(BasicCurlHttpTests, SendPostRequestAsync) + } + } + +-TEST_F(BasicCurlHttpTests, FinishInAsyncCallback) ++TEST_F(BasicCurlHttpTests, DISABLED_FinishInAsyncCallback) + { + curl::HttpClient http_client; + diff --git a/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.5.0.ebuild b/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.5.0.ebuild new file mode 100644 index 000000000000..2d70f1cdbd83 --- /dev/null +++ b/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.5.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="The OpenTelemetry C++ Client" +HOMEPAGE=" + https://opentelemetry.io/ + https://github.com/open-telemetry/opentelemetry-cpp +" +SRC_URI="https://github.com/open-telemetry/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="+jaeger prometheus test" + +RDEPEND=" + net-misc/curl:= + dev-libs/thrift:= + dev-libs/boost:= +" +DEPEND=" + ${RDEPEND} + test? ( + dev-cpp/gtest + dev-cpp/benchmark + ) +" + +RESTRICT="!test? ( test )" + +PATCHES=( + # remove tests the need network + "${FILESDIR}/opentelemetry-cpp-1.5.0-tests.patch" +) + +src_configure() { + local -a mycmakeargs=( + -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON + -DBUILD_SHARED_LIBS:BOOL=ON + -DBUILD_TESTING:BOOL=$(usex test) + -DWITH_JAEGER:BOOL=$(usex jaeger) + -DWITH_PROMETHEUS:BOOL=$(usex prometheus) + ) + + cmake_src_configure +} |