Subject: Re: bin/32573: [dM] build.sh fails gratuitously
To: None <apb@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 01/20/2006 09:40:03
The following reply was made to PR bin/32573; it has been noted by GNATS.

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/32573: [dM] build.sh fails gratuitously
Date: Fri, 20 Jan 2006 10:35:19 +0100

 FWIW, I agree with der Mouse that the current behaviour is not as good as
 we can do, and since Allen already offered to handle this, I'd like to
 suggest something along this line of thought:
 
  - if a kernel build operation is requested, there are no (obvious)
    tools present (no -T option present and "make -VTOOLDIR" failing)
    and we are not actually cross-compiling, just do a native kernel
    build (with USE_TOOLS=never). This, of course, may fail if the
    build system tools are out of date vs. the source tree, so some
    warning message should be displayed (pointing at the "build.sh tools"
    command to "fix" the issue)
 
  - if we default to some MAKEOBJDIR/MAKEOBJDIRPREFIX and the defaulted-to
    directory does not exist, fail with a proper error message
 
 If we don't not have consensus on the first part, at least make that case
 fail with an easy to understand explanation.
 
 Martin