Bug #10651
closedpkg_config does not report required include headers
Description
pkg_config behavior seems incorrect in 2.2.0. I am testing following script in Linux Arch:
require 'mkmf' puts pkg_config("xft")
In 2.1.5 it gives
["-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz", "", "-lXft"]
In 2.2.0 it gives
["", "", "-lXft"]
pkg-config command line tool gives.
$ pkg-config --cflags xft -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz
So it points that new pkg_config implementation is incorrect.
Here is content of the pc file itself:
$ cat /usr/lib/pkgconfig/xft.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: Xft
Description: X FreeType library
Version: 2.3.2
Requires: xproto
Requires.private: xrender, fontconfig, freetype2
Cflags: -I${includedir}
Libs: -L${libdir} -lXft
Files