From owner-freebsd-questions@FreeBSD.ORG Wed Jun 23 06:34:24 2004 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 BC71916A4CE for ; Wed, 23 Jun 2004 06:34:24 +0000 (GMT) Received: from smtp.owt.com (smtp.owt.com [204.118.6.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A17B43D69 for ; Wed, 23 Jun 2004 06:34:24 +0000 (GMT) (envelope-from kstewart@owt.com) Received: from [207.41.94.233] (owt-207-41-94-233.owt.com [207.41.94.233]) by smtp.owt.com (8.12.8/8.12.8) with ESMTP id i5N6Xlco022957; Tue, 22 Jun 2004 23:33:49 -0700 From: Kent Stewart To: Matt Navarre Date: Tue, 22 Jun 2004 23:34:01 -0700 User-Agent: KMail/1.6.2 References: <20040622220538.34e5e5a5@localhost> <200406222151.15101.kstewart@owt.com> <200406222219.47739.mnavarre@cox.net> In-Reply-To: <200406222219.47739.mnavarre@cox.net> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406222334.01861.kstewart@owt.com> cc: freebsd-questions@freebsd.org Subject: Re: cvsup and ports 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: Wed, 23 Jun 2004 06:34:24 -0000 On Tuesday 22 June 2004 10:19 pm, Matt Navarre wrote: > On Tuesday 22 June 2004 09:51, Kent Stewart wrote: > > On Tuesday 22 June 2004 09:27 pm, Matt Navarre wrote: > > > On Tuesday 22 June 2004 07:05, epilogue@allstream.net wrote: > > > > hello all, > > > > > > This checks out the new ports text file. > > > > > > > # portsdb -Uu <<<<<<< ...this? > > > > > > This builds INDEX.db, which is all the ports/dependency > > > information in the format that portupgrade(and others?) uses so > > > it can get all the right ports when you install something. > > > > > > > i'm not sure i have a firm grasp of why i do both. are they > > > > complimentary or redundant steps? could someone please clarify > > > > or point me to right set of docs? > > > > > > They're complimentary, portsdb -uU doesn't really do anything > > > unless you have a new /usr/ports/INDEX or /usr/ports/INDEX.db got > > > hosed. > > > > This isn't true. Portsdb -U creates a brand new INDEX using your > > current /usr/ports and -u uses that to generate a new INDEX.db > > That's not what the man page implys: > > > "The portsdb command is a tool to generates the ports database > named INDEX.db from the ports index file named INDEX. It is commonly > used among the tool suite and automatically updated on demand when it > gets older than the index file" > > I'm not sayin' you're wrong, since I read that a long while ago and > haven't needed to know anything more about portsdb since, but you and > the description in portsdb(1) seem to disagree. > > Yes, the -U option does "Update or create the ports index file called > INDEX", it's just not evident from the description that it can use > the installed ports tree. If you are to run it after you cvsup ports-all, what do you think it is using? In addition, portsdb -U now runs "make index" but you would have to search -ports@ to read about that change. You can read comments about it on http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/portupgrade/Makefile see the commit message for version 1.78. Kent > > So I was kinda right. A little :) > > > Kent > > Matt -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html