Subject: Re: is etcupdate busted?
To: Vesa A Norrman <vnorrman@cc.hut.fi>
From: Luke Mewburn <lukem@netbsd.org>
List: current-users
Date: 01/07/2003 01:49:05
On Mon, Jan 06, 2003 at 02:13:41AM +0200, Vesa A Norrman wrote:
  | On Mon, 6 Jan 2003, Luke Mewburn wrote:
  | 
  | > On Mon, Jan 06, 2003 at 01:31:52AM +0200, Vesa A Norrman wrote:
  | >   | On Mon, 6 Jan 2003, Luke Mewburn wrote:
  | >   |
  | >   | > What is the exact error message that you're seeing?
  | >   |
  | >   | # ./build.sh -m hpcsh -d -D /d -R /r
  | >   | [...]
  | >   | /usr/src/tools/obj/tools.NetBSD-1.6-i386/bin/nbmake install-etc-files
  | >   | nbmake: don't know how to make install-etc-files. Stop
  | >
  | > What's the few lines before that; it's hard to work out in which
  | > directory you've having the problem...
  | >
  | (sorry)
  | 
  | install ===> sys/ufs/mfs
  | install ===> sys/ufs/ufs
  | install ===> sys/ufs/ext2fs
  | install ===> sys/uvm
  | (cd /usr/src/share/man &&
  | /usr/src/tools/obj/tools.NetBSD-1.6-i386/bin/nbmake ma
  | kedb)
  | /usr/src/tools/obj/tools.NetBSD-1.6-i386/bin/nbmakewhatis /d/usr/share/man
  | Build started at:  Mon Jan  6 00:13:29 EET 2003
  | Build finished at: Mon Jan  6 03:06:10 EET 2003
  | (cd /usr/src/etc && /usr/src/tools/obj/tools.NetBSD-1.6-i386/bin/nbmake
  | INSTALL_
  | DONE=1 release)
  | STRIP=/usr/src/tools/obj/tools.NetBSD-1.6-i386/bin/shle--netbsdelf-strip
  | /usr/sr
  | c/tools/obj/tools.NetBSD-1.6-i386/bin/nbinstall  -N /usr/src/etc -d -o
  | root -g w
  | heel -m 755 -T base_pkg /d
  | /usr/src/tools/obj/tools.NetBSD-1.6-i386/bin/nbmtree -def
  | /usr/src/etc/mtree/Net
  | BSD.dist -N /usr/src/etc  -p /d/ -U
  | /usr/src/tools/obj/tools.NetBSD-1.6-i386/bin/nbmake install-etc-files
  | nbmake: don't know how to make install-etc-files. Stop

Ooops.. I found my mistake.

Try rev 1.243 of etc/Makefile.

The change was:

===================================================================
RCS file: /cvsroot/src/etc/Makefile,v
retrieving revision 1.242
retrieving revision 1.243
diff -p -u -r1.242 -r1.243
--- Makefile    2003/01/04 15:49:29     1.242
+++ Makefile    2003/01/06 14:47:28     1.243
@@ -145,7 +145,7 @@ distribution: check_DESTDIR .WAIT distri
        (cd ${NETBSDSRCDIR}; ${MAKE} _DISTRIB= includes)
        (cd ${NETBSDSRCDIR}; ${MAKE} _DISTRIB= install)
 .endif # !INSTALL_DONE
-       ${MAKE} install-etc-files
+       (cd ${.CURDIR}; ${MAKE} install-etc-files)
 .endif # !DISTRIBUTION_DONE