From owner-freebsd-ports Tue Oct 3 6:34:35 2000 Delivered-To: freebsd-ports@freebsd.org Received: from blizzard.sabbo.net (blizzard.sabbo.net [193.193.218.18]) by hub.freebsd.org (Postfix) with ESMTP id 1F3A437B502; Tue, 3 Oct 2000 06:34:26 -0700 (PDT) Received: from vic.sabbo.net (root@[193.193.218.92]) by blizzard.sabbo.net (8.9.1/8.9.3) with ESMTP id QAA26838; Tue, 3 Oct 2000 16:34:04 +0300 (EEST) Received: from FreeBSD.org (big_brother.vega.com [192.168.1.1]) by vic.sabbo.net (8.11.0/8.9.3) with ESMTP id e93COgF73758; Tue, 3 Oct 2000 15:24:42 +0300 (EEST) (envelope-from sobomax@FreeBSD.org) Message-ID: <39D9D006.652DC258@FreeBSD.org> Date: Tue, 03 Oct 2000 15:24:38 +0300 From: Maxim Sobolev Organization: Vega International Capital X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: uk,ru,en MIME-Version: 1.0 To: Neil Blakey-Milner Cc: Akinori -Aki- MUSHA , freebsd-ports@FreeBSD.org, bmah@FreeBSD.org Subject: Re: Enhancement of pkg_version's version comparison routine References: <86k8by6eis.wl@archon.local.idaemons.org> <20000927002401.A73341@mithrandr.moria.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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? -Maxim To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message