Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463946 - app-arch/tar: dynamically select compressors at runtime
Summary: app-arch/tar: dynamically select compressors at runtime
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-31 00:15 UTC by Reuben Farrelly
Modified: 2013-04-01 05:16 UTC (History)
0 users

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 Reuben Farrelly 2013-03-31 00:15:33 UTC
I'm looking to use lbzip2 instead of standard bzip2, in order to gain the advantages of multiple CPU cores being used for compression.  Standard bzip2 only uses one core even on a multicore machine which means we don't take advantage of the CPU power anything even remotely modern.

lbzip2 is otherwise a drop in replacement for bzip2, that does support multi core compression.

However to do this we need to pass the --with-bzip2= flag to ./configure:

http://www.gnu.org/software/tar/manual/html_node/lbzip2.html

This RFE is to have lbzip2 and pbzip2 USE flag support added to the tar ebuild so that tar will be able to find and use these compression applications as well.
Comment 1 SpanKY gentoo-dev 2013-04-01 05:16:43 UTC
we're not going to add USE flags just to set --with-bzip2/etc... to different values at runtime.  you can use per-package env to set EXTRA_ECONF on your own system.

what might make sense is to have a wrapper and tell tar to run that, and the wrapper will select on the fly from a suite of possible tools.

but neither of these options are preventing you from doing:
  lbzip2 -dc foo.tar.bz2 | tar xf -
or:
  tar -I lbzip2 -xf foo.tar.bz2