Bug 28609

Summary: pkg-config --list-all does not list all
Product: pkg-config Reporter: djcb.bulk
Component: srcAssignee: Dan Nicholson <dbn.lists>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: kbproto.pc, which is not visible in --list-all

Description djcb.bulk 2010-06-19 00:02:10 UTC
Created attachment 36365 [details]
kbproto.pc, which is not visible in --list-all

It seems that the pkg-config --list-all command misses quite some of the packages.

$ pkg-config --list-all | wc -l 
118

$ls /usr/lib/pkgconfig/*.pc | wc -l
335

I found this because zsh pkg-config autocompletion depends on --list-all, and so does not work for many packages. 

For reference, I have attached one of the .pc files which are not visible with --list-all; I can't see anything obviously wrong with it, but who knows. But not that the problem is only with --list-all, e.g,

$ pkg-config --modversion kbproto

works as expected.

(note, i'm using pkg-config 0.22 on ubuntu lucid)
Comment 1 Dan Nicholson 2012-04-21 15:31:16 UTC
Huh, I'm not having this problem as of commit 6485a160fe4c7cddfc00078d4d03d1efefc91607.

$ ./pkg-config --list-all | wc -l
227
$ ls /usr/lib64/pkgconfig/ /usr/share/pkgconfig/ | sed -e '/^$/d' -e '/^\//d' | wc -l
227

Do you think you can try again with a newer release?
Comment 2 Dan Nicholson 2012-08-14 12:58:30 UTC
I feel pretty confident this is working with the current release. The other thing I thought of looking at this report again is that your pkg-config may be configured to look in /usr/lib64/pkgconfig or something other than /usr/lib/pkgconfig by default. You can find out on recent pkg-config by running `pkg-config --variable=pc_path pkg-config`.

Please reopen if you can try again with the current version and still have the issue.
Comment 3 Rodrigo Silva 2013-05-09 13:46:32 UTC
This is the case when there is a broken .pc installed, for example the one from ripperx package.

--list-all exits immediately when it finds parsing errors of a package file, so not all packages are listed.

Still a problem in 0.26

*** This bug has been marked as a duplicate of bug 26615 ***

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.