Bug 2458 - enhancement: add print-requires/print-provides queries
Summary: enhancement: add print-requires/print-provides queries
Status: RESOLVED FIXED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Tollef Fog Heen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-02 16:53 UTC by Nalin Dahyabhai
Modified: 2012-05-08 17:15 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
patch to add --print-requires and --print-provides options (2.20 KB, patch)
2005-02-02 16:54 UTC, Nalin Dahyabhai
Details | Splinter Review

Description Nalin Dahyabhai 2005-02-02 16:53:59 UTC
If pkgconfig allows callers to query it for requires/provides information,
native packaging systems can take advantage of that information.
Comment 1 Nalin Dahyabhai 2005-02-02 16:54:34 UTC
Created attachment 1824 [details] [review]
patch to add --print-requires and --print-provides options
Comment 2 Daniel Macks 2005-10-14 11:59:11 UTC
A --print-requires that is (optionally?) recursive (or is at least as recursive
as the indirect-dependencies flag for pkg-config itself) would be a great help
for me! On OS X, Fink's pkg-config is built with --enable-indirect-deps. When
I'm trying to compile something, a simple developer's note like "needs libfoo"
results in manually tracing the Requires lines to find all the headers I'm going
to need.
Comment 3 Tim Mooney 2007-07-06 16:12:09 UTC
Any chance of incorporating this change into the mainline?  Recent versions of RPM will make use of --print-requires and --print-provides if pkg-config supports them, so for people doing packaging, it would be very nice if Nalin's patch or something similar could become part of the stock pkg-config.
Comment 4 Johannes Schmid 2010-04-19 00:53:05 UTC
Any news on this one?

This would make our life in the anjuta IDE much easier as we could track correctly which include directories are part of which package.

I am willing to update the patch to latest git if there is interest in it.

Thanks!
Comment 5 Dan Nicholson 2012-05-08 17:15:53 UTC
Looks like this got fixed a while back in commit d690466a. Please reopen if that's not the case.


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.