Control: retitle -1 file: Please disable WE32K executables like 3B20 Control: affects -1 - src:lintian
Hi Norbert,
> Please exempt .tfm files from this check, it is incorrect.
The problem in Lintian was not so much that .tfm files were looked at
but that their format, which file (1) misidentified, was associated
with Windows executables. This line in data/cruft/warn-file-type
should read "COM", not "COFF":
source-contains-prebuilt-windows-binary ~~
\b(?:PE(?:32|64)|(?:MS-DOS|COFF)\s executable)\b
I made the change in this commit:
https://salsa.debian.org/lintian/lintian/commit/c7c223d7bb23b82ea0d9a55a11a11318ce539a58
That mitigates the impact on Lintian for the time being. I removed the
bug's 'affects' setting.
The change also means that Lintian may not warn against some COFF
files in sources, although it does not look to be a common issue from
the list of tags on lintian.d.o [2]. Also, none of the omissions will
relate to Microsoft Windows, because the regex still catches PE
executables, which the only COFF format in use there (mostly NT) [3].
Hopefully the magic information will be adjusted before Lintian is
asked to again reject all COFF executables.
> I think the bug might actually be in file(1)
I agree. A solution could be to disable WE32K executables similar to
the way 3B20 executables were commented out. Both formats relate to
the Bellmac 32, an obsolete mainframe architecture discontinued in the
mid-1980s [1]. Both formats are described in magic/Magdir/att3b. I
retitled the bug to reflect that suggestion.
For the record, I attached one of the 274 offending font metrics. (It
is only 500 bytes.) This is how file(1) gets it wrong:
$ file -kr csitt8.tfm
csitt8.tfm: WE32000 COFF executable (TV) not stripped
- TeX font metric data (TeX cs typewriter text)
- data
It may also possible to promote the TeX file format similar to this
entry found online [4]:
#------------------------------------------------------------------------------
# Localstuff: file(1) magic for locally observed files
#
# $Id: Localstuff,v 1.3 1995/01/21 21:09:00 christos Exp $
# Add any locally observed files here. Remember:
# text if readable, executable if runnable binary, data if unreadable.
# XXX promoted from tex so that *.tfm is not mis-identified as mc68k file.
# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data. The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
2 string \000\021 TeX font metric data
>33 string >\0 (%s)
2 string \000\022 TeX font metric data
>33 string >\0 (%s)
Thank you for helping to make Lintian better.
Kind regards,
Felix Lechner
[1] https://en.wikipedia.org/wiki/Bellmac_32
[2] https://lintian.debian.org/tags/source-contains-prebuilt-windows-binary.html
[3] https://en.wikipedia.org/wiki/COFF
[4] https://www.garykessler.net/library/magic.html
csitt8.tfm.xz
Description: application/xz

