Summary: | Provide way to query *.pc installation paths | ||
---|---|---|---|
Product: | pkg-config | Reporter: | Ville Skyttä <ville.skytta> |
Component: | src | Assignee: | Tollef Fog Heen <tfheen> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | herrold |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Add .pc file for pkg-config itself |
Description
Ville Skyttä
2008-03-12 13:19:36 UTC
If this is seen too complex, I think just shipping a *.pc file with the default colon separated path queryable with "pkg-config --variable=pcpath pkg-config" and then subsequently split into dirs by apps that need it would be a good improvement too. Created attachment 20719 [details] [review] Add .pc file for pkg-config itself Here's a start (see comment 1), can be used with "pkg-config pkg --variable=pc_path" to find out the full default path for .pc files. Strangely, "pkg-config pkg-config ..." did not work for me, therefore I named the .pc to pkg.pc (consistent with the .m4). By the way, FWIW, the shell script version which still exists in bzr had a --print-pc-path option... Also, note that the patch itself kind of manifests the problem at hand which was described in the initial comment: where should I install my *.pc file? Currently it's "hardcoded" to $(libdir)/pkgconfig but that might not be correct, depending on --with-pc-path passed to configure. That's something I bet quite a few projects are struggling with. You can query current git using:
> ./pkg-config --variable pc_path pkg-config
/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
|
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.