Bug 27753

Summary: version 1.0 is not recognized as being >= 1
Product: pkg-config Reporter: lievenmoors
Component: srcAssignee: Tollef Fog Heen <tfheen>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.