After moving from 16.02 to 17.05, lots of old zip archives can't be more unzipped by 7z. It tries to create directory named as a file from archive, and then fails. https://asciinema.org/a/aO7JjUDtnc9Lg7ozN8GNhMY00 Emerge info: https://pastebin.com/aF4LU3nc zip file that causes 7z to fail is attached. It is taken from free modarchive.org release. Other failing files from there: ds_g_o_l.xm.zip ds_i_k_a.xm.zip godrest.it.zip kirsikka.xm.zip kmdream.it.zip sflogic.it.zip wc_confu.xm.zip There are also thousands of failing zip archives from MAME torrent release.
Created attachment 913589 [details] failing zip archive
I would suggest trying app-arch/7zip instead.
Well, this is about workarounds, and it would include (for me) fixing and rewriting lots of scripts. Currently I've just downgraded to 16.02
This is a bug in string localization causing a string buffer overrun that was reported upstream in 2021. Upstream committed a fix for this and some related issues in May 2024. https://github.com/p7zip-project/p7zip/issues/112 https://github.com/p7zip-project/p7zip/pull/233/commits/afec5e119df1f0706df619b6151b709945de4f43 That commit applies cleanly to p7zip-17.05_r1 and with it the bad file in this bug extracts as it should.
It seems to conflict with the natspec patch. I wonder if it'd be better to go that way and force that usage instead.
Maybe apply the upstream fix by default and make the natspec USE flag add the libnatspec dependency and apply the natspec patch instead of upstream. Then it'll work by default without whatever natspec requires and natspec users will still get what they asked for. Or honestly, as already suggested, using 7zip instead and letting p7zip slip into history might be a better idea. Thanks for your help, Matthew.
ya, that's fair, it's half abandonware upstream so maybe it's time to lastrites
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a71e1e4a0907b3172edb767c0eac01fe508e5ef1 commit a71e1e4a0907b3172edb767c0eac01fe508e5ef1 Author: Matthew Thode <prometheanfire@gentoo.org> AuthorDate: 2024-12-24 15:44:15 +0000 Commit: Matthew Thode <prometheanfire@gentoo.org> CommitDate: 2024-12-24 15:44:15 +0000 app-arch/p7zip: localization patch backport Closes: https://bugs.gentoo.org/946122 Signed-off-by: Matthew Thode <prometheanfire@gentoo.org> .../p7zip/files/p7zip-17.05-localization.patch | 234 +++++++++++++++++++++ app-arch/p7zip/p7zip-17.05-r2.ebuild | 114 ++++++++++ 2 files changed, 348 insertions(+)
(In reply to Matthew Thode ( prometheanfire ) from comment #7) > ya, that's fair, it's half abandonware upstream so maybe it's time to > lastrites So, what now?
Your change introduced a new warning: > $ pkgcheck scan > [...] > WhitespaceFound: version 17.05-r2: ebuild has leading whitespace on lines: 36, 37