From rsimmons@mail.wlcg.com  Mon Nov 19 14:48:18 2001
Return-Path: <rsimmons@mail.wlcg.com>
Received: from mail.wlcg.com (mail.wlcg.com [198.92.199.5])
	by hub.freebsd.org (Postfix) with ESMTP
	id 0BC2D37B41B; Mon, 19 Nov 2001 14:48:17 -0800 (PST)
Received: (from rsimmons@localhost)
	by mail.wlcg.com (8.11.6/8.11.6) id fAJMmH439862;
	Mon, 19 Nov 2001 17:48:17 -0500 (EST)
	(envelope-from rsimmons)
Message-Id: <200111192248.fAJMmH439862@mail.wlcg.com>
Date: Mon, 19 Nov 2001 17:48:17 -0500 (EST)
From: Rob Simmons <rsimmons@mail.wlcg.com>
Reply-To: Rob Simmons <rsimmons@mail.wlcg.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: doc@freebsd.org
Subject: pkg-plist instructions missing a switch on the find command
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32116
>Category:       docs
>Synopsis:       pkg-plist instructions missing a switch on the find command
>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:   Mon Nov 19 14:50:00 PST 2001
>Closed-Date:    Wed Dec 12 10:50:27 PST 2001
>Last-Modified:  Wed Dec 12 10:52:18 PST 2001
>Originator:     Rob Simmons
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD mail 4.4-STABLE FreeBSD 4.4-STABLE #1: Tue Oct 9 11:45:16 EDT
2001 rsimmons@mail:/usr/obj/usr/src/sys/WASABI i386


	
>Description:
The instructions for how to automatically create a package list in The
Porter's Handbook is missing the depth first traversal switch on the find
commands.  Without it, the pkg-plist that is created has the directories in
the wrong order.  When the port is removed from the machine it fails.
>How-To-Repeat:
follow the instructions here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-autoplist.html
>Fix:
In the section for "Store the directory structure in a new file."
The command "# (cd /var/tmp/port-name && find * -type d) > OLD-DIRS"
should be
"# (cd /var/tmp/port-name && find -d * -type d) > OLD-DIRS"
in the next section the command
"# (cd /var/tmp/port-name && find * \! -type d) > pkg-plist"
should be
"# (cd /var/tmp/port-name && find -d * \! -type d) > pkg-plist"
the same goes for the last example as well.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tom 
State-Changed-When: Wed Dec 12 10:50:27 PST 2001 
State-Changed-Why:  
Fixed in revision 1.185 of 
doc/en_US.ISO8859-1/books/porters-handbook/book.sgml - Thanks! 

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