[arch] Won't update bind & dnsutils (version numbers issue)

Jason Chu jason at archlinux.org
Sat Jul 28 19:17:41 EDT 2007


On Sat, Jul 28, 2007 at 11:58:57PM +0200, Jaroslaw Swierczynski wrote:
> 2007/7/28, Jan de Groot <jan at jgc.homeip.net>:
> >
> > The package should have been built with 9.4.1P1 and then it would be
> > fine.
> 
> $ vercmp 9.4.1 9.4.1P1
> 1
> $ vercmp 9.4.1 9.4.1_P1
> 1
> $ vercmp 9.4.1 9.4.2
> -1
> 
> That's not all. Check this out:
> 
> $ vercmp 9.4.1 9.4.1.P1
> 1
> 
> Samba? Here:
> 
> $ vercmp 3.0.25 3.0.25b
> 1
> 
> Not buggy, eh?

I agree that Jan wasn't right about the 9.4.1P1 statement, but I disagree
about the buggy assertion.

If I give you a package version 1.2.3a1 is this newer than version 1.2.3?
What about 1.2.3p1?  What about 1.2.3b?

The current implementation assumes that any letters after a number come
before that number (3a is newer than 3).  This works really really well
when you want to package alpha, beta, or rc packages, but not very well
when developers release patch level b, P1, +1, NG_, or _R1b.

How do you propose we change vercmp to handle both cases flawlessly?

Jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://archlinux.org/pipermail/arch/attachments/20070728/7fe8ac83/attachment-0001.bin 


More information about the arch mailing list