From owner-freebsd-current@FreeBSD.ORG Wed Aug 11 11:20:31 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F138A16A4CE for ; Wed, 11 Aug 2004 11:20:30 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B7E143D1F for ; Wed, 11 Aug 2004 11:20:30 +0000 (GMT) (envelope-from ru@ip.net.ua) 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 i7BBI118081123 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Aug 2004 14:18:02 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i7BBI3oX088503; Wed, 11 Aug 2004 14:18:03 +0300 (EEST) (envelope-from ru) Date: Wed, 11 Aug 2004 14:18:03 +0300 From: Ruslan Ermilov To: Barry Bouwsma Message-ID: <20040811111803.GJ84908@ip.net.ua> References: <20040810231044.GA70020@xor.obsecurity.org> <20040811061202.GA80234@ip.net.ua> <20040811065912.GA95263@xor.obsecurity.org> <20040811080350.GK80234@ip.net.ua> <200408110916.i7B9GTj43770@Mail.NOSPAM.DynDNS.dK> <20040811101100.GB84908@ip.net.ua> <200408111058.i7BAwn244128@Mail.NOSPAM.DynDNS.dK> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="j+MD90OnwjQyWNYt" Content-Disposition: inline In-Reply-To: <200408111058.i7BAwn244128@Mail.NOSPAM.DynDNS.dK> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new cc: current@freebsd.org Subject: Re: DISTDIR X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2004 11:20:31 -0000 --j+MD90OnwjQyWNYt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 11, 2004 at 12:58:50PM +0200, Barry Bouwsma wrote: > > > MAKEOBJDIRPREFIX?=3D foo... > > > ^^ > > Please see my other email in this thread that explains in detail > > why it works, and why it should not be used. >=20 > Understood. Methinks that MAKEOBJDIRPREFIX is getting to > be a bit overloaded, as something that can be set by the > user, as well as something that gets set during the build. >=20 During the build, buildworld respects the user's setting by only *adding* to what the user has specified as MAKEOBJDIRPREFIX, so there's no problem here. > Anyway, I agree that it would be nice if there would be > something that can be set in a make.conf which determines > where the build happens, rather than it be dependent on > an environment variable only. >=20 MAKEOBJDIRPREFIX is not limited to buildworld only, it's a feature of make(1). OTOH, if you want some knob for /etc/make.conf to control what MAKEOBJDIRPREFIX will be set to during buildworld and related targets, this should be possible easily, though I personally don't see much point in yet another variable. > > > Which brings up something else -- has there been any > > > resolution of the conflict between `DISTDIR' as used by > > > ports, and `DISTDIR' as used by the `distribute' targets? >=20 > > DISTDIR is only used by "make distribute", and the latter > > is only used by "make release". "make release" doesn't > > use /etc/make.conf. Where's the conflict? >=20 > Ah, that I had been using `make distribute' or similar in > order to populate DESTDIR/etc after a `make installworld', > which is probably not what I should have been doing. (After > a crossbuild, I wanted to fill DESTDIR with everything, > including etc, as if installing a virgin installation. > There's probably a Right Way to do this that I don't know.) >=20 The correct spelling would be "make distrib-dirs && make distribution" while in /usr/src/etc, but it does not use DISTDIR either. "make distibute" while in /usr/src/etc uses DISTDIR, but it should not be called by the end user, it's called as part of "make release" to install the system into various release distributions. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --j+MD90OnwjQyWNYt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBGgBqqRfpzJluFF4RAuXCAKCH1n+6uERq5Q7PKD3sW+8GTn2d0ACglG0k qFdppQiYIZGGVXHd/jY4P1o= =4ghl -----END PGP SIGNATURE----- --j+MD90OnwjQyWNYt--