Ports with version numbers going backwards: devel/ode

Sergey Matveychuk sem at ciam.ru
Mon Jun 28 07:36:06 PDT 2004


Oliver Eikemeier wrote:

>> 0.005 < 0.039 < 0.05 < 0.050 < 0.39 < 0.390 < 0.5 < 0.50 < 0.500
>>
>> 4.01 < 4.1 < 4.10 < 4.100
>>
>> It makes problems?
> 
> 
> In you example above you have 0.39 < 0.5, which gives you
> 
> 4.01 < 4.02 < ... < 4.09 < 4.1 < 4.10 < 4.11 < 4.2 < 4.20 < ...
> 
> So basically FreeBSD 4.10 < FreeBSD 4.2 (which is not FreeBSD 4.02, the 
> latter doesn't exist). Many ports follow this conventions, for example 
> devel/cvs+ipv6, with 1.11.5 < 1.11.15. Besides, You'll have stuff like 
> 1.0 < 1.00, which is strange too.

I meant we can treat leading zeros as decreasing factor.
So, x.001 < x.002 < x.01 < x.02 < x.1 < x.2 < x.10 < x.20
In other words - zeros never can dropped except there are only zeros in 
the number i.e. X = X.0 = X.00 = X.000 etc.

We can look on a version number part with leading zeros as on a number 
with an implicit dot: 001 -> 0.01, 02 -> 0.2 etc. So comparing will not 
be a problem.

-- 
Sem.


More information about the freebsd-ports mailing list