Bug#1139505: JadeTeX issue: Undefined control sequence

Lee Garrett <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <a1529755-e481-4a67-8f25-791d3a9f2046__33193.8924778783$1785073639$gmane$org@rocketjump.eu>
Hi,

tig maintainer here, who stumbled over the same issue. I've verified the FTBFS 
for tig is solved by monkeypatching the installed file and running `fmtutil-sys 
--byfmt pdfjadetex`. I tried verifying it rebuilding texlive-extra, but I don't 
really have the extra disk space (> 15 GiB) right now. The patch is this one-liner:

--- a/texmf-dist/tex/jadetex/base/jadetex.ltx
+++ b/texmf-dist/tex/jadetex/base/jadetex.ltx
@@ -1309,6 +1309,7 @@
    \global\@maxdepth\maxdepth
+  \@expl@sys@load@backend@@
    \@kernel@before@begindocument
    \UseOneTimeHook{begindocument}%

\JadeBeginDocument somewhat resembles \document (latex.ltx:9632), and the latter 
has the missing line.

How it was introduced in Debian: hyperref commit "extend \XeTeXLinkBox to 
dvipdfmx backend" added an \AddToHook{begindocument} that reads 
\c_sys_backend_str [0]. This commit ended up in hyperref 7.01q, which in turn 
ended in Debian with texlive-base 2026.20260527-1. The bug in jadetex seems to 
be much, much older (< 2020), it's just the first time it was triggered by a 
package.

[0] 
https://github.com/latex3/hyperref/commit/e6d909444e19efb64a3db5d24231474828f79f51

Greets, Lee
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.