Bug 23922

Summary: Dangling .pc symlinks are considered good candidates
Product: pkg-config Reporter: Ciaran Anscomb <fdobug>
Component: srcAssignee: Tollef Fog Heen <tfheen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: low    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Stat filenames before adding to locations hash

Description Ciaran Anscomb 2009-09-14 04:04:48 UTC
Created attachment 29512 [details] [review]
Stat filenames before adding to locations hash

Our situation is a globally mounted /usr/local with symlinks to arch-specific
files.  For some archs, .pc symlinks in /usr/local/lib/pkgconfig don't point to
any arch-specific version, but pkg-config assumes they're ok.

Attached patch stats filenames and checks they look like regular files before
adding them to the locations hash.
Comment 1 Tollef Fog Heen 2011-05-15 05:09:43 UTC
Thanks, fixed with a slightly different patch in next version.

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.