Bug 54271

Summary: pkg-config --print-variables prints an assertion failure if there are no variables
Product: pkg-config Reporter: Peter Wu <peter>
Component: srcAssignee: Tollef Fog Heen <tfheen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: mgorny
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Peter Wu 2012-08-30 16:04:46 UTC
Version: 0.27.1

Consider a minimal foo.pc file like the below:

Name: foo
Description: Bar
Version: 4.2

If you run `pkg-config --libs foo`, it will print an assertion failure:

GLib-CRITICAL **: g_hash_table_foreach: assertion `hash_table != NULL' failed
Comment 1 Dan Nicholson 2012-10-13 16:08:23 UTC
Thanks for the report. Fixed in commit 1184d20.

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.