From owner-freebsd-current@FreeBSD.ORG Sun Aug 31 22:05:59 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B37516A4BF for ; Sun, 31 Aug 2003 22:05:59 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4523143FF2 for ; Sun, 31 Aug 2003 22:05:58 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.9/8.12.9) with ESMTP id h8155pQX092153; Sun, 31 Aug 2003 22:05:52 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.9/8.12.9/Submit) id h8155oj4092152; Sun, 31 Aug 2003 22:05:50 -0700 (PDT) Date: Sun, 31 Aug 2003 22:05:49 -0700 From: "David O'Brien" To: Alexander Leidinger Message-ID: <20030901050549.GA91933@dragon.nuxi.com> Mail-Followup-To: David O'Brien , Alexander Leidinger , current@freebsd.org References: <20030831203149.10589d5c.Alexander@Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030831203149.10589d5c.Alexander@Leidinger.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.1-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: current@freebsd.org Subject: Re: automated clean up of /usr/lib because of /lib X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 05:05:59 -0000 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.