Subject: Re: misc/5497: top-level build target vs. DESTDIR is broken
To: Todd Vierling <tv@NetBSD.ORG>
From: Space Case <wormey@eskimo.com>
List: netbsd-bugs
Date: 05/26/1998 22:27:58
On May 26,  8:17pm, Todd Vierling wrote:
>On Tue, 26 May 1998, Scott Reynolds wrote:
>: 	Watch it die while trying to build compile_et.
>How does it die, might I ask?

Includes not found.  Yeah, I've seen it, too.

>: 	Clearly, trying to build executables before installing include
>: 	files is a broken concept, and must not be attempted, _even_if_
>: 	that executable is required to generate the include files.
>
>And so, we install includes for the libc which you haven't yet built, and
>so, compile_et won't link.  That certainly isn't a solution.
>
>compile_et HAS to be built before "make includes" - the "make depend" will
>rebuild it after the fact.  If it's compiler warnings that cause the
>breakage, the "cd domestic/usr.bin/compile_et && make" should include the
>make option COPTS=-w to disable warnings.

What we have is a chicken-and-egg problem.  To build compile_et, it needs
includes; if DESTDIR is set to an empty tree, the includes haven't been
installed yet.

I got around it by first building an exportable system, then the nonexport
system.  Which I needed to do anyways.  But you can't go directly into the
nonexport system.

~Steve

-- 
Steve Allen - wormey@eskimo.com   http://www.eskimo.com/~wormey/   ICQ 6709819

Faith is the quality that enables you to eat blackberry jam on a picnic
without looking to see whether the seeds move.

Contrary to popular belief, Unix is user friendly.  
It just happens to be selective about who it makes friends with.
	-Kyle Hearn  <kyle@intex.net>

Reality is a cop-out for people who can't handle drugs.