fontconfig.pc.in contains "Cflags: -I${includedir} @EXPAT_CFLAGS@ @FREETYPE_CFLAGS@ @ICONV_CFLAGS@ @LIBXML2_CFLAGS@" which hardcodes -I/usr/include/glib-2.0 into fontconfig.pc after compilation. when pkg-config used with PKG_CONFIG_PATH=<custompath>/usr/lib/pkgconfig:/usr/lib/pkgconfig, pkg-config puts -I/usr/include/glib-2.0 instead of -I<custompath>/usr/include/glib-2.0 I think its better to use Requires: instead of using Cflags: to include dependency libraries
No dependencies in fontconfig to glib. you might get confused with other library.
$ pkg-config --cflags libxml-2.0 -I/usr/include/glib-2.0 this gets into @LIBXML2_CFLAGS@ and used in fontconfig.pc.in
apologies, not libxml2, its freetype2 which depends on harfbuzz which depends on glib2 introduces -I/usr/include/glib-2.0 $ pkg-config -cflags freetype2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include this whole line gets into @FREETYPE_CFLAGS@ and gets hardcoded into fontconfig.pc
Fixed in git
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.