From owner-freebsd-questions@FreeBSD.ORG Tue May 29 14:40:13 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E566106566B for ; Tue, 29 May 2012 14:40:13 +0000 (UTC) (envelope-from gmx@ross.cx) Received: from www81.your-server.de (www81.your-server.de [213.133.104.81]) by mx1.freebsd.org (Postfix) with ESMTP id 2A4CB8FC17 for ; Tue, 29 May 2012 14:40:12 +0000 (UTC) Received: from [188.108.239.192] (helo=michael-think) by www81.your-server.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.74) (envelope-from ) id 1SZNag-0003Kr-05; Tue, 29 May 2012 16:40:06 +0200 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: freebsd-questions@freebsd.org, "Thomas Mueller" References: <59.01.13930.380A4CF4@smtp02.insight.synacor.com> Date: Tue, 29 May 2012 16:40:00 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michael Ross" Message-ID: In-Reply-To: <59.01.13930.380A4CF4@smtp02.insight.synacor.com> User-Agent: Opera Mail/11.64 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.97.3/14974/Tue May 29 14:45:27 2012) Cc: Subject: Re: How to indicate source directory in other than /usr/src? 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: Tue, 29 May 2012 14:40:13 -0000 Am 29.05.2012, 12:10 Uhr, schrieb Thomas Mueller : > How does one indicate a system source directory location when in other > than /usr/src? > > That could be necessary when in another directory, for instance running > ndiscvt. > > Or one could be building FreeBSD for a USB stick and want to do the > heavy work on a hard drive; I could also want to build and install ports > on the USB stick but do the heavy work on the hard drive. > > I couldn't find a variable named SRCDIR anywhere in the documentation, > in contrast to PORTSDIR, which I did find. > > I may also want to build 10-CURRENT from 9-STABLE system without giving > up the 9-STABLE source tree; I would need both source trees, but then > after the first successful build of 10-CURRENT, I could use that to > build updated versions. > > I often use nullfs for this kind of thing: mount -t nullfs /where/your/sources/are /usr/src mount -t nullfs /some/dir/for/objects /usr/obj Michael