From owner-freebsd-stable Wed Feb 27 3:22:53 2002 Delivered-To: freebsd-stable@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 920BF37B420 for ; Wed, 27 Feb 2002 03:22:29 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g1RBJE533179; Wed, 27 Feb 2002 13:19:14 +0200 (EET) (envelope-from ru) Date: Wed, 27 Feb 2002 13:19:14 +0200 From: Ruslan Ermilov To: BOUWSMA Beery Cc: Vallo Kallaste , freebsd-stable@FreeBSD.ORG Subject: Re: buildworld with ro /usr/src broken Message-ID: <20020227111914.GB30220@sunbay.com> References: <20020209130437.GA15287@myhakas.estpak.ee> <200202091743.g19HhIm00362@beerswilling.netscum.dyndns.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200202091743.g19HhIm00362@beerswilling.netscum.dyndns.dk> User-Agent: Mutt/1.3.27i 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 On Sat, Feb 09, 2002 at 06:43:18PM +0100, BOUWSMA Beery wrote: > > Serwoas! > %s wrote on %.3s, %lld Sep 1993 > > > Buildworld with ro NFS mounted /usr/src is broken. I have > > MAKEOBJDIRPREFIX set to nonstandard location. > > Look back in the freebsd-hackers list a few days or so. I gave a > pretty lengthy explanation of what you need to do to get it to work. > (Also in freebsd-bugs, maybe a month ago) > > In short, either use `env MAKEOBJDIRPREFIX ... ' or if you set it in > /etc/make.conf, dont use `=' but instead use `?=' > > > Here's what is happening: > > > cd /usr/src; MAKEOBJDIRPREFIX=/cache/b/obj/usr/src/i386 > ^^^^^^^^^^^^^^^^^^^^^^^^^ > this is generated from the value you provide > > > /cache/b/obj/usr/src/usr.bin/yacc created for /usr/src/usr.bin/yacc > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > this too was generated from the value you gave, instead of being formed > based on the prefix above, and it's missing the `i386' in the path > > > mkdep -f .depend -a closure.c error.c lalr.c lr0.c main.c mkpar.c > > /usr/bin/mkdep: cannot create _mkdep3993: read-only file system > > the mkdep command can't find the object directory it's looking for, since > what was created by `make obj' wasn't where it's looking, so it tries to > work in the current source (read-only) directory > MAKEOBJDIR[PREFIX] only work right if set as environment variables. This is documented in make(1) manpage and in /usr/share/mk/bsd.obj.mk. I have an uncommitted patch that makes it possible to set them on make(1)'s command line but still no joy in attempting to set them in /etc/make.conf. I bear in mind adding a patch to Makefile.inc1 too that would prevent people from attempting to set MAKEOBJDIRPREFIX in /etc/make.conf. Cheers, -- Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message