Opened 11 years ago

Closed 10 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 11 years ago.
7za x -y %s should expand and force y to any overwrites

Download all attachments as: .zip

Change History (11)

comment:1 Changed 11 years ago by umccullough

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 Changed 11 years ago by umccullough

Oh, this was already ported before for BeOS:

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

comment:3 Changed 11 years ago by korli

Priority: normallow

comment:4 Changed 11 years ago by scottmc

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 Changed 11 years ago by scottmc

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.

Changed 11 years ago by scottmc

Attachment: expander.diff added

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

comment:6 Changed 11 years ago by scottmc

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 Changed 11 years ago by scottmc

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 Changed 10 years ago by scottmc

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 Changed 10 years ago by scottmc

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 Changed 10 years ago by korli

Resolution: fixed
Status: newclosed

Added in hrev28802. Rule added in expander.rules

Note: See TracTickets for help on using tickets.