Bug#725911: ark: incompatible with latest unrar's output format
Package: ark
Version: 4:4.10.5-1
Severity: normal
Ark suggests either unrar (non-free) or unrar-free in order to correctly
display and unpack RAR archives. Please note that such suggests is
unversioned.
The version of unrar in Wheezy was 1:4.1.4-1 and it worked quite well.
In Jessie, however, unrar transitioned from the 4.x series to the 5.x
series. In the transition, the output format *drastically* changed,
and Ark cannot deal with it anymore.
This is an example of the output of unrar 4.x, with its typical 'tabular'
style (which, by the way, is very similar to the output of unrar-free). I
invoked unrar with the same options as used by Ark itself. The text spans
79 columns, I hope it doesn't get wrapped by some mail processing.
$ unrar-nonfree vt -c- -v RARaddin_48x48.theme.rar
UNRAR 4.10 freeware Copyright (c) 1993-2012 Alexander Roshal
Solid archive RARaddin_48x48.theme.rar
Pathname/Comment
Size Packed Ratio Date Time Attr CRC Meth Ver
Host OS Solid Old
-------------------------------------------------------------------------------
winrar_theme_description.txt
70 76 108% 08-06-05 19:58 .....A. D0B284BF m5e 2.9
Windows No No
AboutLogo.bmp
38472 24320 63% 08-06-05 19:35 .....A. 1084D51A m5e 2.9
Windows Yes No
Toolbar/Add.bmp
9272 3375 36% 08-06-05 19:44 .....A. A5973210 m5e 2.9
Windows Yes No
Toolbar/Benchmark.bmp
9272 4773 51% 08-06-05 19:46 .....A. 1584B1A7 m5e 2.9
Windows Yes No
Toolbar/Comment.bmp
9272 3295 35% 08-06-05 19:47 .....A. 6D155B40 m5e 2.9
Windows Yes No
[...]
-------------------------------------------------------------------------------
37 380626 170427 44%
On the other hand, this is the output of unrar 5.x when invoked on the
same archive and with the same options:
$ unrar-nonfree vt -c- -v RARaddin_48x48.theme.rar
UNRAR 5.00 beta 8 freeware Copyright (c) 1993-2013 Alexander Roshal
Archive: RARaddin_48x48.theme.rar
Details: RAR 4, solid
Name: winrar_theme_description.txt
Type: File
Size: 70
Packed size: 76
Ratio: 108%
mtime: 2005-06-08 19:58,000
Attributes: ..A....
CRC32: D0B284BF
Host OS: Windows
Compression: RAR 3.0(v29) -m5 -md=1M
Name: AboutLogo.bmp
Type: File
Size: 38472
Packed size: 24320
Ratio: 63%
mtime: 2005-06-08 19:35,000
Attributes: ..A....
CRC32: 1084D51A
Host OS: Windows
Compression: RAR 3.0(v29) -m5 -md=1M
Flags: solid
Name: Toolbar/Add.bmp
Type: File
Size: 9272
Packed size: 3375
Ratio: 36%
mtime: 2005-06-08 19:44,000
Attributes: ..A....
CRC32: A5973210
Host OS: Windows
Compression: RAR 3.0(v29) -m5 -md=1M
Flags: solid
Name: Toolbar/Benchmark.bmp
Type: File
Size: 9272
Packed size: 4773
Ratio: 51%
mtime: 2005-06-08 19:46,000
Attributes: ..A....
CRC32: 1584B1A7
Host OS: Windows
Compression: RAR 3.0(v29) -m5 -md=1M
Flags: solid
Name: Toolbar/Comment.bmp
Type: File
Size: 9272
Packed size: 3295
Ratio: 35%
mtime: 2005-06-08 19:47,000
Attributes: ..A....
CRC32: 6D155B40
Host OS: Windows
Compression: RAR 3.0(v29) -m5 -md=1M
Flags: solid
[...]
In both cases I cut the output after the first 5 items, as they should be
enough to show the point.
I don't think that the issue can be solved hacking at the
dependency level, using e.g. versioned suggests: unrar and unrar-free are
managed through the alternatives framework, so there is no guarantee of
which version the user has configured.
Instead, the issue should probably be forwarded upstream, and solved by a
major rewrite of the parser in Ark (and the new parser should be so smart
as to tell apart the three formats: unrar 5.x, unrar 4.x and unrar-free).
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.10.5 (PREEMPT)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Reply to: