Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414413 - dev-util/pkgconf-0.3[pkg-config] is not compatible with dev-util/pkgconfig
Summary: dev-util/pkgconf-0.3[pkg-config] is not compatible with dev-util/pkgconfig
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Embedded Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-02 20:26 UTC by Ulrich Müller
Modified: 2012-05-02 22:11 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2012-05-02 20:26:38 UTC
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
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-02 20:30:39 UTC
It seems that pkgconf doesn't handle '.private' at all...
Comment 2 Jeff (JD) Horelick (RETIRED) gentoo-dev 2012-05-02 20:36:06 UTC
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).
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-02 20:37:38 UTC
(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.
Comment 4 SpanKY gentoo-dev 2012-05-02 20:40:07 UTC
yeah, .private should be expanded for --cflags even when --static isn't used.  for --libs, .private is expanded only when --static is used.
Comment 6 SpanKY gentoo-dev 2012-05-02 22:11:54 UTC
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