Subject: Re: make -j and failure modes
To: Christos Zoulas <christos@zoulas.com>
From: James Chacon <jmc@NetBSD.org>
List: tech-toolchain
Date: 12/09/2003 22:18:27
On Tue, Dec 09, 2003 at 10:59:03PM -0500, Christos Zoulas wrote:
> On Dec 9,  7:52pm, jmc@NetBSD.org (James Chacon) wrote:
> -- Subject: Re: make -j and failure modes
> 
> | On Wed, Dec 10, 2003 at 12:48:28AM +0000, Christos Zoulas wrote:
> | > In article <20031209213358.GA29967@netbsd.org>,
> | > James Chacon <jmc@netbsd.org> wrote:
> | 
> | > >1. Have make scan the command for parens and if it finds them, exec via
> | > >   the compat methods.
> | > >2. Fix sh to deal with group'd commands and -e. Then provide nbsh as a host
> | > >   tool and tell make to use it.
> | > >3. Go through all the Makefile's and change (... && ...) into .... && ...
> | > >
> | > >(I'm leaning towards #2 but I need opinions/knowledge on whether sh is
> | > >doing the right thing or not.)
> | > >
> | > 
> | > 4. fix make so that it outputs:
> | > 	cmd1 && cmd2
> | >    instead of cmd1\ncmd2\n
> | 
> | I don't follow..What would this fix? The problem is the sh not exiting on
> | error in all cases with -e.
> 
> The shell would not execute cmd2 and exit with error code 1.

Ahh..I get you now. The shell script it feeds into sh -ev.

Hmm...

I'll experiment some with make on this tonight/tommorrow. (though sh still
needs addressing).

James