Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: gregg_a_g on November 12, 2011, 11:41:58 AM

Title: unsquashfs xz compression
Post by: gregg_a_g on November 12, 2011, 11:41:58 AM
Is there a reason there is no "XZ" compression/decompression support
in the "squashfs-tools-4.x" extension?  When I use "unsquashfs -v" I get

unsquashfs version 4.2 (2011/02/28)
copyright (C) 2011 Phillip Lougher <phillip@lougher.demon.co.uk>

which I thought had "XZ" included....



Comments:       This extension contains mksquashfs and unsquashfs.
      It uses zlib, no LZO/XZ support is included.
      To make a squashfs image of a directory:
      # mksquashfs directory/ filename.extensionname
      This extension is PPI compatible.
      Defaults to 4096 block size used by TC extensions
Title: Re: unsquashfs xz compression
Post by: gerald_clark on November 12, 2011, 11:49:18 AM
Probably because the TC programmers chose to use zlib with 4K blocks.
Title: Re: unsquashfs xz compression
Post by: gregg_a_g on November 12, 2011, 11:52:33 AM
Thanks, Gerald.  So if I have an archive that I want to "look inside of" that uses "XZ" compression, I'll have to rebuild unsquashfs?
Title: Re: unsquashfs xz compression
Post by: curaga on November 13, 2011, 03:04:40 AM
It would add an unnecessary dep to squashfs-tools (liblzma). Yes, a rebuild with the xz and xz-dev extensions should work.
Title: Re: unsquashfs xz compression
Post by: gregg_a_g on November 14, 2011, 12:35:02 PM
So, I rebuilt squash/unsquash and was able to read the archive I wanted to look at.  What do you mean when you
say it would "add an unnecessary dep to squashfs-tools"?

Thanks again!
Title: Re: unsquashfs xz compression
Post by: curaga on November 14, 2011, 01:58:18 PM
As we only use the deflate compression, having xz as a dep would be unnecessary for most uses.