[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Document AS_VERSION_COMPARE.
From: |
Eric Blake |
Subject: |
Re: Document AS_VERSION_COMPARE. |
Date: |
Tue, 07 Oct 2008 19:44:04 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.17) Gecko/20080914 Thunderbird/2.0.0.17 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Ralf Wildenhues on 10/7/2008 2:27 PM:
> I'd like to use AS_VERSION_COMPARE in AM_PROG_VALAC in Automake.
> Thus I propose to document it in Autoconf now.
>
> Do you think this is ok? Should the relationship with
> m4_version_compare be documented better? I haven't checked
> but I think they have slightly different semantics, too.
They are different semantics. And what's worse, both semantics are
slightly different from coreutils 7.0 'sort --version-sort' semantics,
just recently hashed out on the gnulib list. But the awk implementation
looks like it is a shoo-in for strverscmp (not to mention that
tests/m4sh.at copies the strverscmp test vector from glibc), and since
that is what you documented, I think the patch is okay. Please apply.
I wonder if we will ever want to change semantics of either (or both)
m4_version_compare and AS_VERSION_COMPARE to try to match gnulib's
filevercmp semantics (now in use by coreutils), as that handles suffixes
like ~ and .tar* in a nicer manner than strverscmp; but we can revisit the
documentation at that time.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkjsEGQACgkQ84KuGfSFAYC7qACgoJjJWBYOfAZpyF7aGOLZOgpc
PsAAnjefSbPZqVpxsQ4gUmtz3tZxDxxg
=PrzJ
-----END PGP SIGNATURE-----