autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

m4_version_compare and new version numbering [was: distcheck fails with


From: Eric Blake
Subject: m4_version_compare and new version numbering [was: distcheck fails with autotest...]
Date: Fri, 02 Nov 2007 22:26:56 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Jim Meyering on 11/2/2007 1:01 PM:
>> Also, why is the current version something like 2.61a-248-dc51?
>> That compares wrongly in order with 2.61b which is what post 2.61a
>> CVS versions had.
> 
> Because these versions are post-2.61a, and pre-2.61b :-)

Hmm.  Maybe it's time to rewrite m4_version_compare to treat `-' the same
as `.' when it occurs in the original version strings.  Currently,
m4_version_unletter (a key component in AC_PREREQ) interprets the - in the
string as a subtraction, with the following results:

m4_version_unletter([2.61b])
=> 2.62.-1.11
m4_version_unletter([2.61a-248-dc51])
=> 2.62.-1.-239.-1.622261

Side-by-side, this correctly compares 61a-nnn as smaller than 61b.
However, for increasing nnn, the further you get from 61a, the more
negative the result gets, which is the wrong direction.

I'll throw together a patch when I have more time.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHK/iQ84KuGfSFAYARAnkvAJ9V0ou4diJLQEV5weMf9B5HMrUvcgCfUl3g
HbUsJNJcuA83Ii2PWPtoePM=
=LQkh
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]