[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1076675: marked as done (Broken french locale/babel setting (Undefined control sequence / Missing \begin{document}))



Your message dated Thu, 25 Jul 2024 18:42:53 +0000
with message-id <E1sX3QT-00HQv7-7r@fasolo.debian.org>
and subject line Bug#1076675: fixed in texlive-lang 2024.20240706-2
has caused the Debian Bug report #1076675,
regarding Broken french locale/babel setting (Undefined control sequence / Missing \begin{document})
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
1076675: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076675
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: texlive-latex-base
Version: 2024.20240706-1
Severity: important
Affects: linuxcnc dblatex

I ran into this problem with LinuxCNC, which uses dblatex via a2x to
generate LaTex for PDF creation.  I believe I tracked down the problem
to the texlive-latex-base package.  The problem is that LaTex fail with
French input / locale / babel setting.

This started failing recently, which might match the 2024-07-11 upload.

I reduced the problem to this docbook XML file:

  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
  <?asciidoc-toc?>
  <?asciidoc-numbered?>

  <book lang="fr">
  <chapter id="_introduction_indexterm_primary_introduction_primary_indexterm">
  <title>Introduction</title>
  <simpara>(La version de langue anglaise fait foi)</simpara>
  </chapter>
  </book>

Giving this to dblatex give the following output:

  Build the book set list...
  Warning: program compiled against libxml 212 using older 209
  Build the listings...
  Warning: program compiled against libxml 212 using older 209
  Warning: program compiled against libxml 212 using older 209
  XSLT stylesheets DocBook - LaTeX 2e (0.3.12)
  ===================================================
  Build test.pdf
  pdflatex failed
  test.tex:37: Undefined control sequence \FBCompactItemize@setup.
  test.tex:37: leading text: \setupbabel{fr}
  test.tex:37: Missing \begin{document}.
  test.tex:37: leading text: \setupbabel{fr}
  Unexpected error occured
  Error: pdflatex compilation failed

This happen when using lang="fr", but not when using lang="nb" or
lang="sv".

The generated tex file (extracted using dblatex -d) look like this:

  \makeatletter
  \def\input@path{{/home/pere/src/linuxcnc/docs/src/fr//}}
  \makeatother
  % -----------------------------------------  
  % Autogenerated LaTeX file from XML DocBook  
  % -----------------------------------------  
  %%<params>
  %% document.language fr
  %%</params>
  \documentclass{report}
  \usepackage{ifthen}
  \newboolean{DBKIsBook}
  \setboolean{DBKIsBook}{true}
  \IfFileExists{ifxetex.sty}{%
      \usepackage{ifxetex}%
    }{%
      \newif\ifxetex
      \xetexfalse
    }
    \ifxetex
  \usepackage{fontspec}
  \usepackage{xltxtra}
  \defaultfontfeatures{Mapping=tex-text}
  \setmainfont{DejaVu Serif}
  \setsansfont{DejaVu Sans}
  \setmonofont{DejaVu Sans Mono}
  \else
  \usepackage[T1]{fontenc}
  \usepackage[latin1]{inputenc}
  \fi
  \usepackage{fancybox}
  \usepackage{makeidx}
  \usepackage[french]{babel}
  \usepackage{cmap}
  \usepackage[hyperlink]{docbook}
  \setuplocale{fr}
  \setupbabel{fr}
  \renewcommand{\DBKreleaseinfo}{}
  \setcounter{tocdepth}{5}
  \setcounter{secnumdepth}{5}
  \title{}
  \author{}
  \hypersetup{%
  pdfcreator={DBLaTeX-0.3.12},%
  pdftitle={},%
  pdfauthor={}}
  % ------------------
  % Collaborators
  % ------------------
  \renewcommand{\DBKindexation}{
  \begin{DBKindtable}
  \DBKinditem{\writtenby}{}
  \end{DBKindtable}
  }
  \makeindex
  \makeglossary
  \begin{document}
  \lstsetup
  \frontmatter
  \maketitle
  \tableofcontents
  \mainmatter
  
  % ------- 
  % Chapter 
  % ------- 
  
  \chapter{Introduction}
  \label{_introduction_indexterm_primary_introduction_primary_indexterm}\hyperlabel{_introduction_indexterm_primary_introduction_primary_indexterm}%
  
  (La version de langue anglaise fait foi)
  
  \end{document}

When I run pdflatex on this, I get the familiar errors from latex:

  % echo | pdflatex test.tex
  [...]
  Enhancements to Picture Environment. Version 1.2 - Released June 1, 1986
  ))) (/usr/share/texmf/tex/latex/dblatex/style/dbk_annot.sty))
  ! Undefined control sequence.
  <argument> \FBCompactItemize@setup 
                                     {false}
  l.37 \setupbabel{fr}
                      
  ? 
  ! LaTeX Error: Missing \begin{document}.
  
  See the LaTeX manual or LaTeX Companion for explanation.
  Type  H <return>  for immediate help.
   ...                                              
                                                    
  l.37 \setupbabel{fr}
                      
  ? 
  ! Emergency stop.
   ...                                              
                                                    
  l.37 \setupbabel{fr}
                      
  !  ==> Fatal error occurred, no output PDF file produced!
  Transcript written on test.log.
  %

