Bug 27753 - version 1.0 is not recognized as being >= 1
Summary: version 1.0 is not recognized as being >= 1
Status: RESOLVED WONTFIX
Alias: None
Product: pkg-config
Classification: Unclassified
Component: src (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Tollef Fog Heen
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-20 08:21 UTC by lievenmoors
Modified: 2010-05-09 00:39 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description lievenmoors 2010-04-20 08:21:22 UTC
The pkg-config file installed by a package (lv2core) contains this line:

Version: 1

When I try to compile another package it uses this command:

pkg-config --errors-to-stdout --print-errors --atleast-version=1.0 lv2core

and pkg-config returns 1

I've seen other .pc files which use an int for the package version, so I think it
is allowed. If this is the case, pkg-config should return 0 when comparing 1 with 1.0.
Comment 1 Tollef Fog Heen 2010-05-09 00:39:40 UTC
We're using the version comparison function from RPM where 1 isn't larger than or equal to 1.0.  I was somewhat surprised to see the same behaviour in dpkg too, but I don't want to change our version comparision function to be incompatible.


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.