dev-util/pkgconf[pkg-config] doesn't produce the same results as dev-util/pkgconfig. For example, both pkgconfig-0.26 and pkg-config-lite-0.26.1 give the correct result for cflags of x11-libs/libXft-2.3.0: $ pkg-config --cflags "xft >= 0.13.0" -I/usr/include/freetype2 Whereas pkgconf-0.3 and pkgconf-9999 produce: $ pkg-config --cflags "xft >= 0.13.0" -I/usr/include -I/usr/include
It seems that pkgconf doesn't handle '.private' at all...
I believe you're mistaken. It appears from the xft.pc file that pkgconf actually gives the correct result where pkgconfig-0.26 does not: (snipping the 2 relevant lines, see /usr/lib/pkgconfig/xft.pc if you want others): includedir=${prefix}/include Cflags: -I${includedir} and a quick locate -i xft gives me: /usr/include/X11/Xft/Xft.h /usr/include/X11/Xft/XftCompat.h I'll see what nenolod's opinion is on this, but pkgconf seems to be correct according to every piece of information available to me (aside from the behaviour of pkgconfig).
(In reply to comment #2) > I believe you're mistaken. It appears from the xft.pc file that pkgconf > actually gives the correct result where pkgconfig-0.26 does not: > > (snipping the 2 relevant lines, see /usr/lib/pkgconfig/xft.pc if you want > others): > > includedir=${prefix}/include > Cflags: -I${includedir} > > and a quick locate -i xft gives me: > > /usr/include/X11/Xft/Xft.h > /usr/include/X11/Xft/XftCompat.h > > > I'll see what nenolod's opinion is on this, but pkgconf seems to be correct > according to every piece of information available to me (aside from the > behaviour of pkgconfig). Xft includes freetype headers. pkgconf needs to dig through Requires.private to get Cflags for them.
yeah, .private should be expanded for --cflags even when --static isn't used. for --libs, .private is expanded only when --static is used.
handled in git master, see: https://github.com/nenolod/pkgconf/commit/bea3c202de491ca8f074a3ce9b8576cde69b3e65 https://github.com/nenolod/pkgconf/commit/5ea52d4caef2de5cc75e627346e934573b9bc9ca https://github.com/nenolod/pkgconf/commit/38f3dc78a9ffa2fcff4de52b6111781021bd1ef8 https://github.com/nenolod/pkgconf/commit/8f8ed9b60a226122604eec90955b0011fc7e7f9f
should be all set now in the tree; thanks for the report! Commit message: Version bump http://sources.gentoo.org/dev-util/pkgconf/pkgconf-0.4.ebuild?rev=1.1 http://sources.gentoo.org/dev-util/pkgconf/pkgconf-9999.ebuild?r1=1.2&r2=1.3