Subject: bin/25350: pax-as-tar cannot extract pkgsrc distfile for elvis-2.2_0
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <apb@cequrux.com>
List: netbsd-bugs
Date: 04/27/2004 14:35:44
>Number: 25350
>Category: bin
>Synopsis: pax-as-tar cannot extract pkgsrc distfile for elvis-2.2_0
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 27 12:37:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Alan Barrett
>Release: NetBSD 1.6ZK
>Organization:
Not much
>Environment:
NetBSD 1.6ZK
Architecture: i386
Machine: i386
>Description:
The distfile for pkgsrc/editors/elvis contains a file with the
sticky bit set. "make extract" (which invokes "/bin/tar -xf -")
is unable to extract it.
I think this is a pax-as-tar bug (not a pkgsrc bug), because tar was
not passed the "-p" option, so it should not be trying to preserve the
sticky bit.
>How-To-Repeat:
sh$ tar -z -tvf /usr/pkgsrc/distfiles/elvis-2.2_0.tar.gz | grep gwmsg.c
-rwxr-xr-t 1 500 users 21106 Oct 21 2003 elvis-2.2_0/guiwin32/gwmsg.c
sh$ cd /usr/pkgsrc/editors/elvis
sh$ ident Makefile
$NetBSD: Makefile,v 1.2 2004/01/20 22:48:07 recht Exp $
sh$ make extract
===> do-fetch [elvis-2.2.0nb1] ===> Checking for vulnerabilities in elvis-2.2.0nb1
=> Checksum OK for elvis-2.2_0.tar.gz.
===> extract-message [elvis-2.2.0nb1] ===> Extracting for elvis-2.2.0nb1
tar: Cannot set permissions on elvis-2.2_0/guiwin32/gwmsg.c.28233h (Inappropriate file type or format)
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/editors/elvis
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/editors/elvis
If you try "make PKG_DEBUG_LEVEL=2 extract", you can see that it is running
the following command:
/usr/bin/gzcat /usr/pkgsrc/distfiles/elvis-2.2_0.tar.gz | /bin/tar -xf -
>Fix:
Sorry, no fix here.
>Release-Note:
>Audit-Trail:
>Unformatted: