libarchive 3.4.0 supports RAR5 extraction, unarr doesn't
libarchive 3.4.0 was just released a few days ago, and among other improvements adds support for rar format v5 decoding and extraction.
This leaves evince in rather a strange situation, as the unarr shim being used for rar support is now preventing evince and evince-thumbnailer from being able to take advantage of the RAR5 (and ZIPX) support in libarchive. Linked against libarchive.so.13
from libarchive 3.4.0, bsdtar -x -f $some_rarv5_archive.cbr
will successfully extract the contents of a RAR5 comic book archive, but passing that same archive to evince
or evince-thumbnailer
results in the same old unarr message.
Is the libarchive rar support (in general terms, including rar v4) still lacking in whatever ways originally prompted the inclusion of unarr in evince, or can rar file extraction now be handed over to it completely?
$ evince-thumbnailer /tmp/myrar5.cbr /tmp/thumb.png
! rar.c:214: RAR 5 format isn't supported
Error loading document: File type RAR archive (application/vnd.rar) is not supported
$ bsdtar -t -f /tmp/myrar5.cbr # With libarchive-3.4.0
Comic Archive/Page-000.jpg
Comic Archive/Page-001.jpg
Comic Archive/Page-002.jpg
Comic Archive/Page-003.jpg
Comic Archive/Page-004.jpg
Comic Archive/Page-005.jpg
Comic Archive/Page-006.jpg
Comic Archive/Page-007.jpg
Comic Archive/Page-008.jpg
Comic Archive/Page-009.jpg
Comic Archive/Page-010.jpg
Comic Archive/Page-011.jpg
Comic Archive/Page-012.jpg
Comic Archive/Page-013.jpg
Comic Archive/Page-014.jpg
Comic Archive/Page-015.jpg
Comic Archive/Page-016.jpg
Comic Archive/Page-017.jpg
Comic Archive/Page-018.jpg
Comic Archive/Page-019.jpg
Comic Archive/Page-020.jpg
Comic Archive/Page-021.jpg
Comic Archive/Page-022.jpg
Comic Archive/Page-023.jpg
Comic Archive