On Fri, 03 Jul 2020 18:45:07 +0900 Mike Hommey <mh+report...@glandium.org> 
wrote:
..
> Arguably, freetype2.pc shouldn't depend on libbrotlidec.pc except with a
> Required.private, assuming one doesn't actually need to include
> libbrotli headers or link against libbrotli library (presumably, that's
> the case).

The thing is that libbrotli *is* in Requires.private, and pkg-config still
insists on it to exist.

Current (buggy) version:

$ cat /usr/lib/x86_64-linux-gnu/pkgconfig/freetype2.pc
prefix=/usr
exec_prefix=/usr
libdir=/usr/lib/x86_64-linux-gnu
includedir=/usr/include

Name: FreeType 2
URL: https://freetype.org
Description: A free, high-quality, and portable font engine.
Version: 23.2.17
Requires:
Requires.private: zlib, libpng, libbrotlidec
Libs: -L${libdir} -lfreetype
Libs.private:
Cflags: -I${includedir}/freetype2
$ _

As you can see, libbrotlidec is in Requires.private.
Should pkgconfig skip this?

/mjt

Reply via email to