Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922331 - Add app-alternatives/unzip
Summary: Add app-alternatives/unzip
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-17 19:12 UTC by om3i
Modified: 2024-01-19 06:10 UTC (History)
2 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 om3i 2024-01-17 19:12:41 UTC
Unzip can be found in:
app-arch/unzip
app-arch/libarchive (bsdunzip)
sys-apps/busybox
Also, app-arch/p7zip unpacks zip and a variety of other formats, but its command switches are incompatible.

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2024-01-17 19:27:59 UTC
It seems unlikely to me that these alternatives are compatible enough to allow for drop-in replacement of app-arch/unzip.
Comment 2 Enne Eziarc 2024-01-18 19:18:20 UTC
(In reply to Mike Gilbert from comment #1)
> It seems unlikely to me that these alternatives are compatible enough to
> allow for drop-in replacement of app-arch/unzip.

I assume you're referring to the command line switches, though from prior experience their varying locale support is a huge problem on its own.

app-arch/unzip and busybox will corrupt UTF-8 filenames by default, busybox at least gets the right number of characters in the output; bsdunzip refuses the operation entirely complaining about a locale mismatch (my system locale's always been utf-8 so maybe this is a BSD porting bug); p7zip is UTF-8-clean by default.

There's also miniunzip from zlib, but the ebuild only installs its manpage so I didn't try it.


Unfortunately this still seems to be a dark and under-served corner of the system. If anyone's having difficulty with zip files I recommend app-arch/atool (and using -F 7z) - a sufficiently complete app-alternatives/unzip wrapper would end up looking like it anyway.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-19 05:51:06 UTC
parona was interested in this before and started looking at libarchive compat (https://github.com/libarchive/libarchive/pull/2022).
Comment 4 Alfred Wingate 2024-01-19 06:10:16 UTC
(In reply to Mike Gilbert from comment #1)
> It seems unlikely to me that these alternatives are compatible enough to
> allow for drop-in replacement of app-arch/unzip.

libarchive's unzip strives to be compatible with Info-ZIP's unzip and Ive toyed around  with it. It worked fine except for the one bug that was addressed upstream now (not in any release yet).

https://github.com/gentoo/gentoo/pull/33998