[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#686502: pxz produces archives broken for busybox's unxz



package: pxz
version: 4.999.9~beta+git537418b-1
severity: important
affects: busybox
x-debbugs-cc: debian-boot@lists.debian.org,xz-utils@packages.debian.org,jnovy@users.sourceforge.net

Hi,

pxz (somtimes) produces archives broken for busybox's unxz, while they 
decompress fine with unxz from xz-utils packges. I noticed when trying
to uncompress pxz compressed initramfs files, while this is an universal
way to reproduce it:

(this is sid, and busybox from squeeze behaves the same.)

# get some big archive:
~/t$ apt-get source typo3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Picking 'typo3-src' as source package instead of 'typo3'
NOTICE: 'typo3-src' packaging is maintained in the 'Git' version control system at:
git://github.com/sir-gawain/debian-typo3.git
Skipping already downloaded file 'typo3-src_4.5.19+dfsg1-1.dsc'
Skipping already downloaded file 'typo3-src_4.5.19+dfsg1.orig.tar.gz'
Skipping already downloaded file 'typo3-src_4.5.19+dfsg1-1.debian.tar.gz'
Need to get 0 B of source archives.
Skipping unpack of already unpacked source in typo3-src-4.5.19+dfsg1

# preserve it
~/t$ cp typo3-src_4.5.19+dfsg1.orig.tar.gz typo3-src_4.5.19+dfsg1.orig.tar.gz.orig

# now show that busybox unxz chokes:
~/t$ gunzip typo3-src_4.5.19+dfsg1.orig.tar.gz
~/t$ pxz -z typo3-src_4.5.19+dfsg1.orig.tar
~/t$ busybox unxz typo3-src_4.5.19+dfsg1.orig.tar.xz
~/t$ tar tf typo3-src_4.5.19+dfsg1.orig.tar 1>/dev/null
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

# cleanup
~/t$ rm typo3-src_4.5.19+dfsg1.orig.tar
~/t$ cp typo3-src_4.5.19+dfsg1.orig.tar.gz.orig typo3-src_4.5.19+dfsg1.orig.tar.gz

# show that unxz has no problems
~/t$ gunzip typo3-src_4.5.19+dfsg1.orig.tar.gz
~/t$ pxz -z typo3-src_4.5.19+dfsg1.orig.tar
~/t$ unxz typo3-src_4.5.19+dfsg1.orig.tar.xz
~/t$ tar tf typo3-src_4.5.19+dfsg1.orig.tar 1>/dev/null
~/t$ echo $?
0

Any help with this is appreciated.


cheers,
	Holger


Reply to: