Subject: pkg/20381: corrupt crimson-1.1.3 tar image
To: None <gnats-bugs@gnats.netbsd.org>
From: Nick Cuccia <cuccia@Talamasca.COM>
List: netbsd-bugs
Date: 02/16/2003 22:38:10
>Number:         20381
>Category:       pkg
>Synopsis:       corrupt crimson-1.1.3 tar image
>Confidential:   yes
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 16 22:39:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Nick Cuccia
>Release:        NetBSD 1.6N
>Organization:
>Environment:
	
	
System: NetBSD motherhouse 1.6N NetBSD 1.6N (TALAMASCA) #0: Tue Feb 11 17:41:11 PST 2003 cuccia@motherhouse:/sys/arch/i386/compile/TALAMASCA i386
Architecture: i386
Machine: i386
>Description:
Build of crimson package fails due to inability to extract information
from crimson tar.gz image.
>How-To-Repeat:
# cd /usr/pkgsrc/textproc/crimson
# make

>Fix:
Change the Makefile and distinfo file, so that they download/use the .zip
image from xml.apache.org instead.  To do this:

* Set the appropriate SHA1 (406934261d1eb7e5c0de8e3fbb9768d442320c1c)
  and Size (734032 bytes) in distinfo

* Add the following two lines under MASTER_SITES in Makefile:

	EXTRACT_SUFX=	.zip
	EXTRACT_CMD.zip=	${LOCALBASE}/bin/unzip -Caq $${extract_file}

  (Note that we want to preserve case in the filenames when we extract them).
>Release-Note:
>Audit-Trail:
>Unformatted:
 no
 Crimson-1.1.3's tar file cannot be extracted using tar or pax
 sw-bug