From owner-freebsd-ports Tue Oct 3 7:10:38 2000 Delivered-To: freebsd-ports@freebsd.org Received: from ns1.sunesi.net (ns1.sunesi.net [196.15.192.194]) by hub.freebsd.org (Postfix) with ESMTP id C82DF37B503; Tue, 3 Oct 2000 07:10:34 -0700 (PDT) Received: from nbm by ns1.sunesi.net with local (Exim 3.03 #1) id 13gSm3-000HgP-00; Tue, 03 Oct 2000 16:10:27 +0200 Date: Tue, 3 Oct 2000 16:10:27 +0200 From: Neil Blakey-Milner To: Maxim Sobolev Cc: Akinori -Aki- MUSHA , freebsd-ports@FreeBSD.org, bmah@FreeBSD.org Subject: Re: Enhancement of pkg_version's version comparison routine Message-ID: <20001003161027.B67542@mithrandr.moria.org> References: <86k8by6eis.wl@archon.local.idaemons.org> <20000927002401.A73341@mithrandr.moria.org> <39D9D006.652DC258@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <39D9D006.652DC258@FreeBSD.org>; from sobomax@FreeBSD.org on Tue, Oct 03, 2000 at 03:24:38PM +0300 Organization: Sunesi Clinical Systems X-Operating-System: FreeBSD 3.3-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue 2000-10-03 (15:24), Maxim Sobolev wrote: > Neil Blakey-Milner wrote: > > > You rule. > > > > If you or anyone else is bored, hack multi-version support into > > pkg_version like I did way-back-when: > > > > webalizer-1.30.4 = up-to-date > > webalizer-2.00.12 = up-to-date > > The more comprehensive solution would be to add information about package origin > (i.e. corresponding /usr/ports/foo/bar directory) into +CONTENTS, so pkg_version > will be able to look into port's directory to check version instead of relying > on INDEX (however the latter could be used as a fallback). This should fix at > least two problems with pkg_version: considerable lag between actual ports and > versions in ports/INDEX; and inability to distinguish between multi-version > ports. I currently looking into this problem and it seems that we could utilize > either `@option' or `@comment' PLIST variables to avoid introducing new variable > (to retain backward compatability of packages). > > Any comments, ideas, suggestions? Take zsh and zsh-devel, or any of those devel packages - how do you tell which one to follow when it moves from zsh-5.0 and zsh-devel-6.0 to zsh-7.0 and zsh-devel-8.0? I like your idea, though. That just seemed to leap at me. Neil -- Neil Blakey-Milner Sunesi Clinical Systems nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message