From owner-freebsd-questions@FreeBSD.ORG Wed May 30 11:02:13 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 1F4C6106566B for ; Wed, 30 May 2012 11:02:13 +0000 (UTC) (envelope-from mueller23@insightbb.com) Received: from mail.insightbb.com (smtp.insight.synacor.com [208.47.185.22]) by mx1.freebsd.org (Postfix) with ESMTP id C534D8FC17 for ; Wed, 30 May 2012 11:02:12 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=1.1 cv=5VeZcGm1NFmRTV2v4hNEBEPe/xZnsRpUqqd3SqdO5Bg= c=1 sm=0 a=2CBf0nTliloA:10 a=jLN7EqiLvroA:10 a=-IkFJk6PAAAA:8 a=pGLkceISAAAA:8 a=JSvdehsqzyUgCvPEvkkA:9 a=MSl-tDqOz04A:10 a=Q/oqmR4JO1zR3vNQamCQeQ==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp01.insight.synacor.com header.from=mueller23@insightbb.com; sender-id=softfail Authentication-Results: smtp01.insight.synacor.com smtp.mail=mueller23@insightbb.com; spf=softfail; sender-id=softfail Received-SPF: softfail (smtp01.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:35048] helo=localhost) by mail.insightbb.com (envelope-from ) (ecelerity 2.2.2.40 r(29895/29896)) with ESMTP id 45/0C-29097-33EF5CF4; Wed, 30 May 2012 07:02:11 -0400 Date: Wed, 30 May 2012 07:02:11 -0400 Message-ID: <45.0C.29097.33EF5CF4@smtp01.insight.synacor.com> From: "Thomas Mueller" To: freebsd-questions@freebsd.org Cc: Michael Ross , Lowell Gilbert , uki 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: Wed, 30 May 2012 11:02:13 -0000 >From Lowell Gilbert : > 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. That may be what I need. I would be building ports. For running ports, source code wouldn't come into play. I couldn't find this, but just found it in /BETA1/usr/ports/Mk/bsd.port.mk I installed FreeBSD 9.0-BETA1 to this partition, mounted now as /BETA1, but might want to upgrade this to 10-CURRENT. I noticed a BSDSRCDIR in NetBSD pkgsrc, ported to other mostly (quasi)-Unix OSes as well as NetBSD. >> 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. I might put 10-CURRENT source tree in /BETA1/usr/src, forever overwriting 9.0-BETA1 source tree, then could set MAKEOBJDIRPREFIX to /BETA1/usr/obj, or is that not necessary? >From "Michael Ross" : > 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 I hadn't thought of that, but now I need to check this out on "mount" man page. >From uki : > Don't know if that will help in Your case, but I just softlink my > /usr/local/src-stable to /usr/src - never had any issues. > Cheers, > ??ukasz Gruner I thought of that (symbolic link: ln -s) as something to fall back on if I don't find something more elegant. There might have been some characters in your name that xterm couldn't understand; I need something better (mlterm?) Tom