From owner-freebsd-ports Wed Mar 28 15:35:12 2001 Delivered-To: freebsd-ports@freebsd.org Received: from sj-msg-core-3.cisco.com (sj-msg-core-3.cisco.com [171.70.157.152]) by hub.freebsd.org (Postfix) with ESMTP id 78D9137B71E; Wed, 28 Mar 2001 15:35:08 -0800 (PST) (envelope-from bmah@cisco.com) Received: from bmah-freebsd-0.cisco.com (bmah-freebsd-0.cisco.com [171.70.84.42]) by sj-msg-core-3.cisco.com (8.9.3/8.9.1) with ESMTP id PAA29768; Wed, 28 Mar 2001 15:33:48 -0800 (PST) Received: (from bmah@localhost) by bmah-freebsd-0.cisco.com (8.11.3/8.11.1) id f2SNZ2526600; Wed, 28 Mar 2001 15:35:02 -0800 (PST) (envelope-from bmah) Message-Id: <200103282335.f2SNZ2526600@bmah-freebsd-0.cisco.com> X-Mailer: exmh version 2.3.1 01/19/2001 with nmh-1.0.4 To: Anton Berezin Cc: "Bruce A. Mah" , freebsd-ports@freebsd.org, knu@freebsd.org Subject: Re: pkg_version comparison routine In-Reply-To: <20010328231956.B34676@heechee.tobez.org> References: <200103280237.f2S2bUP02277@bmah-freebsd-0.cisco.com> <20010328231956.B34676@heechee.tobez.org> Comments: In-reply-to Anton Berezin message dated "Wed, 28 Mar 2001 23:19:56 +0200." From: bmah@freebsd.org (Bruce A. Mah) Reply-To: bmah@freebsd.org X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Image-Url: http://www.employees.org/~bmah/Images/bmah-cisco-small.gif X-Url: http://www.employees.org/~bmah/ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1195070758P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Wed, 28 Mar 2001 15:35:02 -0800 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org --==_Exmh_1195070758P Content-Type: text/plain; charset=us-ascii If memory serves me right, Anton Berezin wrote: > On Tue, Mar 27, 2001 at 06:37:30PM -0800, Bruce A. Mah wrote: > > > I'm going to revisit an issue long overdue...the fact that the > > algorithm used by pkg_version(1) for comparing versions doesn't work > > in all the cases specified by the Porter's Handbook. knu tried to get > > my attention on this issue a number of months ago, even going so far > > as to submit some patches to fix this problem. Unfortunately I > > dropped the ball on this, and I'm sure he's understandably annoyed at > > me. > > We not just steal a little snippet from devel/p5-Sort-Versions? > > I believe it handles most insane possibilities. Hmmm. Well, for starters I didn't know this existed. I'm not sure I understand all of it, but it looks like it handles pretty much every case in the Porter's Handbook (plus others from our own Ports Collection). What's the licensing on this thing? (pkg_version is part of the base system now, for better or worse, so we'd need to import this code into src/.) Other than that the only thing that comes to mind is NIH, which I'll freely admit to. :-) Bruce. --==_Exmh_1195070758P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: Exmh version 2.2 06/23/2000 iD8DBQE6wnUm2MoxcVugUsMRArdDAKCQssie+sIBPNRiomvrtNUqSzFeEgCghzkW XW2u01z5bwSCHKrubSlkARA= =oOb+ -----END PGP SIGNATURE----- --==_Exmh_1195070758P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message