Subject: Re: make distribution fails with -j 4 parameter
To: None <current-users@NetBSD.ORG>
From: Christos Zoulas <christos@nyc.deshaw.com>
List: current-users
Date: 01/15/1997 21:29:06
In article <199701151911.UAA03776@wipux2.wifo.uni-mannheim.de> andrew@wipux2.wifo.uni-mannheim.de (Andrew Wheadon) writes:
>When running make distribution from /usr/src/etc
>it fails 
>make -m $DESTDIR/usr/share/mk -j 4 distribution
>
>...
>install -c -o daemon -g staff -m 664 /dev/null  /mit/destdir/var/msgs/bounds
>install -c -o root -g wheel -m 664 /dev/null  /mit/destdir/var/run/utmp
>(cd etc.i386; install -c -o root -g wheel -m 444  fstab.* /mit/destdir/etc)
>cd: can't cd to etc.i386
>*** Error code 2
>but when called up with out the -j 4 parameter it works:
>make -m $DESTDIR/usr/share/mk distribution
>
>...
>install -c -o daemon -g staff -m 664 /dev/null  /mit/destdir/var/msgs/bounds
>install -c -o root -g wheel -m 664 /dev/null  /mit/destdir/var/run/utmp
>(cd etc.i386; install -c -o root -g wheel -m 444  fstab.* /mit/destdir/etc)
>(cd /mit/destdir/dev; ./MAKEDEV all)
>...
>
>Anybody know why ?

I think that the cd namedb; ... clause needs to be in parentheses like the
other cd's. Make -j 4 removes backwards compatibility mode and can run
more than one shell line per shell invocation; I think that make -B -j 4 
will work from TFM:


     -B      Try to be backwards compatible by executing a single shell per
	     command and by executing the commands to make the sources of a
	     dependency line in sequence.


christos