Bug 28453 - pkg-config 0.25 has problems with escaping characters from unintalled-pc files.
Summary: pkg-config 0.25 has problems with escaping characters from unintalled-pc files.
Status: RESOLVED DUPLICATE of bug 33920
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: Other All
: medium major
Assignee: Tollef Fog Heen
QA Contact:
Depends on:
Reported: 2010-06-08 15:19 UTC by Brian Cameron
Modified: 2011-05-15 05:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Brian Cameron 2010-06-08 15:19:49 UTC
After updating the OpenSolaris build system to use pkg-config 0.25 we noticed that several modules do not build properly anymore.  For example, we notice problems when building ORBit2, audiofile, esound, and bonobo.

Note that on OpenSolaris, we often build with uninstalled.pc files where Cflags and Libs are defined like this:

Libs: ${pc_top_builddir}/${pcfiledir}/foo.la
Cflags: -I${pc_top_builddir}/${pcfiledir}

When using such uninstalled.pc files, it looks like pkg-config v0.25 escapes the chars '$', '(' and ')', while the old version v0.23 does not.  Something like this:

New version returns: "\$\(top_builddir\)/../..."
Old version returns: "$(top_builddir)/../..."

Thus the escaped string of Cflags and Libs are not converted correctly in the Makefile, causing build failures.

I know that pkg-config 0.24 had similar problems that were fixed, but perhaps the
uninstalled.pc case has not been fixed?
Comment 1 Tollef Fog Heen 2011-05-15 05:14:40 UTC

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

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.