Subject: bin/19420: current tar can't unpack jakarta-ant tar ball for pkgsrc
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 12/16/2002 16:25:47
>Number:         19420
>Category:       bin
>Synopsis:       -current tar can't unpack jakarta-ant tar ball for pkgsrc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 16 13:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     TheMan
>Release:        1.6K (src from 20021209, pkgsrc from 20021216)
>Organization:
none
>Environment:
System: NetBSD pimpninja.wasabisystems.com 1.6K NetBSD 1.6K (PIMPNINJA) #18: Mon Dec  9 18:04:00 EST 2002     root@pimpninja.wasabisystems.com:/usr/src/sys/arch/i386/compile/PIMPNINJA i386

>Description:

	tar complains of

	tar: Invalid header, starting valid header search.
	tar: Failed seek on file jakarta-ant-1.4.1/LICENSE <Invalid argument>

	when trying to make extract for the devel/jakarta-ant pkg.

>How-To-Repeat:

	delete jakarta-ant pkg and any that it requires recursively
	back up to emulators/suse-base (since you have to upgrade it)
	and attempt to reinstall the jakarta-ant pkg.

>Fix:

	for me it was as simple as setting

		GTAR=/.old.20020816/usr/bin/tar

	whereas none of

		GTAR=/old/bin/tar
		GTAR=/old/rescue/tar
		GTAR=/usr/bin/tar
		GTAR=/usr/pkg/bin/gtar
		EXTRACT_USING_PAX=yes

	helped.  that's not a "fix", though.  more of a
	workaround.  thank god i'm lazy and don't delete things in a
	timely manner.  :)
>Release-Note:
>Audit-Trail:
>Unformatted: