latex3 / luaotfload

OpenType font loader for LuaTeX
Other
56 stars 6 forks source link

luaotfload-tool --diagnose=files fails due to missing mktests mkcharacters mkglyphlist mkimport mkstatus #281

Open cfr42 opened 2 months ago

cfr42 commented 2 months ago

Ref.: https://tex.stackexchange.com/q/715533/ (but the question describes multiple luaotfload-tool bugs) and Max Chernoff's comment.

$ luaotfload-tool --diagnose=files
luaotfload | diagnose : ================ verify files =================
luaotfload | diagnose : Luaotfload revision 73dac18445938c6c54118045944817c4e8c59a1c.
luaotfload | diagnose : Committed by Marcel Fabian Krüger <tex@2krueger.de>.
luaotfload | diagnose : Timestamp 2024-02-28 06:18:10 +0100.
luaotfload | diagnose : Testing 88 files for integrity.
<successful lines omitted>
luaotfload | diagnose : FAILED: file mktests missing.
luaotfload | diagnose : FAILED: file mkstatus missing.
luaotfload | diagnose : FAILED: file mkcharacters missing.
luaotfload | diagnose : FAILED: file mkglyphlist missing.
luaotfload | diagnose : FAILED: file mkimport missing.
<successful lines omitted>
luaotfload | diagnose : ===============================================
WARNING
===============================================

The diagnostic detected 5 errors.

This version of luaotfload may have been
tampered with. Modified versions of the
luaotfload source are unsupported. Read the log
carefully and get a clean version from CTAN or
github:

× http://www.ctan.org/pkg/luaotfload
× https://github.com/latex3/luaotfload/releases

If you are uncertain as to how to proceed, then
ask on the lualatex mailing list:

http://www.tug.org/mailman/listinfo/lualatex-dev

===============================================

2020 history

This was reported in https://github.com/latex3/luaotfload/issues/168 and was supposed to be fixed by https://github.com/latex3/luaotfload/commit/6d746704e716941f9cf915346eb78d40a5759f2a, so I'm not sure if this is a regression or if that commit only ever fixed the other bug, since the original report described two.

Version details

$ luaotfload-tool --version

luaotfload-tool:
Luaotfload font management and diagnostic utility.
License: GNU GPL v2.0.
Report problems to <https://github.com/latex3/luaotfload/issues>

luaotfload-tool version: "3.28"
Revision: nil
Lua interpreter: stock; version "Lua 5.3"
Luatex version: 1.18
Platform: type=unix name=linux
+  machine: x86_64
+ nodename: MyComputer
+  release: 6.8.2-arch2-1
+  sysname: Linux
+  version: #1 SMP PREEMPT_DYNAMIC Thu, 28 Mar 2024 17:06:35 +0000
Index: version=6 created="2024-03-26 19:18:36" modified="2024-04-05 01:10:24"

and

$ tlmgr info luaotfload
package:     luaotfload
category:    Package
shortdesc:   OpenType 'loader' for Plain TeX and LaTeX
longdesc:    The package adopts the TrueType/OpenType Font loader code provided in ConTeXt, and adapts it to use in Plain TeX and LaTeX. It works under LuaLaTeX only.
installed:   Yes
revision:    70232
sizes:       src: 25k, doc: 1105k, run: 7665k, bin: 5k
relocatable: No
cat-version: 3.28
cat-license: gpl2
cat-topics:  font-use luatex
cat-contact-support: https://github.com/latex3/luaotfload/issues
cat-contact-repository: https://github.com/latex3/luaotfload
collection:  collection-luatex
zauguin commented 2 months ago

Resolved in dev by excluding these files from the tests.

This leaved the question if --diagnose=files is useful at all. There are some edge cases where it might help identifying issues, but modified files don't seem that common to require special tooling support.