7zip broken on x86_64

  • Code
    # 7z l /var/media/USBSTICK32/videos.7z.001
    
    7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
    p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,4 CPUs x64)
    
    Can't load './7z.dll' (./7z.so: cannot open shared object file: No such file or directory)
    • LibreELEC 8.2.5 / kernel 4.11.12
    • System Tools add-on 8.2.107
    • log in, attempt to use '7z' to interact with a multi-part archive as seen above; program fails due to missing library
  • As a workaround use absolute path for 7z and it will work.

    Code
    /storage/.kodi/addons/virtual.system-tools/bin/7z l /var/media/USBSTICK32/videos.7z.001

    Seems environment variable P7ZIP_HOME_DIR could help but seems it doesn't.

    Update: Oh, it is set by function mySplitCommandLine. Patch is needed to overcome this.

    • Official Post

    or use just 7za that works

    Maybe we should just copy 7za and rename it to 7z for the addon.

    7za is a stand-alone executable. 7za handles less archive formats than 7z, but does not need any others.