Subject: Re: -current. . . Did I screw up?
To: None <netbsd@dew-drop.com>
From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
List: current-users
Date: 08/07/1999 20:56:14
> I did a make build last night.  When I got up this morning
> The system was sitting at at an error. . .  the lines before
> were something to the effect of rm -f /usr/lib/libc.so.12
> ln -s ....  something. . .  then an error about ln not finding
> libc.so.12.. . . Duh! It got deleted!  Did I do something wrong?
> I did compile the gnu fileutil package to get ls to have color.
> is there a way to man cp, rm, mv, ln, ls, etc. . . be self contained
> to prevent this in the future?  

NetBSD's built-in equivalents are statically linked; you can use 

cc -static  ...

to get the same effect on things you build.  I'm not familiar with the
GNU fileutils build system, but it should be fairly straightforward to
make that work.

I think the real bug here is in the install process for the ELF
library symlinks..  it should be doing:

	ln -s libc.so.12.43 libc.so.12.NEW
	mv libc.so.12.NEW libc.so.12

so that there's no window of time when the symlink doesn't exist..

					- Bill