From owner-freebsd-ports@FreeBSD.ORG Mon Jun 19 05:35:16 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F308C16A474 for ; Mon, 19 Jun 2006 05:35:15 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9829343D46 for ; Mon, 19 Jun 2006 05:35:15 +0000 (GMT) (envelope-from roberthuff@rcn.com) Received: from 209-6-203-75.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.203.75]) by smtp01.lnh.mail.rcn.net with ESMTP; 19 Jun 2006 01:36:55 -0400 X-IronPort-AV: i="4.06,149,1149480000"; d="scan'208"; a="224628847:sNHT29667768" From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17558.14075.20164.453926@jerusalem.litteratus.org> Date: Mon, 19 Jun 2006 01:32:43 -0400 To: ports@freebsd.org In-Reply-To: <44962FED.7050109@alumni.rice.edu> References: <44962FED.7050109@alumni.rice.edu> X-Mailer: VM 7.17 under 21.5 (beta27) "fiddleheads" XEmacs Lucid Cc: Subject: portsclean deleting too many distfiles 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: Mon, 19 Jun 2006 05:35:16 -0000 Jonathan Noack writes: > The first time I ran 'portsclean -D' after upgrading to > portupgrade 2.1.4_2,1, it deleted all distfiles for ports that > were not installed on that machine. However, I have > /usr/ports/distfiles shared via NFS to my cluster, so now all the > distfiles for ports installed on other machines are gone. The > machine I ran portsclean on was headless, so I lost EVERY > X-related distfile. This is especially painful as these tend to > be the biggest (e.g. OpenOffice is over 200MB). > > From the portsclean man page on the -D/--distclean option: "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)" > > I did not specify it twice (because I have 'portsclean -D' > aliased to 'pc') so I guess there is a regression in portupgrade > 2.1.4. Assuming I understand your issue correctly ... I think it's behaving correctly, just not as you expected. When you ran it on the headless machine ("H"), it looked at H's list of installed ports (/var/db/pkg/pkgdb.db ??), compared it to the distfiles on the NFS machine ("N") (which it has no way of knowing are /not/ local), computed the difference, and went merrily off into the sunset. Question: if new tarballs are downloaded only onto N, why does H need read/write access to that directory? Robert Huff