Bug#801657: libdevmapper-dev: devmapper.pc has a private requirement on librt

Peter Rajnoha prajnoha at redhat.com
Tue Oct 13 06:34:48 UTC 2015

On 10/13/2015 06:20 AM, Nick Black wrote:
> Package: libdevmapper-dev
> Version: 2:1.02.104-1
> Severity: important
> Dear Maintainer,
> Use of pkg-config with libdevmapper isn't working due to a
> Requires.private dependence on librt. There's no librt.pc file, so this
> breaks:
> [skynet](0) $ pkg-config --print-requires-private devmapper
> Package librt was not found in the pkg-config search path.
> Perhaps you should add the directory containing `librt.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'librt', required by 'devmapper', not found
> [skynet](1) $
> I think what you want here is a Libs.private line with -lrt, and to
> remove librt from the Requires.private. librt is not a "package" in the
> pkg-config world, and can't be used this way.

Yes, this was a bug in upstream lvm2. It's already fixed with:


More information about the pkg-lvm-maintainers mailing list