Upcoming 0.24

Dan Nicholson dbn.lists at gmail.com
Sun May 9 11:26:56 PDT 2010


On Sun, May 9, 2010 at 1:16 AM, Tollef Fog Heen <tfheen at err.no> wrote:
> ]] Johannes Schmid
>
> | And the recently discussed --print-requires/--print-provides would be
> | great, too (
> | http://cvs.fedoraproject.org/viewvc/rpms/pkgconfig/devel/pkgconfig-0.15.0-reqprov.patch?view=markup)
>
> The patch in Fedora CVS seems to not enable requires or
> requires.private, making --print-requires useless.  Is this intentional?
> :-)  After fixing this, it still seems to print duplicates:
>
>> PKG_CONFIG_LIBDIR=`pwd`/check ./pkg-config --errors-to-stdout --print-errors --print-requires requires-test
> public-dep
> private-dep
> public-dep

It works on the pkg-config in fedora.

$ pkg-config --print-requires xext
xextproto
x11
xextproto
$

The duplicates were stripped in an rpm scriptlet. But, yeah,
apparently this doesn't work with pkg-config master.

$ ./pkg-config --print-requires xext
$

> If people are going to rely on this output, I'd somewhat want it to be
> --print-requires that just prints Requires and --print-requires-private
> that prints the private variant.  Input appreciated on this, as I'm not
> the one who'll be consuming the information.

I had both options briefly while I was trying to Matthias to fix the
patch for Requires.private, but it was easier to roll it into
--print-requires since rpm wanted both parts anyway. For upstream, it
might be better to have both options since then you're advertising it
to more people than just rpm.

--
Dan


More information about the pkg-config mailing list