Re: How to clean out old files after 'make world'?

2004-07-30 Thread Ruslan Ermilov
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_*=yes', 
 e.g. NO_KERBEROS=yes (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.  ;)


Cheers,
-- 
Ruslan Ermilov
[EMAIL PROTECTED]
FreeBSD committer


pgpuYagGAVB4Q.pgp
Description: PGP signature


Re: How to clean out old files after 'make world'?

2004-07-30 Thread Max Laier
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_*=yes',
  e.g. NO_KERBEROS=yes (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 info 
for the NO_* targets in make.conf? We could put that into the ports-tree 
somewhere and if you'd like to remove something completely you can install 
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 
variables (i.e. define a variable in Makefiles/targets that depend on NO_*) 
that'd help to generate filelists for the NO_* targets. If this is the case 
it should be possible to place pkg descriptions into /var/db/pkg during the 
installworld pass. This would also make it easy to get rid of things after a 
CDROM install.

What do you think?

-- 
/\  Best regards,  | [EMAIL PROTECTED]
\ /  Max Laier  | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | [EMAIL PROTECTED]
/ \  ASCII Ribbon Campaign  | Against HTML Mail and News


pgpOOPXMxoyYU.pgp
Description: signature


Re: How to clean out old files after 'make world'?

2004-07-30 Thread Colin Percival
At 02:17 30/07/2004, Max Laier wrote:
I am wondering, would it be possible to (automatically) create pkg-plist info 
for the NO_* targets in make.conf? We could put that into the ports-tree 
somewhere and if you'd like to remove something completely you can install 
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 
variables (i.e. define a variable in Makefiles/targets that depend on NO_*) 
that'd help to generate filelists for the NO_* targets. If this is the case 
it should be possible to place pkg descriptions into /var/db/pkg during the 
installworld pass. This would also make it easy to get rid of things after a 
CDROM install.

In March, I posted to freebsd-current (subject: Nuking parts of the world)
offering a patch which makes it possible to remove some subsystems:

http://docs.freebsd.org/cgi/mid.cgi?6.0.1.1.1.20040316023919.039fa5f0

Colin Percival


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to clean out old files after 'make world'?

2004-07-30 Thread João Carlos Mendes Luís
Max Laier wrote:
On Friday 30 July 2004 08:56, Ruslan Ermilov wrote:
On Tue, Jul 20, 2004 at 10:23:25PM +0300, Stas D.Myasnikov wrote:
While doing 'make world' I used make.conf with couple on 'NO_*=yes',
e.g. NO_KERBEROS=yes (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 info 
for the NO_* targets in make.conf? We could put that into the ports-tree 
somewhere and if you'd like to remove something completely you can install 
the dummy port  pkg-plist and use pkg_delete to clean up.
This resembles linux RPMs for system files.  And the idea is not 
bad.  Having system files registered just like ports would make it 
easier some operations, including binary upgrade.  I think the ports 
system needs some work before this would be feasible, though.

IIRC, Solaris also registers system files with the same mechanism 
used for applications.

It seems to me that it might be possible to add some kind of Makefile hint 
variables (i.e. define a variable in Makefiles/targets that depend on NO_*) 
that'd help to generate filelists for the NO_* targets. If this is the case 
it should be possible to place pkg descriptions into /var/db/pkg during the 
installworld pass. This would also make it easy to get rid of things after a 
CDROM install.

What do you think?
I think the problem deserves attention, and any implementation 
tests are welcome.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to clean out old files after 'make world'?

2004-07-20 Thread Garance A Drosihn
At 10:23 PM +0300 7/20/04, Stas D.Myasnikov wrote:
... 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?
You can:   make cleanworld
which does a fairly decent job of getting rid of all the old files
in your build area (e.g., in /usr/obj/usr/src).
However, I am not sure if you are asking for more than that.
--
Garance Alistair Drosehn=   [EMAIL PROTECTED]
Senior Systems Programmer   or  [EMAIL PROTECTED]
Rensselaer Polytechnic Instituteor  [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to clean out old files after 'make world'?

2004-07-20 Thread Freddie Cash
 At 10:23 PM +0300 7/20/04, Stas D.Myasnikov wrote:
... 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?

 You can:   make cleanworld
 which does a fairly decent job of getting rid of all the old files
 in your build area (e.g., in /usr/obj/usr/src).

That only cleans out the /usr/obj directory tree.  It doesn't remove
any files from anywhere else in the system.

 However, I am not sure if you are asking for more than that.

He wants to install FreeBSD, edit make.conf and uncomment a bunch of
NO_* variables to prevent them from being built/install during a world
build, and wants to have a way to remove the existing files from /bin,
/sbin, /usr/bin, etc.

Check the How-To forum at http://www.bsdforums.org/forums/  One of the
members there posted a set of scripts that will parse the NO_*
variables in make.conf, and remove any and all files associated with
those subsystems from an installed system.

The end result is the same as building a custom release and
reinstalling using that release to only get the bits you want, but
without all the hassle of building a custom release.  :)
-- 
Freddie Cash, CCNT CCLPHelpdesk / Network Support Tech.
School District 73 (250) 377-HELP [377-4357]
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to clean out old files after 'make world'?

2004-07-20 Thread Stas D . Myasnikov
Tue, 20 Jul 2004 12:56:45 -0700 (PDT), Freddie Cash 
[EMAIL PROTECTED] wrote:

The end result is the same as building a custom release and
reinstalling using that release to only get the bits you want, but
without all the hassle of building a custom release.  :)
Thanx!  It's exactly what I want!
 
--
!-
http://www.july21.info
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]