Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946807 - dev-cpp/opentelemetry-cpp-1.16.1: missing build requirement for prometheus use flag
Summary: dev-cpp/opentelemetry-cpp-1.16.1: missing build requirement for prometheus us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-12-22 06:06 UTC by MrSnivvel
Modified: 2025-04-24 18:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds dev-cpp/prometheus-cpp as depend when prometheus USE flag is enabled. (opentelemetry-cpp-1.16.1-prometheus-use.patch,443 bytes, patch)
2024-12-22 06:07 UTC, MrSnivvel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MrSnivvel 2024-12-22 06:06:06 UTC
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
Comment 1 MrSnivvel 2024-12-22 06:07:03 UTC
Created attachment 914636 [details, diff]
Adds dev-cpp/prometheus-cpp as depend when prometheus USE flag is enabled.
Comment 2 Larry the Git Cow gentoo-dev 2025-04-24 18:15:54 UTC
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(-)