Google-Apps
Hauptmenü

"On the beauty of libarchive"

7 Comments -

1 – 7 of 7
Blogger Juanjo Marín said...

I am working on the evince backend to use libarchive

19 December 2013 at 14:19

Blogger Bastien Nocera said...

Juanjo: Success! :)

19 December 2013 at 14:23

Blogger Evan Nemerson said...

I hope this isn't inappropriate (feel free to delete this comment if you think it is), but... If the compressed files are just single files (like bz2, gz, xz, etc.) or streams, not archives, I've been working on something which may be interesting: Squash.

Squash doesn't deal with archives because that's libarchive's role, but for people who don't need that capability it might be a good fit, and the API tends to be much simpler than libarchive. I'm also planning on adding a integration library which will allow people to use GIO, just like GZlibCompressor/GZlibDecompressor.

19 December 2013 at 20:27

Blogger Stefan Sauer said...

Having gio support for this would be nice. I use libgsf in buzztrax to read/write zip files right now.

20 December 2013 at 12:20

Blogger Benjamin said...

gvfs supports libarchive. The problem with libarchive is that it sucks (used to suck? I wrote the gvfs archive backend years ago) a lot for writing archives as the only action it supported with decent API was creating archives. Which is why the rchive support in gvfs is read-only.

Also, you get the pain of yet another API (with lots of enums) for permissions, etags and whatnot. And marshalling all of that for gio sounds very painful to me.

21 December 2013 at 02:09

Blogger Bastien Nocera said...

Benjamin: The gvfs libarchive support is pretty useless for applications. There's no way to easily mount an archive (even if you manage to figure out the URL you should be using), and "foo.epub" mounts popping up in the file manager is less than useful (especially if I open my e-Books folder, huh :).

gvfs archive support is for end-users navigating their files. What I was requesting was a GLib-ish wrapper around the library.

21 December 2013 at 12:34

Blogger Unknown said...

"Boxes could use libarchive to extract files from ISO images for its auto-installer"

I have written a small wrapper for libarchive for Boxes. You can read more about it here:
http://wordpress.schuirmann.eu/2014/05/libarchive-goes-vala/

I hope this helps someone!

16 May 2014 at 15:43

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot