# HG changeset patch # User "Yann E. MORIN" # Date 1314289818 -7200 # Node ID 9cb3554bebebb1d69429b2c293850176c8df3d61 # Parent b6d2623c2e68ba5ebedd8383bddb6946dad85a24 configure: check for lzma Some packages are available as LZMA tarballs. LZMA is a relatively recent compression algorithm; it's slightly better than bzip2, but offers much faster decompression. LZMA is now deprecated in favor of XZ, but some packages switched to LZMA when XZ was not yet available, or still in its infancy. Latest XZ (which totaly obsoletes LZMA) offers a backward LZMA- compatible utility, so we can check for 'lzma' nonetheless. Signed-off-by: "Yann E. MORIN" diff -r b6d2623c2e68 -r 9cb3554bebeb configure --- a/configure Fri Aug 26 00:05:20 2011 +0200 +++ b/configure Thu Aug 25 18:30:18 2011 +0200 @@ -504,6 +504,9 @@ has_or_warn prog=xz \ kconfig=has_xzutils \ err="xz-compressed tarballs will not be used" +has_or_warn prog=lzma \ + kconfig=has_lzma \ + err="lzma-compressed tarballs will not be used" has_or_abort prog=readlink has_or_abort prog=objcopy var=objcopy has_or_abort prog=objdump var=objdump diff -r b6d2623c2e68 -r 9cb3554bebeb scripts/functions --- a/scripts/functions Fri Aug 26 00:05:20 2011 +0200 +++ b/scripts/functions Thu Aug 25 18:30:18 2011 +0200 @@ -403,6 +403,9 @@ if [ "${CT_CONFIGURE_has_xzutils}" = "y" ]; then printf ".tar.xz\n" fi + if [ "${CT_CONFIGURE_has_lzma}" = "y" ]; then + printf ".tar.lzma\n" + fi printf ".tar.bz2\n" printf ".tar.gz\n.tgz\n" printf ".tar\n" @@ -757,6 +760,7 @@ tar_opts+=( "-xv" ) case "${ext}" in .tar.xz) CT_DoExecLog FILE tar "${tar_opts[@]}" --use-compress-program=xz -f "${full_file}";; + .tar.lzma) CT_DoExecLog FILE tar "${tar_opts[@]}" --use-compress-program=lzma -f "${full_file}";; .tar.bz2) CT_DoExecLog FILE tar "${tar_opts[@]}" -j -f "${full_file}";; .tar.gz|.tgz) CT_DoExecLog FILE tar "${tar_opts[@]}" -z -f "${full_file}";; .tar) CT_DoExecLog FILE tar "${tar_opts[@]}" -f "${full_file}";;