[Pkg-auth-maintainers] Bug#1003699: libfido2-dev: missing dependency on libssl-dev breaks pkg-config

Michael Biebl biebl at debian.org
Thu Jan 13 21:08:14 GMT 2022


On Thu, 13 Jan 2022 20:55:45 +0000 Luca Boccassi <bluca at debian.org> wrote:
> Package: libfido2-dev
> Version: 1.9.0-1
> Tags: patch
> 
> While adding libfido2-dev as a dependency to src:systemd, we noticed
> that it fails to build if libssl-dev is not installed, because
> libfido2.pc lists:
> 
> Requires: libcrypto
> 
> So pkg-config --cflags --libs libfido2 breaks:
> 
> pkg-config error with 'libfido2': Could not generate cargs for libfido2:
> Package libcrypto was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libcrypto.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'libcrypto', required by 'libfido2', not found
> 
> Could not generate cargs for libfido2:
> Package libcrypto was not found in the pkg-config search path.
> Perhaps you should add the directory containing `libcrypto.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'libcrypto', required by 'libfido2', not found
> 
> libssl-dev is currently suggested, so it should be bumped to a dependency.

Without having looked at libfido2, an alternative might be the usage of 
Requires.private

"Requires.private: A list of private packages required by this package 
but not exposed to applications. The version specific rules from the 
Requires field also apply here."

IIRC, Requires.private dependencies are not required for determining CFLAGS.

Regards,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-auth-maintainers/attachments/20220113/37aeabfe/attachment.sig>


More information about the Pkg-auth-maintainers mailing list