Re: Cleaning house on /usr/src/*

1999-12-09 Thread Marcel Moolenaar

John Polstra wrote:
 
 When you change the tag (e.g., go from -stable to -current or vice
 versa), it's a special case.

Thanks, I'll remember that.

-- 
Marcel Moolenaarmailto:[EMAIL PROTECTED]
SCC Internetworking  Databases   http://www.scc.nl/
The FreeBSD projectmailto:[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Cleaning house on /usr/src/*

1999-12-08 Thread Donn Miller

In the course of development of -current, a bunch of directories are added
and taken away from /usr/src.  So, about every month or so, I like to
clean out /usr/src/* and start from scratch.  (Well, you know, sometimes
you have so much of your own old code in there.)

What is the best way to refresh /usr/src then?  Do I do an ftp of the
current src at current.freebsd.org, or is it OK to cvsup from scratch from
cvsup[n].freebsd.org?  Someone told me it puts too big of a load on the
cvs servers by checking out the whole tree from scratch like this.  I
would say it actually puts a lighter load on the cvsup servers, because
there's no files on your machine to compare the tree with.  So, you're
basically trading bandwidth for load.

So, what's the best way to "clean house"?  Of course, I only do this once
a month or so if even that.  I normally cvsup every 1 or 2 days, but you
know, every once in a while you've got to clean out the /usr/src because
of all the junk directories.

- Donn



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Cleaning house on /usr/src/*

1999-12-08 Thread Sheldon Hearn



On Wed, 08 Dec 1999 09:16:45 EST, Donn Miller wrote:

 In the course of development of -current, a bunch of directories are
 added and taken away from /usr/src.  So, about every month or so, I
 like to clean out /usr/src/* and start from scratch.  (Well, you know,
 sometimes you have so much of your own old code in there.)

The best way to do this is to use CVS as your means of updating the
source tree and capture its output to some logfile.  On inspection of
the logfile, you'll see at a glance those files that can be deleted.

Ciao,
Sheldon.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Cleaning house on /usr/src/*

1999-12-08 Thread John Polstra

In article [EMAIL PROTECTED],
Donn Miller  [EMAIL PROTECTED] wrote:
 In the course of development of -current, a bunch of directories are added
 and taken away from /usr/src.  So, about every month or so, I like to
 clean out /usr/src/* and start from scratch.  (Well, you know, sometimes
 you have so much of your own old code in there.)
 
 What is the best way to refresh /usr/src then?  Do I do an ftp of the
 current src at current.freebsd.org, or is it OK to cvsup from scratch from
 cvsup[n].freebsd.org?  Someone told me it puts too big of a load on the
 cvs servers by checking out the whole tree from scratch like this.  I
 would say it actually puts a lighter load on the cvsup servers, because
 there's no files on your machine to compare the tree with.  So, you're
 basically trading bandwidth for load.

You are right.  If you're building a src tree from scratch, it's
"cheaper" to CVSup from scratch.  The CVSup mirror sites generally
have more of a bandwidth surplus than a CPU surplus.  Besides, if you
FTP a snapshot first, that in itself uses a lot of bandwidth.

 So, what's the best way to "clean house"?  Of course, I only do this once
 a month or so if even that.  I normally cvsup every 1 or 2 days, but you
 know, every once in a while you've got to clean out the /usr/src because
 of all the junk directories.

Why are you getting these junk directories?  CVSup should be deleting
them if they're empty.  You really shouldn't need to wipe out your
tree and start over -- not ever.  Did you omit the "delete" keyword
from your supfile?

John
-- 
  John Polstra   [EMAIL PROTECTED]
  John D. Polstra  Co., Inc.Seattle, Washington USA
  "No matter how cynical I get, I just can't keep up."-- Nora Ephron


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Cleaning house on /usr/src/*

1999-12-08 Thread Marcel Moolenaar

John Polstra wrote:

 Why are you getting these junk directories?  CVSup should be deleting
 them if they're empty.  You really shouldn't need to wipe out your
 tree and start over -- not ever.  Did you omit the "delete" keyword
 from your supfile?

I recently (last week) cvsup'd a -current source tree over a -stable
source tree with the assumption that cvsup would sort it all out. I
found out that cvsup doesn't (always?) remove files that are no longer
pertinent. This is with the delete keyword present. The -current build
broke because there were leftover files (/usr/obj has been removed
first). The breakage was solved by removing /usr/src and recvsup-ing
from scratch. Details follow...

BTW: The files in question were at a minimum /sys/netinet/altq_*.h

dwarf% cvsup -v
CVSup client, GUI version
Software version: REL_15_4
Protocol version: 15.5
Report problems to [EMAIL PROTECTED]

dwarf% more /etc/cvsup.conf
*defaultrelease=cvs tag=.
*defaultprefix=/usr
*defaultbase=/usr
*defaultdelete use-rel-suffix
*defaulthost=cvsup4.freebsd.org
...

dwarf% uname -a
FreeBSD dwarf.hq.scc.nl 3.3-STABLE FreeBSD 3.3-STABLE #0: Mon Sep 27
06:10:18 CEST 1999 [EMAIL PROTECTED]:/usr/src/sys/compile/DWARF 
i386

-- 
Marcel Moolenaarmailto:[EMAIL PROTECTED]
SCC Internetworking  Databases   http://www.scc.nl/
The FreeBSD projectmailto:[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Cleaning house on /usr/src/*

1999-12-08 Thread John Polstra

In article [EMAIL PROTECTED], Marcel Moolenaar
[EMAIL PROTECTED] wrote:
 John Polstra wrote:

  Why are you getting these junk directories?  CVSup should be
  deleting them if they're empty.  You really shouldn't need to
  wipe out your tree and start over -- not ever.  Did you omit the
  "delete" keyword from your supfile?

 I recently (last week) cvsup'd a -current source tree over a -stable
 source tree with the assumption that cvsup would sort it all out. I
 found out that cvsup doesn't (always?) remove files that are no
 longer pertinent. This is with the delete keyword present.

When you change the tag (e.g., go from -stable to -current or vice
versa), it's a special case.  That's because the "checkouts" file
(which CVSup uses to decide which files to delete) contains the tag
as part of its name.  In the future I may recommend omitting the
"use-rel-suffix" option in order to avoid this problem.  Meanwhile,
the CVSup FAQ has some advice about it in questions 11-13:

http://www.polstra.com/projects/freeware/CVSup/

If for whatever reason you do think you have some extra files,
there's a script "cvsupchk" in the contrib subdirectory of the CVSup
distribution which will find them for you and delete them.

John
-- 
  John Polstra   [EMAIL PROTECTED]
  John D. Polstra  Co., Inc.Seattle, Washington USA
  "No matter how cynical I get, I just can't keep up."-- Nora Ephron


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message