From owner-freebsd-ports@FreeBSD.ORG Mon Jun 28 15:26:05 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A466816A4CE for ; Mon, 28 Jun 2004 15:26:05 +0000 (GMT) Received: from fillmore.dyndns.org (port-212-202-50-15.dynamic.qsc.de [212.202.50.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D63F43D1D for ; Mon, 28 Jun 2004 15:26:05 +0000 (GMT) (envelope-from eikemeier@fillmore-labs.com) Received: from [172.16.0.13] (helo=localhost) by fillmore.dyndns.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34 (FreeBSD)) id 1Bey0A-0000bO-OM; Mon, 28 Jun 2004 17:25:24 +0200 Date: Mon, 28 Jun 2004 17:25:16 +0200 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) To: Sergey Matveychuk From: Oliver Eikemeier In-Reply-To: <40E02CCE.6020001@ciam.ru> Message-Id: <5BD6716A-C917-11D8-9FE1-00039312D914@fillmore-labs.com> Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: FreeBSD ports Subject: Re: Ports with version numbers going backwards: devel/ode X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2004 15:26:05 -0000 Sergey Matveychuk wrote: > 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. As far as I understand your proposal this will give us 0.005 < 0.05 < 0.039 < 0.050 < 0.5 < 0.39 < 0.50 < 0.390 < 0.500 while the current order is 0.005 = 0.05 = 0.5 < 0.039 = 0.39 < 0.050 = 0.50 < 0.390 < 0.500 so you have `interesting' sequences like `0.05 < 0.039 < 0.5 < 0.39'. This is what you intended, but it looks strange to me. -Oliver