With prometheus USE flag enabled, CMake complains about not finding appropriate .cmake file for build. Following patch adds dev-cpp/prometheus-cpp as a dependency. diff --git a/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.16.1.ebuild b/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.16.1.ebuild index aff74e33e5..3ac450b343 100644 --- a/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.16.1.ebuild +++ b/dev-cpp/opentelemetry-cpp/opentelemetry-cpp-1.16.1.ebuild @@ -23,6 +23,9 @@ RDEPEND=" " DEPEND=" ${RDEPEND} + prometheus? ( + dev-cpp/prometheus-cpp + ) test? ( dev-cpp/gtest dev-cpp/benchmark Reproducible: Always
Created attachment 914636 [details, diff] Adds dev-cpp/prometheus-cpp as depend when prometheus USE flag is enabled.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9347b98112e75fdb803d073f983614cb2ef116a3 commit 9347b98112e75fdb803d073f983614cb2ef116a3 Author: Sv. Lockal <lockalsash@gmail.com> AuthorDate: 2025-01-10 16:35:09 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-04-24 18:14:55 +0000 dev-cpp/opentelemetry-cpp: fix build with clang, gcc-15 and [prometheus] Closes: https://bugs.gentoo.org/946146 Closes: https://bugs.gentoo.org/946807 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/40088 Closes: https://github.com/gentoo/gentoo/pull/40088 Signed-off-by: Sam James <sam@gentoo.org> .../files/opentelemetry-cpp-1.16.1-cstdint.patch | 14 +++++++ ...entelemetry-cpp-1.16.1-fix-clang-template.patch | 43 ++++++++++++++++++++++ .../opentelemetry-cpp-1.16.1.ebuild | 9 ++++- 3 files changed, 64 insertions(+), 2 deletions(-)