Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 644140

Summary: app-alternatives/lzip: new package to allow app-arch/plzip symlink for app-arch/lzip
Product: Gentoo Linux Reporter: Jan Psota <jasiupsota>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: UNCONFIRMED ---    
Severity: normal CC: base-system, jstein, nrk, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jan Psota 2018-01-10 17:51:44 UTC
...and enabled by default.

Especially since portage BINPKG_COMPRESS can be set to lzip,
what makes a great sense on multi-core == popular machines.
(switching from xz to lzip [=plzip] quicken "quickpkg rust"
from 2m to 40s on 4-core AMD)
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-01-16 16:12:42 UTC
The pigz/pbzip2/lbzip2 symlink hack relies on the fact that bzip2/gzip is installed to /bin, so we can make an extra symlink in /usr/bin. This can't really happen when the reference archiver is in /usr/bin. You can create a symlink in /usr/local/bin locally for it, I suppose.

That said, you don't want to use parallel xz or lzip. It splits the compressed file into ${jobs} parts reducing the compression ratio.
Comment 2 Jan Psota 2018-01-16 16:18:32 UTC
Having _only_ app-arch/plzip works like magick for me :-)
(I wrote how many times faster it is)

What about !app-arch/lzip if +symlink is set?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-14 04:36:46 UTC
I wonder if we could revisit this now we have app-alternatives/.
Comment 4 Jan Psota 2022-12-14 17:29:17 UTC
Right! :-) Just like with:
app-alternatives/gzip USE="pigz (split-usr) -reference"
app-alternatives/bzip2 USE="lbzip2 (split-usr) -pbzip2 -reference"
(works for me)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-27 23:35:29 UTC
*** Bug 925629 has been marked as a duplicate of this bug. ***