From owner-freebsd-questions@FreeBSD.ORG Mon Oct 20 02:16:09 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 228CA16A4B3 for ; Mon, 20 Oct 2003 02:16:09 -0700 (PDT) Received: from falcon.midgard.homeip.net (h76n3fls24o1048.bredband.comhem.se [213.67.148.76]) by mx1.FreeBSD.org (Postfix) with SMTP id 3C20B43F85 for ; Mon, 20 Oct 2003 02:16:06 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: (qmail 29618 invoked by uid 1001); 20 Oct 2003 09:16:04 -0000 Date: Mon, 20 Oct 2003 11:16:04 +0200 From: Erik Trulsson To: Matthew Seaman , Kent Stewart , Lowell Gilbert , freebsd-questions@freebsd.org Message-ID: <20031020091604.GA21577@falcon.midgard.homeip.net> Mail-Followup-To: Matthew Seaman , Kent Stewart , Lowell Gilbert , freebsd-questions@freebsd.org References: <20031017183307.401450af.adam.mclaurin@gmx.net> <44k77148ug.fsf@be-well.ilk.org> <20031019172132.GA47552@falcon.midgard.homeip.net> <200310191242.13604.kstewart@owt.com> <20031019214918.GA57122@falcon.midgard.homeip.net> <20031020073937.GA15500@happy-idiot-talk.infracaninophile.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031020073937.GA15500@happy-idiot-talk.infracaninophile.co.uk> User-Agent: Mutt/1.5.4i Subject: Re: Why build INDEX ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2003 09:16:09 -0000 On Mon, Oct 20, 2003 at 08:39:37AM +0100, Matthew Seaman wrote: > On Sun, Oct 19, 2003 at 11:49:18PM +0200, Erik Trulsson wrote: > > On Sun, Oct 19, 2003 at 12:42:13PM -0700, Kent Stewart wrote: > > > > If that was true, why does the man page for portupgrade tell you to do > > > the following > > > > > > o To perform upgrades effectively and correctly, remember to run > > > pkgdb(1) with -F on occasions to fix dependency discrepancies, > > > and run portsdb(1) with -Uu every time you CVSup the ports tree > > > to keep your ports INDEX database up-to-date in sync with the > > > tree. > > > Ask the people who wrote that manpage. > > The portupgrade port might use INDEX. I don't use portupgrade, so I > > neither know nor care about what it does. > > The utilities in the base system don't need an up-to-date INDEX. > > That's not entirely true. pkg_version(1) won't work without an INDEX > file. Yes, it will. pkg_version will first check against the version of the port in the ports tree. Only if that is not available is INDEX consulted. Read the manpage for pkg_version(1) if you don't believe me. > > In general, INDEX is used by any application that attempts to compare > the version numbers of your installed ports with the version numbers > available in the ports tree. However the INDEX file has no direct > effect on compiling or installing any particular port. s/is used/can be used/ and you are correct. > > If you have some other mechanism for deciding which ports need to be > updated, then you don't need the INDEX file. Like checking the ports tree directly, which is what pkg_version(1) does. -- Erik Trulsson ertr1013@student.uu.se