From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 30 09:19:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E078416A4CE; Fri, 30 Jul 2004 09:19:39 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2186543D5F; Fri, 30 Jul 2004 09:19:37 +0000 (GMT) (envelope-from max@love2party.net) Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BqTY5-0004KO-00; Fri, 30 Jul 2004 11:19:33 +0200 Received: from [84.128.140.215] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1BqTY5-0006hQ-00; Fri, 30 Jul 2004 11:19:33 +0200 From: Max Laier To: freebsd-hackers@freebsd.org Date: Fri, 30 Jul 2004 11:17:25 +0200 User-Agent: KMail/1.6.2 References: <20040730065638.GE36338@ip.net.ua> In-Reply-To: <20040730065638.GE36338@ip.net.ua> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_sIhCBMM+XbebzM0"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200407301117.32470.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:61c499deaeeba3ba5be80f48ecc83056 cc: Warner Losh Subject: Re: How to clean out old files after 'make world'? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2004 09:19:40 -0000 --Boundary-02=_sIhCBMM+XbebzM0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 30 July 2004 08:56, Ruslan Ermilov wrote: > On Tue, Jul 20, 2004 at 10:23:25PM +0300, Stas D.Myasnikov wrote: > > Hello! > > > > While doing 'make world' I used make.conf with couple on 'NO_*=3Dyes', > > e.g. NO_KERBEROS=3Dyes (I don't need Kerberos on my home computer). But > > after rebuilding world and install I saw the old binaries, configs, > > etc. of Kerberos and other parts of base that I didn't build. I had > > thought that install script removes all unneeded files, but it don't. > > How can I clean out this old binaries, configs, etc?.. Is there any > > automatic way to do this? > > I routinely use find(1) and some secret knowledge about files that > do not change their timestamps between installworlds to clean up > stale files. Fortunately there are not too much files that install > with -C, less in 5.x than in 4.x. > > Also, Warner Losh worked on a project that would allow to remove > files obsoleted between releases. I don't know what the current > status of this project is, or if it's still alive. ;) I am wondering, would it be possible to (automatically) create pkg-plist in= fo=20 for the NO_* targets in make.conf? We could put that into the ports-tree=20 somewhere and if you'd like to remove something completely you can install= =20 the dummy port & pkg-plist and use pkg_delete to clean up. It seems to me that it might be possible to add some kind of Makefile hint= =20 variables (i.e. define a variable in Makefiles/targets that depend on NO_*)= =20 that'd help to generate filelists for the NO_* targets. If this is the case= =20 it should be possible to place pkg descriptions into /var/db/pkg during the= =20 installworld pass. This would also make it easy to get rid of things after = a=20 CDROM install. What do you think? =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --Boundary-02=_sIhCBMM+XbebzM0 Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBBChIsXyyEoT62BG0RAsyVAJ4ozAua4wfkV58ph3bpyQug4DzmqACfbVki fFoX+tLzjW2vyOHpGCxjMYw= =C7QE -----END PGP SIGNATURE----- --Boundary-02=_sIhCBMM+XbebzM0--