Summary: | Add app-alternatives/unzip | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | om3i <r9ku1q> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | gentoo+bugs, parona |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/33998 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
om3i
2024-01-17 19:12:41 UTC
It seems unlikely to me that these alternatives are compatible enough to allow for drop-in replacement of app-arch/unzip. (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. parona was interested in this before and started looking at libarchive compat (https://github.com/libarchive/libarchive/pull/2022). (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 |