Bug#867673: [checks/cruft] Microsoft help files can be built using free software
Hi,
> * Lintian currently says that "There is Linux software to read them and
> an incomplete FreePascal related project to create them", but Halibut
> >= 1.2 can create them, so the implication that there is no complete
> free software to create them should be corrected.
I've changed that here:
https://anonscm.debian.org/git/lintian/lintian.git/commit/?id=c532f80594b387f7e26d30cf7246055b07e4ef50
> * The cruft check should exclude files generated by such free software.
> As a first pass I'd suggest excluding files that contain the string
> "Halibut,".
… but unfortunately I can't see a tidy way of doing this using the
./data/cruft/warn-file-type machinery.
Any ideas?
My quick-and-dirty testcase is:
--- a/t/tests/cruft-general-upstream/pre_upstream
+++ b/t/tests/cruft-general-upstream/pre_upstream
@@ -38,6 +38,9 @@ printf
"MZ\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0
# use old magic \001\000\000\000 part is optional but needed with old file
printf "ITSF\003\000\000\000\140\000\000\000\001\000\000\000" > "${dir}/fake-help-file.chm"
+# .chm files with "Halibut" are probably generated by free software
+printf "ITSF\003\000\000\000\140\000\000\000\001\000\000\000Halibut," > "${dir}/fake-help-file-halibut.chm"
+
printf "CWS\011 x" > "${dir}/fakeflash.swf"
echo '//comment' > "${dir}/fake.min.js"
# Make python generate python bytecode files
Regards,
--
,''`.
: :' : Chris Lamb, Debian Project Leader
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Reply to: