Menu

#2472 p7zip 16.02's 7za cannot extract lzma2405.7z

open
nobody
None
5
2024-05-17
2024-05-17
No

lzma2405.7z cannot be extracted by the 7za program from p7zip 16.02:

/opt/local/bin/7za x '/opt/local/var/macports/distfiles/lzma/lzma2405.7z' 
7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)
Scanning the drive for archives:
1 file, 1665313 bytes (1627 KiB)
Extracting archive: /opt/local/var/macports/distfiles/lzma/lzma2405.7z
--
Path = /opt/local/var/macports/distfiles/lzma/lzma2405.7z
Type = 7z
Physical Size = 1665313
Headers Size = 10720
Method = 0A LZMA:5m BCJ2
Solid = +
Blocks = 4
ERROR: Unsupported Method : bin/arm64/7zdec.exe
ERROR: Unsupported Method : bin/arm64/7zr.exe
Sub items Errors: 2
Archives with Errors: 1
Sub items Errors: 2

This problem did not happen with lzma2301.7z:

/opt/local/bin/7za x '/opt/local/var/macports/distfiles/lzma/lzma2301.7z' 

7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,8 CPUs x64)

Scanning the drive for archives:
1 file, 1322733 bytes (1292 KiB)

Extracting archive: /opt/local/var/macports/distfiles/lzma/lzma2301.7z
--
Path = /opt/local/var/macports/distfiles/lzma/lzma2301.7z
Type = 7z
Physical Size = 1322733
Headers Size = 10313
Method = LZMA:5m BCJ2
Solid = +
Blocks = 3

Everything is Ok

Files: 703
Size:       6219158
Compressed: 1322733

Discussion

  • Ryan Carsten Schmidt

    I am able to extract if I exclude the bin directory, which is fine since I don't want the pre-compiled binaries:

    7za x lzma2405.7z -x'!bin/*'
    
     
  • Sam Tansy

    Sam Tansy - 2024-05-17

    You should be able to decompress all files but two. Only two files (arm64 executable)

    ERROR: Unsupported Method : bin/arm64/7zdec.exe
    ERROR: Unsupported Method : bin/arm64/7zr.exe

    are compressed with unknown to 7z < ~2023*(?) filter:

    Method = 0A LZMA:3m:lc1:lp2

    Which is in fact ARm64 filter, added recently.

    Method = ARM64 LZMA:3m:lc1:lp2

    All in all, you should be able to decompress all files but those two: `bin/arm64/7zdec.exe', `bin/arm64/7zr.exe'.

    But you're right, it should be able to decompress with all regular tools not only new. After all how do you decompress it in first place when you don't have newest version?


    * don't know when exactly as it's not specified in Readme

     
  • Igor Pavlov

    Igor Pavlov - 2024-05-17

    7-Zip 23.00 or newer version is required to decompress arm64 binaries in that archive file.
    I'll change compression settings for next version of lzma sdk file.

     
    • Sam Tansy

      Sam Tansy - 2024-05-17

      I'll change compression settings for next version of lzma sdk file.

      You can do it now, before anyone picked up on that.
      Here is that with lzma+bcj2, as in earlier releases.

       

Log in to post a comment.

MongoDB Logo MongoDB