Subject: Re: make: Dir_FindFile still broken
To: Christos Zoulas <christos@zoulas.com>
From: Simon J. Gerraty <sjg@crufty.net>
List: tech-toolchain
Date: 11/25/2002 22:06:45
On Mon, 25 Nov 2002 07:38:20 -0500, Christos Zoulas writes:
>On Nov 24, 10:10pm, sjg@crufty.net ("Simon J. Gerraty") wrote:
>-- Subject: Re: make: Dir_FindFile still broken
>
>If you tried a make build with it, commit it...

So, tools/Makefile.host and tools/compat/Makefile both play
games with .CURDIR and compat/Makefile at least, won't like .PATH
being re-initialized.  

Which leads to a refinement which is even neater.  The only .PATH
component that we really want to touch when changing .CURDIR is 'cur'
so set that separately, and when .CURDIR is assigned to we now just:

    else if (strcmp(line, ".CURDIR") == 0) {
	/*
	 * Somone is being (too?) clever...
	 * Let's pretend they know what they are doing and
	 * re-initialize the 'cur' Path.
	 */
	Dir_InitCur(cp);
	Dir_SetPATH();
    }

Cross build of current-sparc proceeding happily...
Ok, current doesn't build presently (regardless of make version).
Cross build of 1.6-sparc with the same patch to make gets all the way
to the checkflist step then bombs.  Doh! because I have MKKERBEROS=no
in /etc/mk.conf - release builds really should set MAKECONF=/dev/null

Anyway, looks like make works nicely.  Will commit shortly.

Thanks
--sjg