Subject: pkg/18831: pax exit code causes print/teTeX-share package install to fail
To: None <gnats-bugs@gnats.netbsd.org>
From: None <andreas@planix.com>
List: netbsd-bugs
Date: 10/27/2002 15:18:20
>Number:         18831
>Category:       pkg
>Synopsis:       pax exit code causes print/teTeX-share package install to fail
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 27 12:19:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Wrede <andreas@planix.com>
>Release:        NetBSD 1.6J
>Organization:
Planix, Inc.
>Environment:
System: NetBSD woffi.planix.com 1.6J NetBSD 1.6J (PLANIX) #1: Sat Oct 26 11:26:50 EDT 2002 root@woffi.planix.com:/m5/netbsd-current/src/sys/arch/i386/compile/WOFFI i386
Architecture: i386
Machine: i386
>Description:
	The tty_warn(1,..) added in rev 1.27 of pax/tar.c causes pax to exit 
with code 1 when encountering a utar archive. This cause 'make install' in
print/teTeX-share (and maybe others) to fail.

>How-To-Repeat:
cd /usr/pkgsrc/print/teTeX-share
make install
===> Installing for teTeX-share-1.0.2nb2
install -d -o root -g wheel -m 555 /usr/pkg/share/texmf
cd /usr/pkg/share/texmf; /bin/pax -crzf /var/distfiles/teTeX/teTeX-texmf-1.0.2.tar.gz `/bin/cat /usr/pkgsrc/print/teTeX-share/files/exclude`
pax: Trying to read GNU tar archive with extensions off
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/print/teTeX-share

>Fix:
Either change pkgsrc/print/teTeX-share/Makefile to cope with the non-zero 
return of pax or apply the following:

Index: tar.c
===================================================================
RCS file: /cvsroot/basesrc/bin/pax/tar.c,v
retrieving revision 1.31
diff -c -r1.31 tar.c
*** tar.c	2002/10/18 15:55:08	1.31
--- tar.c	2002/10/27 20:15:43
***************
*** 733,739 ****
  	if (strncmp(hd->magic, "ustar  ", 8) == 0 && !is_gnutar &&
  	    !seen_gnu_warning) {
  		seen_gnu_warning = 1;
! 		tty_warn(1,
  		    "Trying to read GNU tar archive with extensions off");
  	}
  	if (asc_ul(hd->chksum,sizeof(hd->chksum),OCT) != tar_chksm(blk,BLKMULT))
--- 733,739 ----
  	if (strncmp(hd->magic, "ustar  ", 8) == 0 && !is_gnutar &&
  	    !seen_gnu_warning) {
  		seen_gnu_warning = 1;
! 		tty_warn(0,
  		    "Trying to read GNU tar archive with extensions off");
  	}
  	if (asc_ul(hd->chksum,sizeof(hd->chksum),OCT) != tar_chksm(blk,BLKMULT))

>Release-Note:
>Audit-Trail:
>Unformatted: