From owner-freebsd-ports@FreeBSD.ORG Mon Jun 28 15:53:59 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 19D9016A4CE for ; Mon, 28 Jun 2004 15:53:59 +0000 (GMT) Received: from av13-1-sn4.m-sp.skanova.net (av13-1-sn4.m-sp.skanova.net [81.228.10.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2A5743D48 for ; Mon, 28 Jun 2004 15:53:57 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: by av13-1-sn4.m-sp.skanova.net (Postfix, from userid 502) id B6C1F37E4E; Mon, 28 Jun 2004 17:53:56 +0200 (CEST) Received: from smtp4-2-sn4.m-sp.skanova.net (smtp4-2-sn4.m-sp.skanova.net [81.228.10.180]) by av13-1-sn4.m-sp.skanova.net (Postfix) with ESMTP id A9E4437E47 for ; Mon, 28 Jun 2004 17:53:56 +0200 (CEST) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp4-2-sn4.m-sp.skanova.net (Postfix) with SMTP id 283C837E47 for ; Mon, 28 Jun 2004 17:53:56 +0200 (CEST) Received: (qmail 27334 invoked by uid 1001); 28 Jun 2004 15:53:55 -0000 Date: Mon, 28 Jun 2004 17:53:54 +0200 From: Erik Trulsson To: Oliver Eikemeier Message-ID: <20040628155354.GA21457@falcon.midgard.homeip.net> Mail-Followup-To: Oliver Eikemeier , Sergey Matveychuk , FreeBSD ports References: <40E02CCE.6020001@ciam.ru> <5BD6716A-C917-11D8-9FE1-00039312D914@fillmore-labs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5BD6716A-C917-11D8-9FE1-00039312D914@fillmore-labs.com> User-Agent: Mutt/1.5.6i cc: FreeBSD ports cc: Sergey Matveychuk 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:53:59 -0000 On Mon, Jun 28, 2004 at 05:25:16PM +0200, Oliver Eikemeier wrote: > 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 I understand his proposal rather as giving 0.005 < 0.039 < 0.05 = 0.050 < 0.5 < 0.39 < 050 < 0.390 < 0.500 I.e. IF (but only if) a part of the version number starts with a zero the whole is just treated as a decimal number, unlike the current scheme where we always treat it as two integers separated by a dot (and leading zeros in a version number part are thus irrelevant currently.) I don't know which scheme is best. The current one has the advantage that it is simple and easy to describe, but it can give surprising results if you think of the version number as an actual *number*. > > 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. -- Erik Trulsson ertr1013@student.uu.se