Package: libelf-dev
Version: 0.170-0.1
Severity: normal

Dear Maintainer,

Due to the use of "Requires.private: zlib" in the libelf.pc pkg-config
file, the following fails:

$ pkg-config --exists libelf; echo $?
1

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


That is because pkg-config's Requires.private is parsed even when --
static is not used when calling pkg-config, even though it's only
needed when building a static library.

Please consider either adding a dependency to zlib1g-dev in libelf-dev
so that the required zlib pkg-config file is always available or to
change from "Requires.private: zlib" to "Libs.private: -lz" as a
workaround (yes it only applies to Requires, not to Libs - that's a
decision by the upstream developers of pkg-config).

Found while rebuilding iproute2 in a minimal chroot.

Thanks!

-- 
Kind regards,
Luca Boccassi

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to