Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2002 21:04:32 +0100 (CET)
From:      BOUWSMA Beery <freebsd-user@netscum.dyndns.dk>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: buildworld with ro /usr/src broken
Message-ID:  <200203252004.g2PK4WG01219@beerswilling.netscum.dyndns.dk>
References:  <20020209130437.GA15287@myhakas.estpak.ee> <200202091743.g19HhIm00362@beerswilling.netscum.dyndns.dk> <20020227111914.GB30220@sunbay.com> <20020227155244.A24137@newtrinity.default-network.net> <20020227204012.GA99496@sunbay.com> <200203102012.g2AKCbZ00762@beerswilling.netscum.dyndns.dk> <20020311111138.GA4678@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help

> > > > > MAKEOBJDIR[PREFIX] only work right if set as environment variables.

> > Hmmm, so why then am I now buildworld'ing -current (and have been for
> > the past almost five hours) with a read-only /usr/src
> > using only the commandline `time nice make buildworld' with the
> > object tree being put in
> > bash-2.05a$ ls -lart /usr/obj/5.0-CURRENT/usr/src/

> > MAKEOBJDIRPREFIX?=      /usr/obj/${RELNAME}
> > You're right, though, that not all targets will work with this.
> > Here's what I get with the `all' target:
> > FATAL: can't create cat.o: Read-only file system

> > However, as part of a `buildworld' or `buildkernel' or `installworld'
> > run, I do get things put in the proper place, rather than building

> You don't see this behavior with `buildworld' etc. targets because
> Makefile.inc1 sets it for you in environment, and executes another
> copy of make(1) with this environment to actually build the target.

Yes.  That is why I was hoping that by explicitly specifying the
Makefile.inc1 as part of the `make' command, I could make other
targets like `all' pick up the /etc/make.conf-conditionally-set
value, and Do The Right Thing.

But I couldn't find the right incantation in quick testing...

Anyway, with as many people as I see having problems with using
the unofficial unsupported-but-seems-like-it-works ``?='' version
that I've suggested to try in make.conf, I'll make a deal -- I'll
stop suggesting it, if you don't deliberately make it impossible
to use ;-)  (I mean the `?=' conditional assignment in make.conf,
not the `=' absolute assignment that we all agree doesn't work,
is b0rken, should not be used, needs to be stamped from the face
of the earth, is the root of all evil, and so on)

Hmmm, no way to get targets other than `buildworld' and its ilk
to use Makefile.inc1 this way, is there?  I've had to use the
`env MAKEOBJDIR=/foo...' all the times I rebuild a single module
or one binary recently, so it's no big deal for me now -- so long
as I remember.


So, no more suggestions from me to try it with make.conf.  It
seems to lead people astray to do Bad Things.


thanks,
barry bouwsma


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203252004.g2PK4WG01219>