Date: Wed, 11 Aug 2004 14:18:03 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: Barry Bouwsma <freebsd-misuser@dyndns.dk> Cc: current@freebsd.org Subject: Re: DISTDIR Message-ID: <20040811111803.GJ84908@ip.net.ua> In-Reply-To: <200408111058.i7BAwn244128@Mail.NOSPAM.DynDNS.dK> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040811111803.GJ84908>