From owner-freebsd-ports@FreeBSD.ORG Thu Nov 4 06:46:59 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C220F106566C for ; Thu, 4 Nov 2010 06:46:59 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id 520B58FC14 for ; Thu, 4 Nov 2010 06:46:58 +0000 (UTC) Received: (qmail 29787 invoked by uid 399); 4 Nov 2010 06:46:58 -0000 Received: from localhost (HELO ?192.168.2.9?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 4 Nov 2010 06:46:58 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4CD256E1.5050807@FreeBSD.org> Date: Wed, 03 Nov 2010 23:46:57 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <4CD23DC7.1040305@gmail.com> In-Reply-To: <4CD23DC7.1040305@gmail.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: portsclean -CDD oddness X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Nov 2010 06:46:59 -0000 On 11/3/2010 9:59 PM, Jimmie James wrote: > After doing a portupgrade, I've always run portsclean -CDD > [for reference] > -C Clean out all the working directories of the ports tree. (cf. > WRKDIRPREFIX) > -D Clean out all the distfiles that are not referenced by any port in > the ports tree. Specified twice (i.e. -DD), clean out all the > distfiles that are not referenced by any port that is currently > installed. (cf. DISTDIR) > > This time, fresh csup and a few ports updated, it wiped out EVERY > distfile for reasons I don't understand. Anyone have a clue as to why, > or what the frak is going on? I can't tell you authoritatively, but I would be very surprised if this problem were not the result of the recent bsd.port.mk changes that removed MD5 checksums, and renamed the variable that refers to the distinfo file. If you've ever had the desire to give portmaster a try, now might be a good time, since I've updated it to deal with this issue. It has the --clean-distfiles feature which does what you described -DD does. It doesn't have the -C feature, but IMO you're better off using a custom WRKDIRPREFIX anyway. :) Alternatively, the following is (arguably) the most efficient command line to handle that problem: cd /usr/ports && find . -maxdepth 3 -type d -name work -exec rm -rf {} \; hth, Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/