Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2003 22:05:49 -0700
From:      "David O'Brien" <obrien@freebsd.org>
To:        Alexander Leidinger <Alexander@Leidinger.net>
Cc:        current@freebsd.org
Subject:   Re: automated clean up of /usr/lib because of /lib
Message-ID:  <20030901050549.GA91933@dragon.nuxi.com>
In-Reply-To: <20030831203149.10589d5c.Alexander@Leidinger.net>
References:  <20030831203149.10589d5c.Alexander@Leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030901050549.GA91933>