From owner-cvs-all@FreeBSD.ORG Mon Jan 24 14:43:42 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0677716A4CE; Mon, 24 Jan 2005 14:43:42 +0000 (GMT) Received: from melon.pingpong.net (82.milagro.bahnhof.net [195.178.168.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9245643D1D; Mon, 24 Jan 2005 14:43:41 +0000 (GMT) (envelope-from girgen@FreeBSD.org) Received: from localhost (localhost.pingpong.net [127.0.0.1]) by melon.pingpong.net (Postfix) with ESMTP id 3E1964AC88; Mon, 24 Jan 2005 15:43:40 +0100 (CET) Received: from melon.pingpong.net ([127.0.0.1]) by localhost (melon.pingpong.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 69382-01-78; Mon, 24 Jan 2005 15:43:40 +0100 (CET) Received: from [192.168.1.187] (81.milagro.bahnhof.net [195.178.168.81]) by melon.pingpong.net (Postfix) with ESMTP id 173384AC78; Mon, 24 Jan 2005 15:43:40 +0100 (CET) Date: Mon, 24 Jan 2005 15:43:40 +0100 From: Palle Girgensohn To: Mathieu Arnold , Sean Chittenden Message-ID: In-Reply-To: <3FB436057021D7C93416454A@cc-147.int.t-online.fr> References: <20050123100627.35E4716A501@hub.freebsd.org> <3FB436057021D7C93416454A@cc-147.int.t-online.fr> X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at pingpong.net cc: cvs-ports@FreeBSD.org cc: cvs-all@FreeBSD.org cc: ports-committers@FreeBSD.org Subject: Re: cvs commit: ports UPDATING ports/databases/postgresql-devel Makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 14:43:42 -0000 --On s=F6ndag, januari 23, 2005 11.22.50 +0100 Mathieu Arnold=20 wrote: > +-le 23/01/2005 10:06 +0000, Sean Chittenden =E9crivait : >| seanc 2005-01-23 10:06:21 UTC >| Port epoch bumped because 8.0.rc* is greater than 8.0.0. > > Note quite sure about that : > $ pkg_version -t 8.0.rc5.2005.01.16 8.0.0 > < Uh, 4.10 differs from 5.3 here: FreeBSD 4.10$ pkg_version -t 8.0.0rc5 8.0.0 > FreeBSD 4.10$ pkg_version -t 8.0rc5.2005.01.16 8.0.0 > FreeBSD 5.3$ pkg_version -t 8.0.0rc5 8.0.0 < FreeBSD 5.3$ pkg_version -t 8.0rc5.2005.01.16 8.0.0 < portupgrade has it own algorithm. In conflict with pkg_version-5.3, it=20 considers 8.0.0rc or even 8.0.0beta to be greater than 8.0.0.=20 pkg_version-5.3 does the right thing, and to me it looks like the=20 portupgrade's algorithm for versioning is overly simple (I've never used=20 ruby though, perhaps it has some fancy operator overload stuff?): cmp =3D newpkg.version <=3D> oldpkg.version if cmp > 0 service =3D :upgrade elsif cmp =3D=3D 0 service =3D :reinstall else service =3D :downgrade end I haven't checked if this is fixed in 4.11, but since it is not even out,=20 bumping port epoch is unfortunately necessary. :( Palle