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

Bug#862497: texlive-lang-portuguese: Extra \endcsname



Package: texlive-lang-portuguese
Version: 2016.20170123-5
Severity: normal

I first encountered this bug trying to solve #660298 for my
debian-reference to build pdf.  Although all other languages build
including French, Chinese, ... Portuguese didn't build.

Careful tracing of the bug lead me to the following minimal source case
and root cause pf the problem seems to be this texlive-lang-portuguese
package.  I suspect the file:
  /usr/share/texlive/texmf-dist/tex/generic/babel-portuges/portuges.ldf
Especially lines after:
  \expandafter\ifx\csname l@\CurrentOption\endcsname\relax
This needs to be checked for interfering with the proper operation.

##################################
minimal input file to reproduce this bug:
  pt.tex in attached babel-pt.tar.xz

Steps:
* Install texlive-lang-all texlive-latex-base
* Extract tarball
* Execute make in the extracted directory
* If get stuck, use ^D as usual to proceed.
* get the full comparative build and check *.diff *.log

Highlight of bug:

Failed build leave pt.log and it should show:
| ...
| \tf@lot=\write11
| \openout11 = `pt.lot'.
| 
| Package babel Info: Redefining portuges shorthand "|
| (babel)             in language  on input line 63.
| Package babel Info: Redefining portuges shorthand "|
| (babel)             in language  on input line 63.
|  [4
| 
| ]
| Cap\'{\i }tulo 1.
| Package babel Info: Redefining portuges shorthand "|
| (babel)             in language  on input line 69.
| LaTeX Font Info:    Font shape `T1/ptm/bx/n' in size <10> not available
| (Font)              Font shape `T1/ptm/b/n' tried instead on input line 83.
| ! Extra \endcsname.
| \language@active@arg" ...@"@\string #1@\endcsname
|                                                   \fi
| l.100 \caption{List "\texttt{ls -{}\penalty0 l}"}

Comparative situation:
* The source tex differences should be available as *.diff after the build.
* The slightly modified tex for Portuguese with babel has no problem. (pt1.tex)
* The same tex for French with babel has no problem. (fr.tex)
* The same tex for English without babel has no problem. (en.tex)

Note:
I originally faced problem under xelatex but as shown here, latex also
suffer.  It seems babel problem.

######################################
 List of ls-R files

-rw-r--r-- 1 root root 1860 May 14 00:23 /var/lib/texmf/ls-R
lrwxrwxrwx 1 root root 29 Jan 17 11:45 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 31 Mar  4 15:53 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
lrwxrwxrwx 1 root root 31 Mar  4 15:53 /usr/share/texlive/texmf-dist/ls-R -> /var/lib/texmf/ls-R-TEXLIVEDIST
######################################
 Config files
-rw-r--r-- 1 root root 475 Jan 29 01:31 /etc/texmf/web2c/texmf.cnf
lrwxrwxrwx 1 root root 33 Mar  4 15:53 /usr/share/texmf/web2c/fmtutil.cnf -> /var/lib/texmf/fmtutil.cnf-DEBIAN
lrwxrwxrwx 1 root root 32 Mar  4 15:53 /usr/share/texmf/web2c/updmap.cfg -> /var/lib/texmf/updmap.cfg-DEBIAN
-rw-r--r-- 1 root root 5041 May 14 00:22 /var/lib/texmf/tex/generic/config/language.dat
######################################
 Files in /etc/texmf/web2c/
total 8
-rw-r--r-- 1 root root 283 Oct 14  2015 mktex.cnf
-rw-r--r-- 1 root root 475 Jan 29 01:31 texmf.cnf
######################################
 md5sums of texmf.d
ca40c66f144b4bafc3e59a2dd32ecb9c  /etc/texmf/texmf.d/00debian.cnf

-- System Information:
Debian Release: 9.0
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing'), (98, 'experimental'), (98, 'unstable')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.10.0-rc6-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages texlive-lang-portuguese depends on:
ii  tex-common    6.06
ii  texlive-base  2016.20170123-5

texlive-lang-portuguese recommends no packages.

texlive-lang-portuguese suggests no packages.

Versions of packages tex-common depends on:
ii  dpkg  1.18.23
ii  ucf   3.0036

Versions of packages tex-common suggests:
ii  debhelper  10.2.5

Versions of packages texlive-lang-portuguese is related to:
ii  tex-common        6.06
ii  texlive-binaries  2016.20160513.41080.dfsg-2

-- no debconf information

Attachment: babel-pt.tar.xz
Description: application/xz


Reply to: