From owner-freebsd-questions@FreeBSD.ORG Mon Oct 20 00:39:54 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 17FF616A4BF for ; Mon, 20 Oct 2003 00:39:54 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4655B43FA3 for ; Mon, 20 Oct 2003 00:39:52 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h9K7dcjA015846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 20 Oct 2003 08:39:44 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id h9K7dbU7015845; Mon, 20 Oct 2003 08:39:37 +0100 (BST) (envelope-from matthew) Date: Mon, 20 Oct 2003 08:39:37 +0100 From: Matthew Seaman To: Kent Stewart , Lowell Gilbert , freebsd-questions@freebsd.org Message-ID: <20031020073937.GA15500@happy-idiot-talk.infracaninophile.co.uk> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline In-Reply-To: <20031019214918.GA57122@falcon.midgard.homeip.net> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on happy-idiot-talk.infracaninophile.co.uk 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 07:39:54 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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= =20 > > the following=20 > >=20 > > o To perform upgrades effectively and correctly, remember to run > > pkgdb(1) with -F on occasions to fix dependency discrepancies, = =20 > > and run portsdb(1) with -Uu every time you CVSup the ports tree= =20 > > to keep your ports INDEX database up-to-date in sync with the= =20 > > 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.=20 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. If you have some other mechanism for deciding which ports need to be updated, then you don't need the INDEX file. Outside the base system, portupgrade(1) et al is all about working out which ports have updates available and updating them in the correct order: this clearly depends fundamentally on having some sort of index available. portupgrade(1) takes the data from the INDEX file and stores it in a DB hash INDEX.db, so, except as an intermediate file during index building, technically the portupgrade(1) tools don't need the INDEX file itself either. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --opJtzjQTFsWo+cga Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/k5E5dtESqEQa7a0RAmWpAJ0Wq6HWukOuyKG2hUD3HFR20bwkAQCfR5yG RIEkuYcDE2qV0xTWcGLGGpU= =LAt9 -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--