From owner-freebsd-questions@FreeBSD.ORG Wed Dec 19 03:56:38 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 5378616A418 for ; Wed, 19 Dec 2007 03:56:38 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: from smtpgate1.pacific.net.sg (smtpgate1.pacific.net.sg [203.120.90.31]) by mx1.freebsd.org (Postfix) with SMTP id 9472E13C469 for ; Wed, 19 Dec 2007 03:56:37 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: (qmail 21715 invoked from network); 19 Dec 2007 03:56:35 -0000 Received: from adsl2.dyn234.pacific.net.sg (HELO P2120.somewherefaraway.com) (oceanare@210.24.234.2) by smtpgate1.pacific.net.sg with ESMTPA; 19 Dec 2007 03:56:34 -0000 Message-ID: <47689660.7040107@pacific.net.sg> Date: Wed, 19 Dec 2007 11:56:16 +0800 From: Erich Dollansky User-Agent: Thunderbird 2.0.0.6 (X11/20070826) MIME-Version: 1.0 To: John Nielsen References: <47688E99.4050802@pacific.net.sg> <200712182243.55376.lists@jnielsen.net> In-Reply-To: <200712182243.55376.lists@jnielsen.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: rough method of cleaning the ports tree 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: Wed, 19 Dec 2007 03:56:38 -0000 Hi, John Nielsen wrote: > On Tuesday 18 December 2007, Erich Dollansky wrote: > > There are at least two better ways of doing this that will take less time > and not put unnecessary load on the CVS servers. this was the main reason for asking. If all would do it, CVSup would be of no help at all. > > 1) Delete "work" directories after building ports. If you use the "clean" > make target it will do this automatically. I typically do "make install This is what I always did but it is also time consuming on slower machines. > 2) Use WRKDIRPREFIX. I set this in my .cshrc, but you can set it manually or I have not noticed this before. This sounds to be the best option. It will result it what I want and still will not put any load on any machine except of mine if I have to rebuild. > See "man ports" for more information on the port build infrastructure and > associated make targets and environment variables. > I do this ones in a while but never noticed or did not understand the use of WRKDIRPREFIX. > The other thing in the ports collection that tends to take up space is the > distfiles directory. If you want to delete it wholesale then go ahead I do the cleaning work manually there. I delete only double entries to avoid additional downloading. > HTH, I think, it really does. Erich