Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107107 - p7zip-4.27 incompatibility with some old 7z (no retrocompatibility)
Summary: p7zip-4.27 incompatibility with some old 7z (no retrocompatibility)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Radoslaw Stachowiak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-24 13:00 UTC by Matteo Azzali (RETIRED)
Modified: 2007-04-23 12:26 UTC (History)
1 user (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 Matteo Azzali (RETIRED) gentoo-dev 2005-09-24 13:00:31 UTC
I have some old .7z files that p7zip-4.20 opens without any issue.
p7zip-4.27 gives errors as format not recognized/supported.

Reproducible: Always
Steps to Reproduce:
1.try to extract (7z e filename) your old .7z archives with 4.27....
2.
3.
Comment 1 Canal Vorfeed 2005-09-24 16:57:48 UTC
Have you fixed it with trivial command before usage ?

printf '#!/bin/sh\nexec /usr/lib/p7zip/7z "$@"\n' > /usr/bin/7z

P.S. Who's idea was to put copy of /usr/lib/p7zip/7z in /usr/bin ? 7z executable
will attempt to find plugins in /usr/bin/Formats and /usr/bin/Codecs (if you'll
call it with full path) or in ./Formats and ./Codecs (if you'll call it without
fill path and executable will be found via PATH). Wrapper-script is in default
installation scheme BY REASON, not since someone does not know about symlinks!
Comment 2 Canal Vorfeed 2005-09-24 17:07:48 UTC
Fix for 7za is more or less the same:

printf '#!/bin/sh\nexec /usr/lib/p7zip/7za "$@"\n' > /usr/bin/7za

But it's not really needed: 7za is stand-alone archiver, the only thing it can
use is SFX module and ebuild does not install that module, so...

P.S. Mentioned for completeness: I do not think it's good idea to use SFX
archives in first place but p7zip 4.27 DOES support them if you are willing -
just not if you've used Gentoo ebuild...
Comment 3 Matteo Azzali (RETIRED) gentoo-dev 2005-09-24 18:13:21 UTC
Yes, that fixed
Comment 4 Radoslaw Stachowiak (RETIRED) gentoo-dev 2005-09-25 02:49:24 UTC
fix commited into portage without version bump.
added sfx module, changed /usr/bin files to wrappers.
thank you guys for Your support.
Comment 5 Canal Vorfeed 2005-09-25 04:24:35 UTC
Ne marche pas:

$ 7z a "test archive.7z" "test file"

7-Zip 4.27 beta  Copyright (c) 1999-2005 Igor Pavlov  2005-09-21
p7zip Version 4.27 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on)

Scanning


archive.7z:  WARNING: No more files
test:  WARNING: No more files
file:  WARNING: No more files


Updating archive test.7z



WARNINGS for files:

archive.7z : No more files
test : No more files
file : No more files
----------------
WARNING: Cannot find 3 files

$ /usr/lib/p7zip/7z a "test archive.7z" "test file"

7-Zip 4.27 beta  Copyright (c) 1999-2005 Igor Pavlov  2005-09-21
p7zip Version 4.27 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on)
Scanning

Creating archive test archive.7z

Compressing  test file

Everything is Ok


Do not EVER use $@ without quotes!
Comment 6 fctk86 2005-10-12 12:18:46 UTC
to Canal Vorfeed:

i have a similar problem to yours, that is i get the "No more files" warnings,
too, but i didn't understand how to fix it. i'm sure i didn't have this kind of
problems before updating to the last version...
Comment 7 Radoslaw Stachowiak (RETIRED) gentoo-dev 2005-10-13 04:23:20 UTC
please do: emerge sync && emerge p7zip
it will solve your problem.