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: UNCONFIRMED
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-01-10 16:48 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.