Subject: why doesn't build.sh work for me?
To: None <netbsd-users@netbsd.org>
From: Noah Meyerhans <frodo@morgul.net>
List: netbsd-users
Date: 08/17/2004 22:32:08
--BZaMRJmqxGScZ8Mx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello.  I've got a couple of NetBSD 1.6.x systems that I'm trying to
update via build.sh.  I've updated /usr/src via cvs (cvs update -dP).
/etc/mk.conf contains=20
BJMACHINE=3Dyes
MKOBJDIRS=3Dyes

and I'm running build.sh as
$ DESTDIR=3D/usr/obj nice -20 ./build.sh

/usr/obj is an empty directory at the start of this process.

The build fails after some time with the following output:
missing: ./var/spool/output (created)
missing: ./var/spool/postfix (created)
missing: ./var/spool/postfix/etc (created)
missing: ./var/spool/sockets (created)
missing: ./var/spool/uucp (created)
missing: ./var/spool/uucppublic (created)
missing: ./var/tmp (created)
missing: ./var/tmp/vi.recover (created)
missing: ./var/yp (created)
missing: ./var/yp/binding (created)
rm -f /usr/obj/sys
rm: /usr/obj/sys: is a directory
*** Error code 1

Stop.
nbmake: stopped in /usr/src/etc
*** Error code 1

Stop.
nbmake: stopped in /usr/src
*** Error code 1

Stop.
nbmake: stopped in /usr/src
=3D=3D=3D> Build started: Tue Aug 17 16:15:38 EDT 2004
=3D=3D=3D> Build ended:   Tue Aug 17 19:47:02 EDT 2004
=3D=3D=3D> DESTDIR path: /usr/obj
=3D=3D=3D> TOOLDIR path: /usr/src/tools/obj.sparc/tools.NetBSD-1.6.2_STABLE=
-sparc

Obviously I can track down the call to rm -f and replace it with rm -rf,
but this has happened before, is happening on two systems (x86 and
sparc32) and I can't help but feel that there's something I'm doing
wrong, as such an obvious failure would long ago have been found and
fixed.

So what is it that I'm doing wrong?  If I've missed some document,
please tell me where I can find it...

noah


--BZaMRJmqxGScZ8Mx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFBIr+oYrVLjBFATsMRAvfMAJ4zE996+BFVV0ZDdKpZLCX0Y0TEvQCcCcHF
bA2r/2uR4etK4sB4ZPYfWqE=
=FRX6
-----END PGP SIGNATURE-----

--BZaMRJmqxGScZ8Mx--