Bug#1135409: installation-guide: FTBFS: Error: xelatex compilation failed

Hilmar Preusse <[email protected]> Sat, 2 May 2026 14:48:44 +0200
Newsgroups gmane.linux.debian.devel.tetex
Message-ID <afXyrNKOPE42dNcb__19251.1185699672$1777726300$gmane$org@rasppi3>
Control: forwarded -1 https://github.com/tibortomacs/babel-hungarian/issues/11

On 02.05.26 Samuel Thibault ([email protected]) wrote:

> Santiago Vila, le ven. 01 mai 2026 23:12:48 +0000, a ecrit:
> > During a rebuild of all packages in unstable, this
> > [installation-guide] package failed to build.
> > 
> > Below you will find the last part of the build log (probably the most
> > relevant part, but not necessarily). If required, the full build log
> > is available here:
> > 

Forwarded for now. Many thanks for analysis + report. I'll try to
upload a fix ASAP.

Hilmar

> > https://people.debian.org/~sanvila/build-logs/202605/
> > xelatex failed
> > Unexpected error occured
> > Error: xelatex compilation failed
> > Error: build of pdf failed with error code 1
> 
> Unfortunately, the error is quite well hidden in the logs also hidden by
> the build process :)
> 
> ! Extra \fi.
>   <argument> ... .\magyar@opt@@hdrtitleskip \fi \fi
>                                                     A Debian GNU/Linux 13 tele...
>   l.101 ...x 13 telepítése amd64-{}felépítésű gépre}
> 
>   I'm ignoring this; it doesn't match any \if.
> 
> This is from:
> 
> /usr/share/texlive/texmf-dist/tex/generic/babel-hungarian/magyar.ldf
> 
> \def\@@magyar@setmarks@hu{%
>   \@ifundefined{chapter}{%
>     \def\sectionmark##1{\markboth{\MakeUppercase{\ifnum \c@secnumdepth>\z@%
>       \thesection.\magyar@opt@@hdrtitleskip \fi ##1}}{}}%
>     \def\subsectionmark##1{\markright{\ifnum \c@secnumdepth>\@ne%
>       \thesubsection.\magyar@opt@@hdrtitleskip \fi ##1}}%
>   }{%
>     \def\chaptermark##1{%
>       \markboth{\MakeUppercase{\ifnum \c@secnumdepth>\m@ne%
>         \@@magyar@ifmainmatter%
>           \magyar@huordinal@chapterheaddot%
>           \@chapapp.\magyar@opt@@hdrtitleskip%
>         \fi%
>       \fi ##1}}{}}%
>     \def\sectionmark##1{\markright{\MakeUppercase{\ifnum \c@secnumdepth>\z@%
>       \thesection.\magyar@opt@@hdrtitleskip \fi ##1}}}%
>   }%
> }
> 
> 
> the \fi% is apparently spurious: removing that line makes the build
> succeed, as the attached patch fixes.
> 
>        \thesection.\magyar@opt@@hdrtitleskip \fi ##1}}}%


--
signature.asc (application/pgp-signature, 325 B)
-----BEGIN PGP SIGNATURE-----

iL0EABEKAH0WIQTGd6SdBhZfNVqXZSgB6PhGb/EsMAUCafXyql8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QzY3
N0E0OUQwNjE2NUYzNTVBOTc2NTI4MDFFOEY4NDY2RkYxMkMzMAAKCRAB6PhGb/Es
MJnGAJsFmpWnjhBBWssGkLI8Krn130KNDwCfQonx2j+heUlfYjZ2IKiMdURGBKk=
=P7Pt
-----END PGP SIGNATURE-----