Ruslan Ermilov ru at freebsd.org
Wed Aug 11 04:20:31 PDT 2004

On Wed, Aug 11, 2004 at 12:58:50PM +0200, Barry Bouwsma wrote:
> > >                 ^^
> > Please see my other email in this thread that explains in detail
> > why it works, and why it should not be used.
> 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.
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.
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?
> > 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?
> 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.)
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.

Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040811/35bc992a/attachment.bin

More information about the freebsd-current mailing list