Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 690968 - [Future EAPI] unpack: Remove support for 7-Zip, RAR, and LHA
Summary: [Future EAPI] unpack: Remove support for 7-Zip, RAR, and LHA
Status: CONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PMS/EAPI
URL:
Whiteboard: feasible-for-next-eapi
Keywords:
Depends on:
Blocks: future-eapi
  Show dependency tree
 
Reported: 2019-07-29 06:38 UTC by Michał Górny
Modified: 2020-02-23 06:13 UTC (History)
3 users (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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-07-29 06:38:28 UTC
Some stats:

.7z - 4 packages
.rar - 5 packages
.lha/.lzh - unused
.lzma - ~13 packages (I ran out of fingers ;-))

I think we could kill at least the first three, either removing them entirely in a future EAPI, or requesting use of unpacker.eclass via tree policy.

Why?  My main argument is that at least the two middle formats are rather baroque and have non-free dependencies.  In the rare occurrence of actually having to install an ebuild using one of those formats, I end up having to install additional programs while I already have other (apparently free) programs capable of unpacking them.

With those formats, I think unpacker.eclass is a better solution as it lets us easily adjust dependency lists and support alternative software.

Keeping .lzma is probably fine as I don't expect xz-utils to remove support for it anytime soon.
Comment 1 Ulrich Müller gentoo-dev 2019-07-29 17:13:41 UTC
There is also .Z which is used by 18 packages, and is handled by gzip. I would suggest that we keep both .Z and .lzma.

No strong opinion about the other three.
Comment 2 Ulrich Müller gentoo-dev 2020-02-22 22:04:13 UTC
As a matter of fact, the devmanual says that .rar must not be used:
https://devmanual.gentoo.org/ebuild-writing/functions/src_unpack/other-formats/#rar-files

".rar files must be repackaged locally into a .tar.bz2 file."
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-02-23 06:13:05 UTC
(In reply to Ulrich Müller from comment #2)
> As a matter of fact, the devmanual says that .rar must not be used:
> https://devmanual.gentoo.org/ebuild-writing/functions/src_unpack/other-
> formats/#rar-files
> 
> ".rar files must be repackaged locally into a .tar.bz2 file."

That's not going to work for mirror-restricted files though.