WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: unsquashfs xz compression  (Read 4737 times)

Offline gregg_a_g

  • Newbie
  • *
  • Posts: 28
unsquashfs xz compression
« 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

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: unsquashfs xz compression
« Reply #1 on: November 12, 2011, 11:49:18 AM »
Probably because the TC programmers chose to use zlib with 4K blocks.

Offline gregg_a_g

  • Newbie
  • *
  • Posts: 28
Re: unsquashfs xz compression
« Reply #2 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?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: unsquashfs xz compression
« Reply #3 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.
The only barriers that can stop you are the ones you create yourself.

Offline gregg_a_g

  • Newbie
  • *
  • Posts: 28
Re: unsquashfs xz compression
« Reply #4 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!

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: unsquashfs xz compression
« Reply #5 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.
The only barriers that can stop you are the ones you create yourself.