add --quirk suse, which affects --old-bzip2 mode to inexactly replicate suse bzip2
authorJoey Hess <joey@kitenet.net>
Mon, 12 Sep 2011 20:06:02 +0000 (16:06 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 12 Sep 2011 20:06:02 +0000 (16:06 -0400)
commitb9c81299d34c7484cfc5d12cf89581fb6ef7def6
tree1a521c2cd00a9ca0125fc4072f981f7ac2fe6575
parent24ccab13522f30a1ab7cabc5fbfa82a10e63b706
add --quirk suse, which affects --old-bzip2 mode to inexactly replicate suse bzip2

Suse's bzip2 is modifed for some reason to use a huffman table of 17 bytes.

While suse has a newer bzip2 than the version in old-bzip2, it was most
expedient to keep only one copy of bzip2 in zgz, and parameterize it to
emulate suse's patched newer version. This is done by using the blocksort
code from bzip 1.0.5.

This does not 100% replicate the output of suse's bzip2, but the
differences seem to just be in some preliminary header info, and are
quite small. So this will be combined with using xdelta.
zgz/old-bzip2/bzip2.c
zgz/old-bzip2/bzlib_private.h
zgz/old-bzip2/compress.c
zgz/zgz.c