On Wed, 2025-11-12 at 11:49 -0500, Michael Jeanson wrote:
> On 2025-11-11 07:13, Felix Moessbauer wrote:
> > Package: libbabeltrace-dev
> > Version: 1.5.11-4+b2
> > Severity: normal
> > 
> > Dear Maintainer,
> > 
> > the pkgconfig script of babeltrace depends on the .pc file of the
> > popt and uuid package. These are shipped in the libpopt-dev / uuid-dev 
> > package.
> > Without this, the package cannot be added as a "dependency" in a meson 
> > script.
> > 
> > Here is a snippet from the babeltrace.pc file showing the dependency
> > (check the Requires.private):
> > 
> > Name: Babeltrace
> > Description: libbabeltrace provides a reader for trace files, reading 
> > mainly the
> > Common Trace Format (CTF).
> > Version: 1.5.11
> > Requires:
> > Requires.private: uuid popt
> > Libs: -L${libdir} -lbabeltrace
> > Cflags: -I${includedir}
> 
> Hi,
> 
> I'm not sure I understand the issue, both uuid and popt are internal 
> dependencies of babeltrace and AFAIK are not exposed in the public 
> headers and not required to build other software against libbabeltrace.

That is technically correct, but that's not sufficient to use pkg-
config to resolve the cflags.

Example (can be run in a debian:trixie container):

apt install babeltrace-dev pkg-config
pkg-config --cflags babeltrace

Package uuid was not found in the pkg-config search path.
Perhaps you should add the directory containing `uuid.pc'
to the PKG_CONFIG_PATH environment variable
Package 'uuid', required by 'babeltrace', not found
Package 'popt', required by 'babeltrace', not found

Meson internally calls pkg-config --cflags, hence inherits the error.

Best regards,
Felix

-- 
Siemens AG
Linux Expert Center
Friedrich-Ludwig-Bauer-Str. 3
85748 Garching, Germany

Reply via email to