Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jul 2004 11:17:25 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-hackers@freebsd.org
Cc:        Warner Losh <imp@freebsd.org>
Subject:   Re: How to clean out old files after 'make world'?
Message-ID:  <200407301117.32470.max@love2party.net>
In-Reply-To: <20040730065638.GE36338@ip.net.ua>
References:  <web-108250817@tut.by> <20040730065638.GE36338@ip.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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