Menu

Patch adding lzip extract support

2016-10-06
2016-10-06
  • Antonio Diaz Diaz

    Dear p7zip maintainers,

    I have written a patch that adds lzip decompression (extract) support to p7zip.

    http://download-mirror.savannah.gnu.org/releases/lzip/p7zip_16.02_lzip-1.tar.bz2

    Instructions on how to apply the patch are included in the file README_p7zip_lzip_patch.

    I hope that this patch also serves as a base to add extract support of lzip files to 7zip. If it does not, I can write another patch for 7zip.

    Best regards,
    Antonio.

     
  • Sam Tansy

    Sam Tansy - 2017-04-19

    I tried your patch and it works well, resulting 7z extracts .lz files, no problem
    I even manage to use 7z.so with p7z_usr plugin do double commander .

    for completeness you should add this to your patch: (even if it's just a string supplement)

    diff -urdN p7zip_16.02/CPP/7zip/Archive/7z/7zUpdate.cpp p7zip_16.02-lzip/CPP/7zip/Archive/7z/7zUpdate.cpp
    --- p7zip_16.02/CPP/7zip/Archive/7z/7zUpdate.cpp    2016-05-20 08:31:41.000000000 +0000
    +++ p7zip_16.02-lzip/CPP/7zip/Archive/7z/7zUpdate.cpp   2017-04-03 21:46:51.000000000 +0000
    @@ -562,7 +562,7 @@
     }
    
     static const char *g_Exts =
    -  " 7z xz lzma ace arc arj bz tbz bz2 tbz2 cab deb gz tgz ha lha lzh lzo lzx pak rar rpm sit zoo"
    +  " 7z xz lzma ace arc arj bz tbz bz2 tbz2 cab deb gz tgz ha lha lz tlz lzh lzo lzx pak rar rpm sit zoo"
       " zip jar ear war msi"
       " 3gp avi mov mpeg mpg mpe wmv"
       " aac ape fla flac la mp3 m4a mp4 ofr ogg pac ra rm rka shn swa tta wv wma wav"
    
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.