Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] ship app-arch/pbzip2 instead of app-arch/bzip2
Date: Thu, 27 Sep 2012 09:49:38
Message-Id: 20580.8427.125461.36564@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-dev] ship app-arch/pbzip2 instead of app-arch/bzip2 by Michael Mol
1 >>>>> On Wed, 26 Sep 2012, Michael Mol wrote:
2
3 > A few months ago, I filed bug 423651 to ask that bzip2 on the
4 > install media be replaced with pbzip2. It was closed a short while
5 > later, telling me that it'd involve changing what's kept in @system,
6 > and that had to be discussed here, rather than in a bug report.
7
8 We need to be careful when we replace such standard tools. Often the
9 replacement isn't completely compatible. For example, pbzip2 suffers
10 from the same bug as pigz [1] when it encounters a zero-padded tarball:
11
12 $ echo foo | bzip2 | dd conv=sync 2>/dev/null | pbzip2 -d
13 foo
14 pbzip2: *ERROR during BZ2_bzDecompress - trailing garbage: ret=4; block=0; seq=0; isLastInSeq=1; avail_in=472
15 Terminator thread: premature exit requested - quitting...
16 $ echo $?
17 1
18
19 The same command line as above but with bzip2 -d will return a good
20 exit status.
21
22 Ulrich
23
24 [1] <https://bugs.gentoo.org/show_bug.cgi?id=417657#c17>