Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82192 - Patch for bzip2 progress indicator (-p option)
Summary: Patch for bzip2 progress indicator (-p option)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-15 19:08 UTC by Adam
Modified: 2011-09-27 18:20 UTC (History)
0 users

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


Attachments
Patch for bzip2 -p against version 1.0.2 (bzip2-1.0.2.diff,6.13 KB, patch)
2005-02-15 19:09 UTC, Adam
Details | Diff
Patch to bzip (replace existing progress patch) - supports large files (bzip2-1.0.2-progress.patch,6.00 KB, patch)
2009-12-18 20:55 UTC, Justin Binns
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam 2005-02-15 19:08:35 UTC
Mandrake has a -p option in bzip2 which shows progress as a percentage while a file is being compressed/decompressed.  I extracted the patch and am about to submit it once I get to the bug report where attachments can be added.  According to their website, they are OK with others using their patches.  From http://www.mandrakesoft.com/company/legal-faq:
"All code developed and distributed by Mandrakesoft is released under the General Public License or equivalent. Mandrakesoft Download Edition products only include software covered by a Free Software/Open Source license. Mandrakesoft Commercial products include proprietary third-party software products, which contain their own licensing models. "

The feature could be improved if someone feels up to it (e.g. it leaves the cursor in a strange position for future output of characters, and the progress resolution might not be ideal), but it's an option anyway and it's better than nothing as is, in my opinion.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Adam 2005-02-15 19:09:26 UTC
Created attachment 51313 [details, diff]
Patch for bzip2 -p against version 1.0.2
Comment 2 SpanKY gentoo-dev 2005-02-19 10:30:28 UTC
added to 1.0.2-r5, thanks
Comment 3 Justin Binns 2009-12-18 20:55:35 UTC
Created attachment 213420 [details, diff]
Patch to bzip (replace existing progress patch) - supports large files

Updated to support large files ('ftello' replaced with 'ftell')
Comment 4 Justin Binns 2009-12-18 20:56:34 UTC
In addition to hacking this up, I found the original author:

http://www.vanheusden.com/Linux/

and e-mailed my update to him as well.

Justin
Comment 5 Christopher Head 2010-02-12 04:55:06 UTC
As this is Resolved Fixed, Justin, are you sure the maintainers will see your new patch from message #3? I'd really like to see this, since bzip2 -p is essentially useless for me without large file support.
Comment 6 Christopher Head 2011-05-01 22:37:27 UTC
I believe nobody saw the second patch from Justin Binns due to this bug being marked resolved, as there seems to have been no further comment on this bug in the last year and a bit. The bug still exists, so I've posted #365639 and pointed here for reference.