Opened 12 years ago

Closed 11 years ago

#2014 closed enhancement (fixed)

Add 7zip

Reported by: scottmc Owned by: axeld
Priority: low Milestone: R1
Component: - General Version: R1/pre-alpha1
Keywords: Cc: umccullough
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Haiku was zip, unrar, bzip2 (and others?), how about adding in 7zip open source library as well. www.7zip.org

Attachments (1)

expander.diff (717 bytes ) - added by scottmc 12 years ago.
7za x -y %s should expand and force y to any overwrites

Download all attachments as: .zip

Change History (11)

comment:1 by umccullough, 12 years ago

Cc: umccullough added

FWIW, the 7zip application from http://www.7-zip.org is my archiver of choice on Windows - and the .7z format is quite compact :)

comment:2 by umccullough, 12 years ago

Oh, this was already ported before for BeOS:

http://www.bebits.com/app/4079

comment:3 by korli, 12 years ago

Priority: normallow

comment:4 by scottmc, 12 years ago

I've done some preliminary testing and p7zip seems to compile and run ok on Haiku. I still need to do some more testing. I'm attaching a diff file to enable Expander to handle expanding .7z files once the 7za file is added to bin. It'll probably also need a nice icon to... I used the mime type listed in wikipedia.

comment:5 by scottmc, 12 years ago

Here's a link to the binary for 7zip, only for gcc2 Haiku: http://www.bedrivers.com/p7zip-haiku-4_57.zip Let me know and any bugs you might find with this.

by scottmc, 12 years ago

Attachment: expander.diff added

7za x -y %s should expand and force y to any overwrites

comment:6 by scottmc, 12 years ago

Here's the detailed, step-by-step instructions for getting and making 7za, the GPL'd command line app for 7zip:

wget http://internap.dl.sourceforge.net/sourceforge/p7zip/p7zip_4.57_src_all.tar.bz2 bunzip2 p7zip_4.57_src_all.tar.bz2 tar -xf p7zip_4.57_src_all.tar cd p7zip_4.57 cp makefile.beos makefile.machine make

then copy the resulting 7za file to your bin directory, it's in p7zip_4.57/bin.

comment:7 by scottmc, 12 years ago

7za fails when run on vmware in dual CPU mode. The 7zip maintainer is going to look into it when he has time.

comment:8 by scottmc, 11 years ago

I just built and ran the "make test" with p7zip 4.61 beta which came out a few days ago. I've posted a new binary for it oh HaikuPorts under downloads. Here's the portlog page for it: http://ports.haiku-files.org/wiki/app-arch/p7zip/4.61/1 Note that I will soon be testing it on a dual CPU PC to see if the above issue has been fixed or not.

comment:9 by scottmc, 11 years ago

I have now tested this on an AMD Athlon X2 and it still passed all "make test" tests. So if the above patch is applied to expander and the p7zip binary is loaded you can now use expander to open .7z files.

comment:10 by korli, 11 years ago

Resolution: fixed
Status: newclosed

Added in hrev28802. Rule added in expander.rules

Note: See TracTickets for help on using tickets.