1 |
commit: 67fb969bd8947f7545dd1498592113a594f7cfc5 |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 19 18:30:20 2022 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 19 18:31:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67fb969b |
7 |
|
8 |
dev-cpp/opentelemetry-cpp: add 1.6.0, fix bug #865029 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/865029 |
11 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
12 |
|
13 |
dev-cpp/opentelemetry-cpp/Manifest | 1 + |
14 |
...entelemetry-cpp-1.6.0-dont-install-nosend.patch | 15 +++++++ |
15 |
.../opentelemetry-cpp-1.6.0.ebuild | 52 ++++++++++++++++++++++ |
16 |
3 files changed, 68 insertions(+) |
17 |
|
18 |
diff --git a/dev-cpp/opentelemetry-cpp/Manifest b/dev-cpp/opentelemetry-cpp/Manifest |
19 |
index 47236b2a0ca7..d1f17d8833bf 100644 |
20 |
--- a/dev-cpp/opentelemetry-cpp/Manifest |
21 |
+++ b/dev-cpp/opentelemetry-cpp/Manifest |
22 |
@@ -1,3 +1,4 @@ |
23 |
DIST opentelemetry-cpp-1.3.0.tar.gz 710030 BLAKE2B 56aa3213fd9c9ac5266197c2ca417f5ff181ca28016033c9320e63122eaf9a53bdb265e1778227a9036bc42f8837755a3009cb23610268bc03b9fb24b3844c82 SHA512 38f613c208ec847c8bf7765732d8198fcc427c293a929945d72c2f739e89d2a0ad36be4d94cc3c1b77fd7b1f1d1e5d8bdb38094a493ba3da3125281cd1016836 |
24 |
DIST opentelemetry-cpp-1.4.0.tar.gz 722520 BLAKE2B c34867846708218e5ffcff9cdaa275e0c43201f681a68ad697d9f83ac04b7fdc6cdb69d942274cbe200b241e407ba11218c7e92da4f9adf4490e89c06388347f SHA512 a2339c0f9b2dc0d4f1964536a844241436bd68774445a0eab6e89e51965e01d3c40d2aa776d751eb497c50e9fdaa4e0023095efb14c8abbd6bbe23a2596eb3c9 |
25 |
DIST opentelemetry-cpp-1.5.0.tar.gz 782336 BLAKE2B 11153dc8a219d3916c3d8aeb7575c2a98d5e8e094cbada096bfa03dd465a08a4fb09139ad22400e4b5693a5d740b8095618858256a2c5679ae080e4e3db16005 SHA512 a506973223c49531d4b0c3febf5734dfe2e44c22f8854ed96935cda0783a14d0819cc3dbb2d3f8373f960f27acf78aafc777ee76aeb14828df9c4b4434e4fe6f |
26 |
+DIST opentelemetry-cpp-1.6.0.tar.gz 790774 BLAKE2B 9512c092bfe49c9da82eff3950204c1f2eb654df2ed428e58ceb8877d15d80d9978fa6da37f7780352538c74de04bac69660528b255dfbce743f89b9d4020dd2 SHA512 ae0777451a3d2d676afd9f3142ab78c7afb08474f6038bd810ff0ee30fee6695e10100c901e7ffadf3faf16c7d19622acdea414cd720be8572f7720f2d528628 |
27 |
|
28 |
diff --git a/dev-cpp/opentelemetry-cpp/files/opentelemetry-cpp-1.6.0-dont-install-nosend.patch b/dev-cpp/opentelemetry-cpp/files/opentelemetry-cpp-1.6.0-dont-install-nosend.patch |
29 |
new file mode 100644 |
30 |
index 000000000000..f3d757f2c5f4 |
31 |
--- /dev/null |
32 |
+++ b/dev-cpp/opentelemetry-cpp/files/opentelemetry-cpp-1.6.0-dont-install-nosend.patch |
33 |
@@ -0,0 +1,15 @@ |
34 |
+diff --git a/ext/src/http/client/nosend/CMakeLists.txt b/ext/src/http/client/nosend/CMakeLists.txt |
35 |
+index 497daeb3..949bfd36 100644 |
36 |
+--- a/ext/src/http/client/nosend/CMakeLists.txt |
37 |
++++ b/ext/src/http/client/nosend/CMakeLists.txt |
38 |
+@@ -27,10 +27,4 @@ if(${BUILD_TESTING}) |
39 |
+ target_link_libraries(http_client_nosend ${GTEST_BOTH_LIBRARIES} ${GMOCK_LIB} |
40 |
+ opentelemetry_ext) |
41 |
+ |
42 |
+- install( |
43 |
+- TARGETS http_client_nosend |
44 |
+- EXPORT "${PROJECT_NAME}-target" |
45 |
+- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
46 |
+- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} |
47 |
+- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
48 |
+ endif() |
49 |
|
50 |
diff --git a/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.6.0.ebuild b/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.6.0.ebuild |
51 |
new file mode 100644 |
52 |
index 000000000000..d007ad4f6418 |
53 |
--- /dev/null |
54 |
+++ b/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.6.0.ebuild |
55 |
@@ -0,0 +1,52 @@ |
56 |
+# Copyright 2022 Gentoo Authors |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+EAPI=8 |
60 |
+ |
61 |
+inherit cmake |
62 |
+ |
63 |
+DESCRIPTION="The OpenTelemetry C++ Client" |
64 |
+HOMEPAGE=" |
65 |
+ https://opentelemetry.io/ |
66 |
+ https://github.com/open-telemetry/opentelemetry-cpp |
67 |
+" |
68 |
+SRC_URI="https://github.com/open-telemetry/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
69 |
+ |
70 |
+LICENSE="Apache-2.0" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64 ~arm64" |
73 |
+IUSE="+jaeger prometheus test" |
74 |
+ |
75 |
+RDEPEND=" |
76 |
+ net-misc/curl:= |
77 |
+ dev-libs/thrift:= |
78 |
+ dev-libs/boost:= |
79 |
+" |
80 |
+DEPEND=" |
81 |
+ ${RDEPEND} |
82 |
+ test? ( |
83 |
+ dev-cpp/gtest |
84 |
+ dev-cpp/benchmark |
85 |
+ ) |
86 |
+" |
87 |
+ |
88 |
+RESTRICT="!test? ( test )" |
89 |
+ |
90 |
+PATCHES=( |
91 |
+ # remove tests the need network |
92 |
+ "${FILESDIR}/opentelemetry-cpp-1.5.0-tests.patch" |
93 |
+ # bug #865029 |
94 |
+ "${FILESDIR}/opentelemetry-cpp-1.6.0-dont-install-nosend.patch" |
95 |
+) |
96 |
+ |
97 |
+src_configure() { |
98 |
+ local -a mycmakeargs=( |
99 |
+ -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON |
100 |
+ -DBUILD_SHARED_LIBS:BOOL=ON |
101 |
+ -DBUILD_TESTING:BOOL=$(usex test) |
102 |
+ -DWITH_JAEGER:BOOL=$(usex jaeger) |
103 |
+ -DWITH_PROMETHEUS:BOOL=$(usex prometheus) |
104 |
+ ) |
105 |
+ |
106 |
+ cmake_src_configure |
107 |
+} |