From owner-freebsd-ports@FreeBSD.ORG Tue Nov 9 14:28:17 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 BC547106566C for ; Tue, 9 Nov 2010 14:28:17 +0000 (UTC) (envelope-from jimmiejaz@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 739978FC14 for ; Tue, 9 Nov 2010 14:28:17 +0000 (UTC) Received: by ywg4 with SMTP id 4so760073ywg.13 for ; Tue, 09 Nov 2010 06:28:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:cc:subject:content-type :content-transfer-encoding; bh=1jJJCyTSC0XbDRg11QyzxW42BM3QFbXOADACQEp+cEg=; b=hgjM2tQOzMjqhxyq+xeGWWQTJt3iaZfDTE+m9qVr2MZuRGl53o5QNeuUhKfBm7EHi6 fONDhVkjkhdqIVrmePf+pSykDKlPPff+HOaAbAchw30F4s1PGildZR4wGkInjDl5S/9U ZPMQlpixIh01KPWxsZmv6kcS5D8wLdUxtoF2c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; b=nFWCrzum5E+ZSrSuaezGvZjd4ZABeb8qQAdKe1RU34Cib52Hd2er0a9laa/lvNWM1k 7z1kQWwCSe+XZ5bA03xkX6+F5TiF50B+XPipiX1gfUEarWQuo6vfrzsZdW99KrO/iyrZ +vKCEfO4UUAUxex14S9te7Po9RvWzGDF+fGUo= Received: by 10.150.212.5 with SMTP id k5mr10741207ybg.246.1289312895624; Tue, 09 Nov 2010 06:28:15 -0800 (PST) Received: from jimmiejaz.org (bas9-toronto63-1128678266.dsl.bell.ca [67.70.67.122]) by mx.google.com with ESMTPS id c4sm961936yha.40.2010.11.09.06.28.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 09 Nov 2010 06:28:13 -0800 (PST) Message-ID: <4CD95A75.7090403@gmail.com> Date: Tue, 09 Nov 2010 09:28:05 -0500 From: Jimmie James User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.12) Gecko/20101029 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: "Doug Barton dougb"@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: portsclean -CDD oddness X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jimmiejaz@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2010 14:28:17 -0000 >On 11/03/2010 23:46, Doug Barton wrote: >>> 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. > portupgrade was updated today, I imagine to resolve this issue. Yes, the update $FreeBSD: ports/ports-mgmt/portupgrade/Makefile,v 1.259 2010/11/08 07:56:14 stas Exp $ has fixed the issue of removing all distfiles. Thank you! >> 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. > I neglected to mention that 'portmaster -t --clean-distfiles-all' will > do what you described -D does. Once I migrate this 7.3-STABLE to the latest 8.x branch, I'm planning on using portmaster. I have a bit of a Bad Feeling about making the switch with 1217 ports installed. I'm just waiting on getting my backup drive returned to me. >> 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 You've helped a lot Doug, it's really appreciated, cheers!