[PATCH] lzip support in busybox

Antonio Diaz Diaz ant_diaz at teleline.es
Fri Dec 14 17:51:23 UTC 2012


package: busybox
version: snapshot 2012-12-14


Hello,

Some users of lzip[1] would love to see lzip support in busybox[2][3].

[1] http://www.nongnu.org/lzip/lzip.html
[2] http://lists.nongnu.org/archive/html/lzip-bug/2012-11/msg00000.html
[3] http://lists.nongnu.org/archive/html/lzip-bug/2012-12/msg00001.html

I personally think that lzip is the most appropiate lzma compressor for 
busybox. The object code of lzip is only 200 bytes larger than the one 
of bzip2, while lunzip is 2.4 times smaller than unxz.

So I wrote a patch (busybox_lzip-6.patch)[4] which adds full lzip/lunzip 
support to busybox, including seamless lz decompression (of tar.lz 
files, etc), but not including tar.lz archive creation.

[4] http://download.savannah.gnu.org/releases/lzip/

A version of the patch for busybox-1.20.2 is also available 
(busybox-1.20.2_lzip-1.patch).

Lzip, lunzip and 'seamless lz decompression' can be individually enabled 
in menuconfig. With all features enabled, this patch adds 12272 bytes to 
busybox on x86 (see busybox_objsizes.diff).

I think this patch follows all the guidelines in new-applet-HOWTO.txt.

It has to be applied to the latest busybox snapshot like this:

   cd busybox
   patch -p1 < <path>/busybox_lzip-6.patch
   chmod a+x testsuite/lunzip.tests testsuite/lzip.tests

See 'README_busybox_lzip_patch' for details about the files added and 
changed by the patch.

Of course, if this patch is accepted, I commit myself to maintain it 
(fix any bugs it may contain, etc).


Best regards,
Antonio.


More information about the busybox mailing list