From owner-freebsd-questions@FreeBSD.ORG Mon Aug 6 11:39:44 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7BA016A418 for ; Mon, 6 Aug 2007 11:39:44 +0000 (UTC) (envelope-from apvanderveen@att.net) Received: from mtiwmhc13.worldnet.att.net (mtiwmhc13.worldnet.att.net [204.127.131.117]) by mx1.freebsd.org (Postfix) with ESMTP id 99D0713C461 for ; Mon, 6 Aug 2007 11:39:44 +0000 (UTC) (envelope-from apvanderveen@att.net) Received: from t60.mydomain.home (cpe-72-231-141-22.nycap.res.rr.com[72.231.141.22]) by worldnet.att.net (mtiwmhc13) with ESMTP id <20070806113943113008v647e>; Mon, 6 Aug 2007 11:39:44 +0000 Message-ID: <46B70876.9040809@att.net> Date: Mon, 06 Aug 2007 07:39:34 -0400 From: "Arend P. van der Veen" User-Agent: Thunderbird 2.0.0.6 (X11/20070803) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <46B5E0F8.7050405@att.net> <20070806083111.F74284@obelix.home.rakhesh.com> In-Reply-To: <20070806083111.F74284@obelix.home.rakhesh.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: portsdb and cvsup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2007 11:39:44 -0000 Thanks for your story. The only reason we used -U was that we were not sure what they meant got special macros. The man page for portsdb status that you only use -U if you have special macros in /etc/make.conf. All we have in there is version information so I think that does not apply to use. Thanks again, Arend Rakhesh Sasidharan wrote: > > On Sun, 5 Aug 2007, Arend P. van der Veen wrote: > >> The approach that I had been using was: >> >> /usr/local/bin/cvsup -L 0 /usr/sup/supfile >> /usr/local/sbin/portsdb -Uu >> >> This had worked great until the emacs22 update. Now portsdb crashes >> due to the emacs entry in /etc/make.conf. However, I see very little >> chatter on the lists about this. I have started to wonder if the bulk >> of the community may be updating their ports differently. Upon some >> limited research I found that I could use: >> >> /usr/local/bin/cvsup -L 0 /usr/sup/supfile >> /usr/local/sbin/portsdb -Fu >> >> This work fine for me. I can then use tools such as pkg_version, >> pkg_delete, portinstall and portupgrade without any problems. >> >> My open ended question is what does the rest of the community do to >> update their ports collection? >> > > I don't run portsdb at all. :) > > What I figured from the portsdb manpages is that if you don't run it > manually then it gets run upon using one of the portupgrade tools. I > don't mind the 30s or so delay that causes and so I don't run portsdb > manually. > > During my first few days with FreeBSD, however, I used to run ''portsdb > -Fu''. My understanding is that that would fetch the INDEX-6 and update > INDEX-6.db (since I am on FreeBSD 6.x) but I don't see why I should do > this coz the INDEX files are updated when I update the ports tree > anyways! (If I have understood this incorrectly, someone please correct > me). > > I tried ''portsdb -Uu'' just once. To see what it does. Took a long time > and so I never tried it again. From the manpage I understand that it > creates/ updates the INDEX files by running the ''make index'' command, > but the reasoning behind that didn't make sense to me ... > > So that's my story. > > Regards, > Rakhesh >