Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#36405 - [texlive-bin] 2013.30973-2 breaks pandoc

Attached to Project: Arch Linux
Opened by Christian Krause (wookietreiber) - Sunday, 04 August 2013, 06:08 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Tuesday, 10 September 2013, 08:34 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Rémy Oudompheng (remyoudompheng)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description: upgraded texlive-bin (2012.0-13 -> 2013.30973-2) breaks texlive

Additional info:
* I'm guessing it has something to with this message during upgrade:

(3/5) installing texlive-bin [###############################################] 100%
>>> texlive: updating the filename database...
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share
/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/t
exmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://../t
exmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf
/web2c.
mktexlsr: Done.


Steps to reproduce:
* I'm getting errors like this:

pdflatex thesis.tex
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Arch Linux)
restricted \write18 enabled.
---! /var/lib/texmf/web2c/pdftex/pdflatex.fmt doesn't match pdftex.pool
(Fatal format file error; I'm stymied)
make: *** [thesis] Error 1

* or like this:

pandoc -o /tmp/my-rpg.pdf --toc --number-sections -V lang=german -V mainlang=german -V fontsize=10pt -V mainfont="Droid Serif" -V sansfont="Droid Sans" -V monofont="Droid Sans Mono Slashed" -V papersize=a4paper --latex-engine=xelatex ~/projects/rpg/arpgt/doc/my-rpg.md
pandoc: Error producing PDF from TeX source.
! Extra \else.
l.48 \else

* both worked before without problems
This task depends upon

Closed by  Rémy Oudompheng (remyoudompheng)
Tuesday, 10 September 2013, 08:34 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed by texlive-core 2013.31589-1
Comment by Григорий (grishnan) - Sunday, 04 August 2013, 06:33 GMT
I have the same problem:
latex file.tex

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Arch Linux)
restricted \write18 enabled.
---! /var/lib/texmf/web2c/pdftex/pdflatex.fmt doesn't match pdftex.pool
(Fatal format file error; I'm stymied)

In addition:
fmtutil-sys --all

/usr/bin/fmtutil: line 395: /usr/share/texmf/texconfig/tcfmgr: No such file or directory
fmtutil: config file `fmtutil.cnf' not found.
Comment by Allan McRae (Allan) - Sunday, 04 August 2013, 06:55 GMT Comment by Karol Błażewicz (karol) - Sunday, 04 August 2013, 07:02 GMT Comment by Christian Krause (wookietreiber) - Sunday, 04 August 2013, 07:07 GMT
I did this -- I even did a complete pacman -Rcs and then reinstall of all installed texlive packages and I still end up with this:

pandoc -o /tmp/my-rpg.pdf --toc --number-sections -V lang=german -V mainlang=german -V fontsize=10pt -V mainfont="Droid Serif" -V sansfont="Droid Sans" -V monofont="Droid Sans Mono Slashed" -V papersize=a4paper --latex-engine=xelatex ~/projects/rpg/arpgt/doc/my-rpg.md
pandoc: Error producing PDF from TeX source.
! Extra \else.
l.48 \else
Comment by Rémy Oudompheng (remyoudompheng) - Sunday, 04 August 2013, 08:24 GMT
Please attach the tex file produced by pandoc.
Comment by Christian Krause (wookietreiber) - Sunday, 04 August 2013, 08:34 GMT
created with

pandoc -o my-rpg.tex my-rpg.md
Comment by Christian Krause (wookietreiber) - Sunday, 04 August 2013, 08:40 GMT
I just discovered what's not working with this:

$ pandoc -o my-rpg.pdf --latex-engine=xelatex my-rpg.md && echo $?
0
$ pandoc -o my-rpg.pdf -V lang=german -V mainlang=german --latex-engine=xelatex my-rpg.md && echo $?
pandoc: Error producing PDF from TeX source.
! Extra \else.
l.45 \else

So apparently setting the language doesn't work.
Comment by Christian Krause (wookietreiber) - Sunday, 04 August 2013, 08:46 GMT
To be more specific, setting lang doesn't work, while setting mainlang still works:

$ pandoc -o my-rpg.pdf -V lang=german --latex-engine=xelatex my-rpg.md && echo $?
pandoc: Error producing PDF from TeX source.
! Extra \else.
l.45 \else

$ pandoc -o my-rpg.pdf -V mainlang=german --latex-engine=xelatex my-rpg.md && echo $?
0

The lang setting is used in the documentclass header of the default.latex template of pandoc:

\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$]{$documentclass$}

Setting both lang and mainlang with the previous texlive version worked just fine. This may lead to the assumption that pandoc 1.11.1-7 is not ready for the new texlive version?
Comment by Christian Krause (wookietreiber) - Sunday, 04 August 2013, 08:53 GMT
However, if I don't supply the lang setting to pandoc I'm getting English text now in my output pdf, like "Contents" for table of contents instead of the German "Inhaltsverzeichnis" and also "Chapter" instead of "Kapitel" if I run it with -V documentclass=report.

This sucks, but I guess this is a pandoc problem rather than a texlive one.
Comment by Григорий (grishnan) - Sunday, 04 August 2013, 10:49 GMT
Thank you Allan McRae and Karol Błażewicz
Comment by c b (cb474) - Tuesday, 13 August 2013, 00:59 GMT
I get the same "warning: kpathsea: configuration file texmf.cnf not found" error when upgrading texlive-bin. The Arch news post Allan and Karol link to does not solve the problem for me, since I'm not getting the fmtutil.cnf error. Uninstalling and reinstalling texlive-bin (with pacman -Rcs) also does not help.

I'm not using texlive for anything and have no other texlive pacakges installed, other than texlive-bin, which is installed as a dependency of mate-document-viewer.
Comment by Rémy Oudompheng (remyoudompheng) - Tuesday, 13 August 2013, 20:57 GMT
cb474: texlive installation does not work without texlive-core. mate's dependencies are just broken, and your issue is unrelated.
Comment by Rémy Oudompheng (remyoudompheng) - Tuesday, 13 August 2013, 21:31 GMT
The attached my-rpg.tex is incomplete, it cannot produce a document by itself.
Please attach the complete file passed to xelatex by pandoc.
Comment by Christian Krause (wookietreiber) - Wednesday, 14 August 2013, 07:30 GMT
The complete file is my-rpg.md -- I only got my-rpg.tex by running pandoc -o my-rpg.tex my-rpg.md.
Comment by Rémy Oudompheng (remyoudompheng) - Monday, 09 September 2013, 10:21 GMT
I suspect that you encountered the same issue as  FS#36802 
Comment by Rémy Oudompheng (remyoudompheng) - Monday, 09 September 2013, 17:47 GMT
I think the polyglossia update in texlive-core 2013.31589-1 will solve the issue. Please try it.
Comment by Christian Krause (wookietreiber) - Tuesday, 10 September 2013, 07:20 GMT
I finally fixed the problem by editing the default latex template, see attached file and do a diff on it with your local one at /usr/share/pandoc-1.11.1/data/templates/default.latex. Unfortunately, I don't have time right now to isolate the change that got it working ...
Comment by Rémy Oudompheng (remyoudompheng) - Tuesday, 10 September 2013, 07:38 GMT
Please restore the original version and tell whether the problem is fixed.
Comment by Christian Krause (wookietreiber) - Tuesday, 10 September 2013, 08:28 GMT
Problem is fixed now. Thank you!

Loading...