From owner-freebsd-stable@FreeBSD.ORG Fri Jan 23 11:32:53 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBD0C16A4CE for ; Fri, 23 Jan 2004 11:32:53 -0800 (PST) Received: from phantom.cris.net (phantom.cris.net [212.110.130.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FF8343D6A for ; Fri, 23 Jan 2004 11:31:39 -0800 (PST) (envelope-from ru@FreeBSD.org.ua) Received: from phantom.cris.net (ru@localhost [127.0.0.1]) by phantom.cris.net (8.12.10/8.12.10) with ESMTP id i0NJVYem041395; Fri, 23 Jan 2004 21:31:36 +0200 (EET) (envelope-from ru@FreeBSD.org.ua) Received: (from ru@localhost) by phantom.cris.net (8.12.10/8.12.10/Submit) id i0NJVRXw041394; Fri, 23 Jan 2004 21:31:27 +0200 (EET) (envelope-from ru) Date: Fri, 23 Jan 2004 21:31:23 +0200 From: Ruslan Ermilov To: Maxim Konovalov Message-ID: <20040123193123.GB41158@FreeBSD.org.ua> References: <01aa01c3e1e2$e3209e10$1a86c2d9@ashway> <20040123220108.I56792@news1.macomnet.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O5XBE6gyVG5Rl6Rj" Content-Disposition: inline In-Reply-To: <20040123220108.I56792@news1.macomnet.ru> User-Agent: Mutt/1.5.5.1i cc: Andrey Sharandakov cc: freebsd-stable@freebsd.org Subject: Re: buildworld and installworld X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jan 2004 19:32:54 -0000 --O5XBE6gyVG5Rl6Rj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 23, 2004 at 10:03:57PM +0300, Maxim Konovalov wrote: > freebsd-questions@ material. >=20 > On Fri, 23 Jan 2004, 20:58+0200, Andrey Sharandakov wrote: >=20 > > Hi! > > > > 1. How can I change default dir. for buildworld output? > > (/ust/obj to /some_dir/obj) >=20 > make MAKEOBJDIRPREFIX=3D/some_dir/obj >=20 WRONG! While I've made the above work in -CURRENT, this still doesn't work in RELENG_4 and shouldn't be relied upon. From : # MAKEOBJDIRPREFIX Specifies somewhere other than /usr/obj to root the obj= ect # tree. Note: MAKEOBJDIRPREFIX is an *environment* variable # and works properly only if set as an environment variable, # not as a global or command line variable! # # E.g. use `env MAKEOBJDIRPREFIX=3D/somewhere/obj make' Compare: $ pwd /tmp/foo/src $ MAKEOBJDIRPREFIX=3D/tmp/foo/obj make -f bsd.obj.mk -V .OBJDIR /tmp/foo/obj/tmp/foo/src $ make MAKEOBJDIRPREFIX=3D/tmp/foo/obj -f bsd.obj.mk -V .OBJDIR /tmp/foo/src Passing MAKEOBJDIRPREFIX as a command line variable with ``buildworld'' only works because make(1) enters all command line variables in environment before starting any subprocesses. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --O5XBE6gyVG5Rl6Rj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAEXaLUkv4P6juNwoRAhfVAJ9zgprfK7a6Mw/XFTp1XTQLk6P1NwCfVbyO +K8oQ10NM8d7YSS7NG7xbhI= =CYcG -----END PGP SIGNATURE----- --O5XBE6gyVG5Rl6Rj--