Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 302757 - app-arch/pbzip2 +symlink does not work when reading from stdin
Summary: app-arch/pbzip2 +symlink does not work when reading from stdin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Dror Levin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-29 14:33 UTC by Peter Gantner (a.k.a. nephros)
Modified: 2010-02-10 06:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Gantner (a.k.a. nephros) 2010-01-29 14:33:50 UTC
pbzip2 barfs when invoked like this:

cat file | pbzip2 -9 > file.bz2

this is what e.g. 'make bzimage' from the kernel does.

Therefore app-arch/pbzip2 +symlink breaks some scripts which expect original bzip2.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
Parallel BZIP2 v1.0.5 - by: Jeff Gilchrist [http://compression.ca]         
[Jan. 08, 2009]             (uses libbzip2 by Julian Seward)               

Invalid command line: Not enough files given.  Aborting...

Usage: pbzip2 [-1 .. -9] [-b#cdfhklp#qrtVz] <filename> <filename2> <filenameN>
 -b#      : where # is the file block size in 100k (default 9 = 900k)
 -c       : output to standard out (stdout)
 -d       : decompress file
 -f       : force, overwrite existing output file
 -h       : print this help message
 -k       : keep input file, don't delete
 -l       : load average determines max number processors to use
 -p#      : where # is the number of processors (default: autodetect [4])
 -q       : quiet mode (default)
 -r       : read entire input file into RAM and split between processors
 -t       : test compressed file integrity
 -v       : verbose mode
 -V       : display version info for pbzip2 then exit
 -z       : compress file (default)
 -1 .. -9 : set BWT block size to 100k .. 900k (default 900k)

Example: pbzip2 -b15vk myfile.tar
Example: pbzip2 -p4 -r -5 myfile.tar second*.txt
Example: tar cf myfile.tar.bz2 --use-compress-prog=pbzip2 dir_to_compress/
Example: pbzip2 -d myfile.tar.bz2
Comment 1 Dror Levin (RETIRED) gentoo-dev 2010-02-09 20:03:07 UTC
Fixed in app-arch/pbzip2-1.0.5-r3. Applied a patch that fixes this issue, please reopen if you feel differently.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-02-10 06:10:49 UTC
(In reply to comment #1)
> Fixed in app-arch/pbzip2-1.0.5-r3. Applied a patch that fixes this issue,
> please reopen if you feel differently.

Upstream is very responsive - please submit the patch there[1] for review as well.

[1] pbzip2@compression.ca