Using strace I suspect the file
/usr/share/texlive/texmf-dist/tex/generic/babel/locale/fr/babel-fr.ini
is involved, and as this belong to texlive-latex-base I thought it best
to report it as a bug against this package.

Setting severity to important as this affect other packages, without
making them completely useless.

-- 
Happy hacking
Petter Reinholdtsen

--- End Message ---
--- Begin Message ---
Source: texlive-lang
Source-Version: 2024.20240706-2
Done: Hilmar Preuße <hille42@debian.org>

We believe that the bug you reported is fixed in the latest version of
texlive-lang, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1076675@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Hilmar Preuße <hille42@debian.org> (supplier of updated texlive-lang package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 25 Jul 2024 20:04:29 +0200
Source: texlive-lang
Architecture: source
Version: 2024.20240706-2
Distribution: unstable
Urgency: medium
Maintainer: Debian TeX Task Force <debian-tex-maint@lists.debian.org>
Changed-By: Hilmar Preuße <hille42@debian.org>
Closes: 1076675
Changes:
 texlive-lang (2024.20240706-2) unstable; urgency=medium
 .
   * Add patch for french.ldf (Closes: #1076675).
Checksums-Sha1:
 ad276ad0e5e497fe0d9c10986281d9e9f569208c 3533 texlive-lang_2024.20240706-2.dsc
 a2c9f257969e728bacf0de80a28b88cae2b1575d 99436 texlive-lang_2024.20240706-2.debian.tar.xz
 39f59e735cb123172c29ffe30b64009b6a0c41d9 6061 texlive-lang_2024.20240706-2_source.buildinfo
Checksums-Sha256:
 e312e71fae972fb36892b974a1f0146953490c6be8d4d683c2f7b321f8ef287e 3533 texlive-lang_2024.20240706-2.dsc
 a5337a1a5d839ac76f19f75f9ccbd48108097d55fcaaeea7e659a039c482ff8b 99436 texlive-lang_2024.20240706-2.debian.tar.xz
 f1579a61514085c0fa29da1f2e846d3868f73e5f47694558a2fb8baa7de4dc25 6061 texlive-lang_2024.20240706-2_source.buildinfo
Files:
 c46fce0fcea2ec8894c743941bffd663 3533 tex optional texlive-lang_2024.20240706-2.dsc
 e27ca2f99bd4afeff434218896cee217 99436 tex optional texlive-lang_2024.20240706-2.debian.tar.xz
 452f0ec606ca257edbba849637c06e40 6061 tex optional texlive-lang_2024.20240706-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEaXGmC/nkbIhxf16kxiZYRqvgLIsFAmailPpfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDY5
NzFBNjBCRjlFNDZDODg3MTdGNUVBNEM2MjY1ODQ2QUJFMDJDOEIACgkQxiZYRqvg
LIvj5RAAiZgShuaIeCYvpIfiiQugREquufGEp/rL0s3aFD8EKQfqmrg7imyAd1mu
qH9klDFiURUYJRGMysInasVLmnPviFvIxNPJs69xvNNbh8E77mqsIk26rhnq43pg
Uq2MdJprNJPJcs5blbTQXyyWrn5UH+zytaMtioeuAeNoIJ3V7MmTH2rbGYgiSRM1
mESPIbaoqA2/S6dmKZgZkNQIWp5LYFnoC2X9uDBCfS0INNSEpD/PmIYYAJToLyC5
1jzG82PBntuA2Ob6O2fVGMCSsi6rktbMxrPN0AiA+vog0IbWfe7BeJ4jWjvuciSg
EmRAyCyEzF2UzWTISoX/+XsE5Lf71WGvCeaQ3AmGZtvrmsKJxqGUT0HLrrEg6w8V
LTix5pydYFf3I1FYzdGvXPmOqZvsNPFgUI2cYT6Ws7jZEWzFLUbgcQpMD8AC32M3
qfPR1pvegcXKMe4yRwYlp6+Ln68VSh5jnjutlEMxBOHJSrCthX/lfkRJ+kMj9pix
L5g4N9dOVAMDqriNBg5bFc/YmhnXRjan7LSI/ziDROdXNai3jwQBax6pejUG8ZuY
4LKrvZkP34tcxY2Yr1YokprVcAUNC16DGi+rPyyXR/SPTV1RwPL0bugvUdYbRJRf
Ys5ok6oZhOOk01S1cKEfprE/AsW7qGL/0ibKUW5mcigOFhTTOQk=
=sPAa
-----END PGP SIGNATURE-----

Attachment: pgpkTRYyOFEZC.pgp
Description: PGP signature


--- End Message ---

Reply to: