Summary: | Can't create .tar.lz4 nor .tar.zst files. | ||
---|---|---|---|
Product: | [Applications] ark | Reporter: | Tony <jodr666> |
Component: | general | Assignee: | Elvis Angelaccio <elvis.angelaccio> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | meven29, rthomsen6 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Tony
2019-10-17 12:58:17 UTC
libarchive uses zstd and lz4 commands when not linked with those libraries (as it seems to be the case in arch), installing them will probably fix this issue. In the meantime, ark should prevent to select the option in such case. For reference code in libarchive : https://github.com/libarchive/libarchive/blob/3649ed23c6b4392d692580c03b10a611e3eaaa32/libarchive/archive_write_add_filter_zstd.c https://github.com/libarchive/libarchive/blob/3649ed23c6b4392d692580c03b10a611e3eaaa32/libarchive/archive_write_add_filter_lz4.c https://github.com/libarchive/libarchive/blob/master/CMakeLists.txt#L202 Btw what ark -m outputs on your system ? I already have both lz4 and zstd plus liblz4-1 and libzstd1. (In reply to Méven Car from comment #2) > Btw what ark -m outputs on your system ? Icon theme "gnome" not found. application/x-bzip-compressed-tar application/x-lzma-compressed-tar application/x-compressed-tar application/x-cd-image application/x-lz4-compressed-tar application/x-archive application/x-xz-compressed-tar application/x-7z-compressed application/vnd.rar application/x-xar application/x-lzma application/zip application/x-rpm application/x-tar application/x-source-rpm application/vnd.debian.binary-package application/x-lzip-compressed-tar application/x-deb application/x-iso9660-appimage application/x-cpio-compressed application/x-rar application/x-xz application/x-cpio application/x-bzip application/x-sv4crc application/vnd.ms-cab-compressed application/gzip application/x-tarz application/x-bcpio application/x-sv4cpio application/x-zstd-compressed-tar application/x-java-archive How about `/usr/lib/x86_64-linux-gnu/libarchive.so.13` or wherever libarchive.so is on your system ? (In reply to Méven Car from comment #4) > How about `/usr/lib/x86_64-linux-gnu/libarchive.so.13` or wherever > libarchive.so is on your system ? Tumbleweed:~> ls -l /usr/lib64/ | grep libarchive lrwxrwxrwx 1 root root 20 Oct 8 15:11 libarchive.so -> libarchive.so.13.4.0 lrwxrwxrwx 1 root root 20 Oct 8 15:11 libarchive.so.13 -> libarchive.so.13.4.0 -rwxr-xr-x 1 root root 797464 Oct 8 15:11 libarchive.so.13.4.0 Could you run `ldd /usr/lib/x86_64-linux-gnu/libarchive.so.13` and paste the result here ? (In reply to Méven Car from comment #6) > Could you run `ldd /usr/lib/x86_64-linux-gnu/libarchive.so.13` and paste the > result here ? sh-5.0$ ldd /usr/lib64/libarchive.so.13.4.0 linux-vdso.so.1 (0x00007ffde5bc3000) libcrypto.so.1.1 => /usr/lib64/libcrypto.so.1.1 (0x00007fecff6b8000) libacl.so.1 => /usr/lib64/libacl.so.1 (0x00007fecff6a8000) liblzma.so.5 => /usr/lib64/liblzma.so.5 (0x00007fecff668000) libbz2.so.1 => /usr/lib64/libbz2.so.1 (0x00007fecff648000) libz.so.1 => /lib64/libz.so.1 (0x00007fecff628000) libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007fecff4b8000) libc.so.6 => /lib64/libc.so.6 (0x00007fecff2f0000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fecff2e8000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fecff2c0000) libm.so.6 => /lib64/libm.so.6 (0x00007fecff178000) /lib64/ld-linux-x86-64.so.2 (0x00007fecffa78000) Thanks Tony. The output of your last command confirmed my diagnosis. To fix this locally install zstd and/or lz4 binaries on your system. In ark the unavailable compressions will simply not be offered anymore as of https://phabricator.kde.org/D24911 providing better hitting that something is amiss when looking for zstandard, lzma or lz4 compression codecs. > I already have both lz4 and zstd plus If that is the case and compressing still does not work, it might be a bug in libarchive or a missing feature. Unfortunately their documentation is lacking for zstandard and lz4 in https://github.com/libarchive/libarchive/wiki/LibarchiveFormats and looking at their code, it seems like it was intended to work. (In reply to Méven Car from comment #9) > > I already have both lz4 and zstd plus > > If that is the case and compressing still does not work, it might be a bug > in libarchive or a missing feature. > Unfortunately their documentation is lacking for zstandard and lz4 in > https://github.com/libarchive/libarchive/wiki/LibarchiveFormats and looking > at their code, it seems like it was intended to work. That maybe the case. I did manage to compile libarchive from source and ran its different tests, and the ones related to zstd/lz4 all Pass. Yet i have the same issue after installing it even though i can use tar to package zstd/lz4 file OK. Welp new year, new snapshot (20200101) for Tumbleweed and with this one the issue seems fixed, all working OK now. |