From owner-freebsd-questions@FreeBSD.ORG Tue May 29 13:04:52 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 9D1711065670 for ; Tue, 29 May 2012 13:04:52 +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 57E378FC14 for ; Tue, 29 May 2012 13:04:52 +0000 (UTC) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.39]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id A8185A706E3 for ; Tue, 29 May 2012 09:04:51 -0400 (EDT) Received: (qmail 17107 invoked from network); 29 May 2012 13:04:51 -0000 Received: by simscan 1.4.0 ppid: 31671, pid: 30387, t: 0.1746s scanners: clamav: m: Received: from unknown (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 29 May 2012 13:04:50 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.8]) by be-well.ilk.org (Postfix) with ESMTP id 03E3A33C1E; Tue, 29 May 2012 09:04:44 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id DADD639822; Tue, 29 May 2012 09:04:43 -0400 (EDT) From: Lowell Gilbert To: "Thomas Mueller" References: <59.01.13930.380A4CF4@smtp02.insight.synacor.com> Date: Tue, 29 May 2012 09:04:43 -0400 In-Reply-To: <59.01.13930.380A4CF4@smtp02.insight.synacor.com> (Thomas Mueller's message of "Tue, 29 May 2012 06:10:11 -0400") Message-ID: <44fwaj3zpw.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org 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 Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2012 13:04:52 -0000 "Thomas Mueller" writes: > How does one indicate a system source directory location when in other than /usr/src? I'm not sure I understand quite what you're asking, but I'll have a try anyway. > That could be necessary when in another directory, for instance running ndiscvt. For ports, I would would normally say that you want SRC_BASE. However, that's for building ports, not running them, so I may be missing the point. > 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. This is the normal case; you don't want to do anything special about the location of the build, only for the install. For the base system, you just want MAKEOBJDIRPREFIX (normally /usr/obj) to be on the hard drive. For ports, you want MAKEWRKDIRPREFIX to be on the hard drive if set, and the ports tree to be on the hard drive if not. > I couldn't find a variable named SRCDIR anywhere in the documentation, in contrast to PORTSDIR, which I did find. I don't remember there being one, but I also don't see a comparable use for one. > 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. MAKEOBJDIRPREFIX can do this, but in my case I would move the original /usr/obj tree out of the way to avoid damaging it by mistake. Good luck.