Bug 52666

Summary: "package list creation" document error
Product: Documentation Reporter: Chuck Swiger <chuck>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Chuck Swiger 2003-05-25 05:30:05 UTC
The "&& find -d *" commands in http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-autoplist.html don't work and should be replaced with "find ."

Fix: 

# (cd /var/tmp/port-name && find . -type d) | sort -r > OLD-DIRS

...works fine.
How-To-Repeat: 
# mkdir /var/tmp/port-name
# (cd /var/tmp/port-name && find -d * -type d) | sort -r > OLD-DIRS
find: *: No such file or directory
Comment 1 Tom Hukins freebsd_committer freebsd_triage 2003-05-30 15:18:40 UTC
State Changed
From-To: open->closed

Please read the instructions carefully.  If you run the mtree command, 
as described in the Porter's Handbook, you do not encounter this 
problem. 

Failing to run mtree will cause many extra files to appear in your 
pkg-plist.
Comment 2 chuck 2003-06-01 03:21:53 UTC
Thanks for the comments, and I supposed I've gotten what I deserve for trimming 
output, but the problem I had with "find -d . -type d" was due to "find" being 
expanded to "noglob find" via a shell alias.

-Chuck