Control: reassign -1 texlive-lang-european
Control: affects -1 + installation-guide
Control: retitle -1 if/fi typo in magyar.ldf
Control: tags -1 + patch

Hello,

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:
> 
> 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.

Samuel
--- ./texmf-dist/tex/generic/babel-hungarian/magyar.ldf.original        
2026-05-02 13:21:15.751343618 +0200
+++ ./texmf-dist/tex/generic/babel-hungarian/magyar.ldf 2026-05-02 
13:21:16.661339309 +0200
@@ -5196,7 +5196,6 @@
         \@@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}}}%

Reply via email to