| Description: |
The compiler (Tcl code generator) in the "fumagic" (fileutil::magic::*) module does not work with current "magic" files.
1. In addition to the expected warnings, there are over 100 errors parsing recent magic files, e.g. those from file-5.47
ftp://ftp.astron.com/pub/file/file-5.47.tar.gz
% ::fileutil::magic::cfront::generate compressed 0 -- /path/to/file-5.47/magic/Magdir
2. The script generated by the command above produces nonsense when used
% ::fileutil::magic::filetype /bin/ls
{{P0-9][0-9]\\.[0-9][0-9][0-9][0-9]\\.[0-9][0-9][0-9][0-9\\.[0-9} NAXOS\ CAD\ System\ file\ from\ version\ followed by over 2000 characters, mostly non-printing.
The expected output (using file-5.34 magic files) is:
{ELF 64-bit LSB {pie executable} x86-64 {version 1} SYSV} {application x-pie-executable} {}
|