From 0538db038f3cdc352007dacb42454aa1806b8e40 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 6 Oct 2022 15:50:20 +0300 Subject: liblzma: Add .lz (lzip) decompression support (format versions 0 and 1). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Support for format version 0 was removed from lzip 1.18 for some reason. .lz format version 0 files are rare (and old) but some source packages were released in this format, and some people might have personal files in this format too. It's very little extra code to support it along side format version 1 so this commits adds support for both. The Sync Flush marker extentension to the original .lz format version 1 isn't supported. It would require changes to the LZMA decoder itself. Such files are very rare anyway. See the API doc for lzma_lzip_decoder() for more details about the .lz format support. Thanks to Michał Górny for the original patch. --- src/liblzma/common/Makefile.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/liblzma/common/Makefile.inc') diff --git a/src/liblzma/common/Makefile.inc b/src/liblzma/common/Makefile.inc index 5efa13a0..f821571a 100644 --- a/src/liblzma/common/Makefile.inc +++ b/src/liblzma/common/Makefile.inc @@ -94,4 +94,9 @@ if COND_MICROLZMA liblzma_la_SOURCES += \ common/microlzma_decoder.c endif + +if COND_LZIP_DECODER +liblzma_la_SOURCES += \ + common/lzip_decoder.c +endif endif -- cgit v1.2.3