From owner-freebsd-stable Mon Mar 25 12: 4:47 2002 Delivered-To: freebsd-stable@freebsd.org Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NetScum.dyndns.dk (dclient217-162-214-218.hispeed.ch [217.162.214.218]) by hub.freebsd.org (Postfix) with ESMTP id 0596437B405; Mon, 25 Mar 2002 12:04:42 -0800 (PST) Received: from beerswilling.netscum.dyndns.dk (dcf77-zeit.netscum.dyndns.dk [172.27.72.27] (may be forged)) by dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NetScum.dyndns.dk (8.11.6/8.11.6) with ESMTP id g2PK4XE01220 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified FAIL); Mon, 25 Mar 2002 21:04:39 +0100 (CET) (envelope-from bounce@netscum.dyndns.dk) Received: (from root@localhost) by beerswilling.netscum.dyndns.dk (8.11.6/8.11.6) id g2PK4WG01219; Mon, 25 Mar 2002 21:04:32 +0100 (CET) (envelope-from bounce@netscum.dyndns.dk) Date: Mon, 25 Mar 2002 21:04:32 +0100 (CET) Message-Id: <200203252004.g2PK4WG01219@beerswilling.netscum.dyndns.dk> From: BOUWSMA Beery Organization: Men not wearing any pants that dont shave To: Ruslan Ermilov Cc: freebsd-stable@FreeBSD.ORG Subject: Re: buildworld with ro /usr/src broken 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> X-Hacked: via telnet to your port 25, what else? X-NetScum: Yes X-One-And-Only-Real-True-Fluffy: No Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > > > > 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