Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953948 - dev-cpp/opentelemetry-cpp: missing prometheus depency in .cmake
Summary: dev-cpp/opentelemetry-cpp: missing prometheus depency in .cmake
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 930064
  Show dependency tree
 
Reported: 2025-04-17 07:50 UTC by Zhixu Liu
Modified: 2025-04-17 15:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zhixu Liu 2025-04-17 07:50:39 UTC
he installed file "pentelemetry-cpp-target.cmake" has no "find_package(prometheus-cpp REQUIRED)" if dev-cpp/openetelemetry-cpp is built w/ USE="prometheus", so package depend on it will fail to build:

> CMake Error at /usr/lib64/cmake/opentelemetry-cpp/opentelemetry-cpp-target.cmake:156 (set_target_properties):
>   The link interface of target "opentelemetry-cpp::prometheus_exporter"
>   contains:
>
>     prometheus-cpp::pull

>   but the target was not found

build success after add following line in /usr/lib64/cmake/opentelemetry-cpp/opentelemetry-cpp-target.cmake, before "add_library(opentelemetry-cpp::prometheus_exporter SHARED IMPORTED)"

> find_package(prometheus-cpp REQUIRED)

Reproducible: Always