There is a nice C based 7zip de-archiver example in the 7zip SDK.  I've
got a little program, but it just strips the LZMA compressed block out of
the archive, but doesn't get a TOC or anything more useful for IPS; if I
recall correctly the example can generate a TOC, and actually do
extraction.

The main difficulty with 7zip (from my perspective) is the
compression which is C++ and quite entangled in many C++ dependencies.
Most of the 7zip (de)archiving and decompression is at least in more
straightforward C.

                                                                -Clay

On Wed, 6 Feb 2008, Danek Duvall wrote:

> > On Sun, Feb 03, 2008 at 11:34:34PM -0700, Clay Baenziger wrote:
> >
> > > Working with the LZMA compression code from 7zip a lot right now, I can
> > > attest that the decompression code is pretty easy to mold C code. The
> > > compression code is a much larger chunk of C++ code, but I might have a C
> > > based port soon too.
>
> Hm.  It also occurs to me that being able to pull apart 7z archives would
> also be immensely useful (since our svr4 packages are intended to be
> archived using 7z within the next couple of months).
>
> Danek
>
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to