From owner-freebsd-questions@FreeBSD.ORG Tue May 29 10:10:19 2012 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 ADFDC106566B for ; Tue, 29 May 2012 10:10:19 +0000 (UTC) (envelope-from mueller23@insightbb.com) Received: from mail.insightbb.com (smtp3.insight.synacor.com [208.47.185.25]) by mx1.freebsd.org (Postfix) with ESMTP id 720508FC17 for ; Tue, 29 May 2012 10:10:19 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=1.1 cv=QxL/C1rywaJITqvrsg8FuNesn/yGun5w1h3fA8NMSFE= c=1 sm=0 a=hZyLnJ59HU4A:10 a=jLN7EqiLvroA:10 a=DDUjXJYLDbSefGxoYx4A:9 a=Q/oqmR4JO1zR3vNQamCQeQ==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp02.insight.synacor.com header.from=mueller23@insightbb.com; sender-id=softfail Authentication-Results: smtp02.insight.synacor.com smtp.mail=mueller23@insightbb.com; spf=softfail; sender-id=softfail Received-SPF: softfail (smtp02.insight.synacor.com: transitional domain insightbb.com does not designate 74.134.26.53 as permitted sender) Received: from [74.134.26.53] ([74.134.26.53:46950] helo=localhost) by mail.insightbb.com (envelope-from ) (ecelerity 2.2.2.40 r(29895/29896)) with ESMTP id 59/01-13930-380A4CF4; Tue, 29 May 2012 06:10:12 -0400 Date: Tue, 29 May 2012 06:10:11 -0400 Message-ID: <59.01.13930.380A4CF4@smtp02.insight.synacor.com> From: "Thomas Mueller" To: freebsd-questions@freebsd.org Subject: 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 10:10:19 -0000 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. Tom