From owner-freebsd-questions@FreeBSD.ORG Sat Oct 15 15:14:58 2011 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 1022E1065672 for ; Sat, 15 Oct 2011 15:14:58 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id BC3598FC17 for ; Sat, 15 Oct 2011 15:14:57 +0000 (UTC) Received: from mail2.sea5.speakeasy.net (mail2.sea5.speakeasy.net [69.17.117.41]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id F3DBDA71C21 for ; Sat, 15 Oct 2011 11:14:56 -0400 (EDT) Received: (qmail 18636 invoked from network); 15 Oct 2011 15:14:51 -0000 Received: by simscan 1.4.0 ppid: 4412, pid: 4305, t: 0.1844s scanners: clamav: 0.88.2/m:52/d:10739 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail2.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 15 Oct 2011 15:14:51 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.8]) by be-well.ilk.org (Postfix) with ESMTP id 5CC202E0D9; Sat, 15 Oct 2011 11:14:45 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id 155A43983C; Sat, 15 Oct 2011 11:14:45 -0400 (EDT) From: Lowell Gilbert To: Peter Kryszkiewicz References: Date: Sat, 15 Oct 2011 11:14:44 -0400 In-Reply-To: (Peter Kryszkiewicz's message of "Thu, 13 Oct 2011 20:39:29 -0700") Message-ID: <44hb3athgb.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: ports/distfiles via NFS or SSH X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Oct 2011 15:14:58 -0000 Peter Kryszkiewicz writes: > I have several machines networked using NFS mounts or SSH and scp. Only one > machine has internet connectivity - a laptop (machine vbear) with a wireless > card (I'm in a temporary location for a few weeks and only wireless is > available here). > > I tried to mount the ports tree on this machine to the other machines > (machine mfc for instance) with: > > #mfc> cd /usr > #mfc> mount_nfs vbear:/usr/ports ports > > and then installing the needed port on mfc. What happens is that the working > directories and the entire local ports tree gets written to /var, so that I > get /var/ports/usr/ports/devel/xxgdb/work.... and so on. /var fills up very > quickly and I soon get "disk full" errors. > > How can I avoid this? That doesn't happen by default, so you've already changed something, and resetting it to default may be all you need to do. By default, the work directories would be under (e.g.) /usr/ports/devel/xxgdb/work. You have probably set the WRKDIRPREFIX variable somewhere (possibly in make.conf?) and clearing it -- or setting it to somewhere local on the machine, but with more space, which would be faster -- will solve the problem. There are other variables that could cause similar symptoms, but WRKDIRPREFIX is the one I'd bet on at this point if I were you. > I believe the solution is to point the ports Makefile to a different (local) > working directory but point fetch to grab distfiles from the (remote) > laptop, but I'm not sure how to do this. Nothing in what you posted indicates that the distfiles are a problem for you, but if it is, you probably need to look at the DISTDIR variable, and figure out if you are grabbing distfiles to multiple places. Given that only one machine is capable of downloading distfiles in the first place, I think it's unlikely you have trouble in this area. Good luck.