Bug 28240 - pkg-config 0.24 fails to find 'foo' if foo.pc has an empty Cflags field
Summary: pkg-config 0.24 fails to find 'foo' if foo.pc has an empty Cflags field
Status: RESOLVED FIXED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Tollef Fog Heen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-25 06:53 UTC by Ingmar Vanhassel
Modified: 2010-05-28 09:16 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Ingmar Vanhassel 2010-05-25 06:53:59 UTC
The latest pkg-config release fails to find packages that contain an empty Cflags field:

ingmar@cannonball ~/development/git/FDO/pkg-config (git)-[master]- % pkg-config --atleast-version 2.22.0 gthread-2.0 --print-errors ; echo $?
0
ingmar@cannonball ~/development/git/FDO/pkg-config (git)-[master]- % pkg-config --atleast-version 2.22.0 glib-2.0 --print-errors ; echo $?
0

ingmar@cannonball ~/development/git/FDO/pkg-config (git)-[master]- % pkg-config --atleast-version 2.22.0 gio-2.0 --print-errors ; echo $?
Couldn't parse Cflags field into an argument vector: missing argument
1
ingmar@cannonball ~/development/git/FDO/pkg-config (git)-[master]- % pkg-config --atleast-version 2.22.0 gobject-2.0 --print-errors ; echo $?
Couldn't parse Cflags field into an argument vector: missing argument
1

Both packages have an empty 'Cflags:' field:
 % ack '^Cflags:\s+$' /usr/lib64/pkgconfig/{gio,gobject}-2.0.pc
/usr/lib64/pkgconfig/gio-2.0.pc
14:Cflags: 
/usr/lib64/pkgconfig/gobject-2.0.pc
11:Cflags:

Since this affects glib, this breaks quite a few packages.
Comment 1 Tollef Fog Heen 2010-05-28 09:16:57 UTC
Thanks, this is fixed in the just-released 0.25


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.