Gentoo Archives: gentoo-dev

From: Florian Philipp <lists@×××××××××××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] ship app-arch/pbzip2 instead of app-arch/bzip2
Date: Thu, 27 Sep 2012 15:12:30
Message-Id: 50646C46.3020106@binarywings.net
In Reply to: Re: [gentoo-dev] ship app-arch/pbzip2 instead of app-arch/bzip2 by Florian Philipp
1 Am 27.09.2012 09:22, schrieb Florian Philipp:
2 > Am 26.09.2012 23:53, schrieb Michael Mol:
3 >> On Wed, Sep 26, 2012 at 5:27 PM, Florian Philipp <lists@×××××××××××.net> wrote:
4 >>> Am 26.09.2012 22:43, schrieb Matt Turner:
5 >>>> On Wed, Sep 26, 2012 at 1:30 PM, Michael Mol <mikemol@×××××.com> wrote:
6 >>>>> A few months ago, I filed bug 423651 to ask that bzip2 on the install
7 >>>>> media be replaced with
8 >>>>> pbzip2. It was closed a short while later, telling me that it'd
9 >>>>> involve changing what's kept in @system, and that had to be discussed
10 >>>>> here, rather than in a bug report.
11 >>>>
12 >>>> If we're going to ship a parallel bzip2 implementation, it should be
13 >>>> lbzip2 and not pbzip2.
14 >>>>
15 >>>> lbzip2 can decompress bz2 archives with multiple threads that haven't
16 >>>> been compressed with lbzip2/pbzip2.
17 >>>>
18 >>>
19 >>> This seems relevant, especially comment 12ff:
20 >>> https://bugs.gentoo.org/show_bug.cgi?id=309683
21 >>>
22 >>> For further anecdotal evidence: I've used pbzip2 with USE="symlink" for
23 >>> several months now and never had trouble with it. Checking out lbzip2
24 >>> now. I noticed it doesn't install a bunzip2 symlink.
25 >>
26 >> Piotr Szymaniak asked me about lbzip2, and I bounced the question over
27 >> to my friend. He didn't investigate it deeply; it crashed (OOM or
28 >> something else, I don't know) when he tried it on a large file. Could
29 >> have been from 2GB to 2TB, from what he has laying around. I don't
30 >> know; I didn't get that one in writing. :)
31 >>
32 >> But if it proves to be stable for small and very large files, I'd have
33 >> no complaint. :)
34 >>
35 >
36 > I just encountered this:
37 >
38 > bzip2 -c </srv/qemu/hpwin.img >/dev/null
39 > bzip2:
40 > /var/tmp/portage/app-arch/lbzip2-2.2/work/lbzip2-2.2/src/encode.c:794:
41 > generate_initial_trees: Assertion `a < b' failed.
42 >
43 > Something in that file is upsetting lbzip2. I'm investigating.
44
45 Okay, reported and (hopefully) fixed in
46 https://bugs.gentoo.org/show_bug.cgi?id=436382
47
48 In my infinite confidence in my own coding and testing skills I suggest
49 copying the proposed patch to /etc/portage/patches/app-arch/lbzip2-2.2
50 before trying out lbzip2. ;-)
51
52 Regards,
53 Florian Philipp

Attachments

File name MIME type
signature.asc application/pgp-signature