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

Bug 888777

Summary: app-arch/gzip, app-arch/bzip2: drop from @system to allow app-arch/pigz / app-arch/pbzip2 / app-arch/lbzip2 to fully replace them via app-alternatives/gzip and app-alternatives/bzip2
Product: Gentoo Linux Reporter: Sam James <sam>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal CC: gentoo, gyakovlev, maintainer-needed, mattst88, mgorny, pms
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=645438
https://bugs.gentoo.org/show_bug.cgi?id=524794
https://bugs.gentoo.org/show_bug.cgi?id=312967
https://bugs.gentoo.org/show_bug.cgi?id=294752
https://bugs.gentoo.org/show_bug.cgi?id=324635
https://bugs.gentoo.org/show_bug.cgi?id=469480
https://bugs.gentoo.org/show_bug.cgi?id=590236
https://bugs.gentoo.org/show_bug.cgi?id=320313
https://bugs.gentoo.org/show_bug.cgi?id=567952
https://bugs.gentoo.org/show_bug.cgi?id=686660
https://bugs.gentoo.org/show_bug.cgi?id=393155
Whiteboard:
Package list:
Runtime testing required: ---

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-28 19:02:35 UTC
PMS currently says:
- "Ebuilds must ensure that GNU gzip is installed."
- "Ebuilds must ensure that bzip2 is installed."
- "Ebuilds must ensure that GNU gzip and GNU tar are installed."
(and more, of course).

For this reason, we decided to keep app-arch/gzip & app-arch/bzip2 in @system (profiles/base/packages) for the time being, even though we've added app-alternatives/{bzip2,gzip}.

pigz (an alternative for gzip) and lbzip2 & pbzip2 are all supposed to be compatible with their respective reference implementations
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-28 19:04:57 UTC
There's a bunch of historical bugs I've See Also'd, but in general, these bugs have been fixed promptly by the respective upstreams when an incompatibility arises.

USE=symlink, in the past, was quite popular for these tools and I don't recall hearing of any issues in recent times.

Further, app-alternatives/{bzip2,gzip} by controlling the standard binary paths already means Portage won't (as it stands) know how to find GNU gzip and the reference bzip2 implementation anyway. That is, right now, by keeping it in @system, we're not actually ensuring Portage is still able to unpack stuff if the user changes the USE flags on these tools anyway.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-28 19:05:25 UTC
My general feeling is that as long as the defaults for these app-alternatives are the standard/reference versions, we should be fine to remove the references from @system.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-12-28 20:51:24 UTC
We should probably change PMS to do something similar to how we define patch, i.e. a tool that accepts all inputs valid for GNU gzip/bzip2.
Comment 4 fariouche 2023-11-02 10:16:28 UTC
Hello,
There is also the use case of the busybox that is not handled (on one of my system I uses busybox's bc and bzip2)