Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2003 11:16:04 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>, Kent Stewart <kstewart@owt.com>, Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>, freebsd-questions@freebsd.org
Subject:   Re: Why build INDEX ?
Message-ID:  <20031020091604.GA21577@falcon.midgard.homeip.net>
In-Reply-To: <20031020073937.GA15500@happy-idiot-talk.infracaninophile.co.uk>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031020091604.GA21577>