From owner-freebsd-arch@FreeBSD.ORG Sun Feb 13 23:51:23 2005 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A69116A4CE for ; Sun, 13 Feb 2005 23:51:23 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFE5F43D41 for ; Sun, 13 Feb 2005 23:51:21 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1DNpKCN042658 for ; Mon, 14 Feb 2005 01:51:20 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 08127-07 for ; Mon, 14 Feb 2005 01:51:19 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1DNpInv042655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 14 Feb 2005 01:51:19 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j1DNpM8Y016402 for freebsd-arch@freebsd.org; Mon, 14 Feb 2005 01:51:22 +0200 (EET) (envelope-from ru) Date: Mon, 14 Feb 2005 01:51:22 +0200 From: Ruslan Ermilov To: freebsd-arch@freebsd.org Message-ID: <20050213235122.GB15825@ip.net.ua> References: <20050213001752.GA40468@funkthat.com> <21203.1108255197@critter.freebsd.dk> <20050213093700.GF88292@ip.net.ua> <20050213231105.GC40468@funkthat.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8P1HSweYDcXXzwPJ" Content-Disposition: inline In-Reply-To: <20050213231105.GC40468@funkthat.com> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua Subject: Re: buildenv target X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2005 23:51:23 -0000 --8P1HSweYDcXXzwPJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Feb 13, 2005 at 03:11:05PM -0800, John-Mark Gurney wrote: > Ruslan Ermilov wrote this message on Sun, Feb 13, 2005 at 11:37 +0200: > > Hi John-Mark, > >=20 > > On Sun, Feb 13, 2005 at 01:39:57AM +0100, Poul-Henning Kamp wrote: > > > Sounds like a good addition. > > > > I missed the original post, so replying here. I very much like > > and support the idea. About the implementation, for the standard > > case of root doing this, the standard ~root/.cshrc unfortunately > > resets PATH, making this useless pretty useless. So I suggest > > to use "sh" here. Another minor buglet is that the output for > > pc98 will be mangled, "pc98:i386". Here's my version, simplified > > and fixed: > >=20 > > %%% > > Index: Makefile.inc1 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > RCS file: /home/ncvs/src/Makefile.inc1,v > > retrieving revision 1.473 > > diff -u -p -r1.473 Makefile.inc1 > > --- Makefile.inc1 20 Jan 2005 10:49:02 -0000 1.473 > > +++ Makefile.inc1 13 Feb 2005 01:20:00 -0000 > > @@ -457,6 +457,10 @@ WMAKE_TGTS+=3D build32 > > buildworld: ${WMAKE_TGTS} > > .ORDER: ${WMAKE_TGTS} > > =20 > > +buildenv: > > + @echo Entering world for ${TARGET_ARCH}:${TARGET} > > + @${WMAKEENV} sh || true > > + > > TOOLCHAIN_TGTS=3D ${WMAKE_TGTS:N_depend:Neverything} > > toolchain: ${TOOLCHAIN_TGTS} > > kernel-toolchain: ${TOOLCHAIN_TGTS:N_includes:N_libraries} >=20 > Hmmm.. wierd, I thought I tried this, but I kept getting i386, but > I just tried it here, and works fine... >=20 This is probably because you tried MACHINE_ARCH/MACHINE. > Unless you object, I'll use > /bin/sh and /usr/bin/true, just incase the path is a bit messed up.. >=20 No need to; src/Makefile already takes care of always setting up the correct PATH, try it with "make -n buildenv". Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --8P1HSweYDcXXzwPJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCD+f6qRfpzJluFF4RAjEBAJ4ia8+GtQY79TLnK5Vzarzw3T5AawCfSJmR v95bYcc+dady42l6WncrO4o= =faVT -----END PGP SIGNATURE----- --8P1HSweYDcXXzwPJ--