From swear@aa.net  Tue Aug  7 14:41:51 2001
Return-Path: <swear@aa.net>
Received: from localhost.localdomain (host68.207.55.120.aadsl.com [207.55.120.68])
	by hub.freebsd.org (Postfix) with ESMTP id 20D9637B403
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Aug 2001 14:41:51 -0700 (PDT)
	(envelope-from swear@aa.net)
Received: (from jojo@localhost)
	by localhost.localdomain (8.11.3/8.11.3) id f77Li2549925;
	Tue, 7 Aug 2001 14:44:02 -0700 (PDT)
	(envelope-from swear@aa.net)
Message-Id: <zju1zjv940.1zj@localhost.localdomain>
Date: 07 Aug 2001 14:43:59 -0700
From: swear@aa.net (Gary W. Swearingen)
Sender: jojo@localhost.localdomain
Reply-To: swear@aa.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: Handbook missing fast method of cleaning ports.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         29517
>Category:       docs
>Synopsis:       Handbook missing fast method of cleaning ports.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 07 14:50:05 PDT 2001
>Closed-Date:    Sun Sep 2 03:48:32 PDT 2001
>Last-Modified:  Sun Sep 02 03:49:45 PDT 2001
>Originator:     Gary W. Swearingen
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
none
>Environment:
n/a
================
>Description:

The handbook gives what it calls the "best" way to clean ports,
which, when I tried it, took several hours on fast hardware.

The handbook is missing the faster method used by many.
================
>How-To-Repeat:
<code/input/activities to reproduce the problem (multiple lines)>
================
>Fix:

Apply the following PR/patch.  I've changed "best" to "surest"
and added the alternative method and an introductory paragraph.

I got the method off comp.unix.bsd.freebsd.misc and I must admit
to having not tested it

patch -d /*/doc/en_US.ISO8859-1/tbd/tbd/tbd < this-PR
<how to correct or work around the problem, if known (multiple lines)>
*** /tmp/chapter.sgml	Tue Aug  7 11:01:34 2001
--- ports/chapter.sgml	Tue Aug  7 11:19:19 2001
***************
*** 1120,1126 ****
  	  <answer>
  	  <para>Yes, if you have installed the program and are fairly
  	    certain you will not need the source again, there is no
! 	    point in keeping it hanging around.  The best way to do
  	    this is:</para>
  
  	  <screen>&prompt.root; <userinput>cd /usr/ports</userinput>
--- 1120,1126 ----
  	  <answer>
  	  <para>Yes, if you have installed the program and are fairly
  	    certain you will not need the source again, there is no
! 	    point in keeping it hanging around.  The surest way to do
  	    this is:</para>
  
  	  <screen>&prompt.root; <userinput>cd /usr/ports</userinput>
***************
*** 1129,1134 ****
--- 1129,1142 ----
  	  <para>which will go through all the ports subdirectories and
  	    delete everything except the skeletons for each
  	    port.</para>
+ 
+ 	  <para>A much faster way to do most (if not all) of the same
+           thing is this:</para>
+  
+ 	  <screen>&prompt.root; <userinput>
+             find /usr/ports -depth -name work -exec rm -rf {} \;</userinput>
+         </screen>
+ 
  	  </answer>
  	</qandaentry>
  
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: murray 
State-Changed-When: Sun Sep 2 03:48:32 PDT 2001 
State-Changed-Why:  
Your patch has been applied (with minor modifications).  Thanks!  That 
chapter could still use some more work if you've got time to help us 
improve it. 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29517 
>Unformatted:
