automated clean up of /usr/lib because of /lib
David O'Brien
obrien at freebsd.org
Sun Aug 31 22:05:59 PDT 2003
On Sun, Aug 31, 2003 at 08:31:49PM +0200, Alexander Leidinger wrote:
> shouldn't we add something like
> ---snip---
> for i in /lib/lib*.so.*; do
> lib=$(basename $i)
> [ -f /usr/lib/$lib ] && chflags noschg /usr/lib/$lib && rm /usr/lib/$lib
> done
> ---snip---
> into UPDATING or append it to the end of installworld?
I think a better way is to add a new target to src/Makefile.inc1, say
"installcleanworld". It would do this:
mv /usr/include /usr/include.OLD
mkdir /usr/lib.OLD
mv /usr/lib/*.* /usr/lib.OLD
ldconfig -m /usr/lib.OLD
make installworld
rm -rf /usr/lib.OLD /usr/include.OLD
I may even make a patch for this myself.
More information about the freebsd-current
mailing list