Bug 2172 - --atleast-pkgconfig-version and --define-variable weirdness
Summary: --atleast-pkgconfig-version and --define-variable weirdness
Status: RESOLVED FIXED
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Scott James Remnant
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-29 14:53 UTC by dave benson
Modified: 2005-04-01 07:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description dave benson 2004-12-29 14:53:46 UTC
I'm trying to set PKG_CONFIG="pkg-config --define-variable=prefix=/whatever" but
it's not working because of a option parsing issue.

Basically,
  pkg-config --define-variable=foo=bar --atleast-pkgconfig-version=0.0.9
works (succeeds with the latest pkgconfig), but if you omit the second '=',
then
  pkg-config --define-variable=foo=bar --atleast-pkgconfig-version 0.0.9
fails!

If pkg.m4 didn't use the no-= version, then this problem would not affect me.
So a patch that merely changes that might be good (for users of older pkgconfig
versions).

Maybe upgrading popt in pkg-config would fix the problem...
Comment 1 Tollef Fog Heen 2005-04-02 01:46:49 UTC
You can drop the =, so it'll be 

--define-variable foo=bar

It seems popt doesn't support mixing = and non-= options in the same command line.


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.