Subject: lib/13152: new libbz2 API doesn't work with "tar" properly
To: None <>
From: Matthias Scheler <>
List: netbsd-bugs
Date: 06/10/2001 10:42:54
>Number:         13152
>Category:       lib
>Synopsis:       new libbz2 API doesn't work with "tar" properly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 10 01:42:01 PDT 2001
>Release:        2001-06-08 current sources
Matthias Scheler                        
System: NetBSD 1.5W NetBSD 1.5W (LYSSA) #0: Wed Jun 6 11:57:25 CEST 2001 i386
Architecture: i386
Machine: i386

After the recent change to "gzip" to use the new libbz2 API it always
print out an error message when used to in conjuction with "tar" on
a ".tar.bz2" file:

===> Validating dependencies for xemacs-21.1.14
=> Checksum OK for xemacs/xemacs-21.1.14.tar.bz2.
=> Checksum OK for xemacs/xemacs-21.1.14-elc.tar.gz.
=> Checksum OK for xemacs/xemacs-21.1.14-info.tar.gz.
===> Extracting for xemacs-21.1.14
===> Required installed package gdbm>=1.7.3: gdbm-1.8.0 found
===> Required installed package png>=1.0.11: png-1.0.11 found
===> Required installed package tiff-*: tiff-3.5.5 found
===> Required installed package jpeg-*: jpeg-6b found
===> Required installed package faces-1.6.1: faces-1.6.1 found
===> Required installed package Xaw3d-1.5: Xaw3d-1.5 found
for FILE in xemacs-21.1.14-elc.tar.gz xemacs-21.1.14-info.tar.gz; do  /usr/bin/tar xzCf /src/NetBSD-current/pkgsrc/editors/xemacs/work /src/distfiles/xemacs/$FILE;  done

gzip: stdout: Broken pipe
/usr/bin/tar: child returned status 1

The same happesn when "bzcat" is used directly:

tron@lyssa:/usr/pkgsrc/net/cia>make clean
===> Cleaning for cia-20000716
=> Checksum OK for cia-20000716.tar.bz2.
===> Extracting for cia-20000716

bzcat: I/O or other error, bailing out.  Possible reason follows.
bzcat: Broken pipe
        Input file = (stdin), output file = (stdout)
===> Patching for cia-20000716

cd pkgsrc/editors/xemacs
make extract
cd pkgsrc/net/cia
make extract

None provided.