From nobody@FreeBSD.org  Tue Sep 26 19:26:09 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4795C16A403
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Sep 2006 19:26:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 12C2E43D6D
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Sep 2006 19:26:08 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8QJQ73F011140
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 26 Sep 2006 19:26:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k8QJQ7lU011139;
	Tue, 26 Sep 2006 19:26:07 GMT
	(envelope-from nobody)
Message-Id: <200609261926.k8QJQ7lU011139@www.freebsd.org>
Date: Tue, 26 Sep 2006 19:26:07 GMT
From: Frank Korzeniewski <frk@adsl-63-194-157-35.dsl.snfc21.pacbell.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: tar processes --exclude as if the pattern started with a *
X-Send-Pr-Version: www-2.3

>Number:         103690
>Category:       bin
>Synopsis:       tar processes --exclude as if the pattern started with a *
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kientzle
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 26 19:30:31 GMT 2006
>Closed-Date:    Sun Mar 04 18:22:53 GMT 2007
>Last-Modified:  Sun Mar 04 18:22:53 GMT 2007
>Originator:     Frank Korzeniewski
>Release:        6.1
>Organization:
>Environment:
FreeBSD adsl-63-194-157-35.dsl.snfc21.pacbell.net 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:42:56 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP  i386

>Description:
i use the following command in the /usr/src directory:
tar cf ../src.tar --exclude 'sys/*' .
to copy the system source from one machine to another.
i do a make buildworld on both machines.
the following error shows up:
"Makefile", line 50: Could not find /usr/src/lib/libc/sys/Makefile.inc
there is nothing in the directory /usr/src/lib/libc/sys
its my opinion that there should be if tar follows the shell globing rules!

>How-To-Repeat:
do what i did in the full description.

>Fix:
change the man page to reflect the non-shell behavior or fix tar.

i just want to say you guys do a great job.
(i'm not saying that to get this fixed)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->kientzle 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Sep 26 21:18:29 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103690 
State-Changed-From-To: open->closed 
State-Changed-By: kientzle 
State-Changed-When: Sun Mar 4 18:18:29 UTC 2007 
State-Changed-Why:  
Unfortunately, GNU tar behaves this way.  Even though I agree 
that GNU tar's pattern-matching rules are at best inscrutable, 
bsdtar has to mimic those rules closely.  Otherwise, quite a few 
ports would likely break, as they have build scripts that rely 
on GNU tar's handling of --exclude. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=103690 
>Unformatted:
