Re: automated clean up of /usr/lib because of /lib

From: David O'Brien <obrien_at_freebsd.org>
Date: Sun, 31 Aug 2003 22:05:49 -0700
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.
Received on Sun Aug 31 2003 - 20:05:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:20 UTC