Bug 9602 - latex is "stymied"
Summary: latex is "stymied"
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Malo Deniélou
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2013-04-03 11:28 CEST by Chris Denice
Modified: 2014-01-22 19:18 CET (History)
1 user (show)

See Also:
Source RPM: texlive-texmf-20120701-1.mga3.src.rpm
CVE:
Status comment:


Attachments
tex file requiring bbold (155 bytes, application/x-tex)
2013-05-29 16:36 CEST, Chris Denice
Details

Description Chris Denice 2013-04-03 11:28:57 CEST
Description of problem:

Trying to compile any tex file returns the error message:

latex myfile.tex

-->

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Mageia)
 restricted \write18 enabled.
---! /var/lib/texmf/web2c/pdftex/latex.fmt doesn't match pdftex.pool
(Fatal format file error; I'm stymied)


Now I tried to remove and reinstall texlive-texmf and it complains again about some issues with pdftex:

urpmi texlive-texmf:


This is a summary of all `failed' messages:
`pdftex -ini  -jobname=jadetex -progname=jadetex *jadetex.ini' failed
`pdftex -ini  -jobname=pdfjadetex -progname=pdfjadetex *pdfjadetex.ini' failed
`pdftex -ini  -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini' failed
`pdftex -ini  -jobname=pdflatex -progname=pdflatex -translate-file=cp227.tcx *pdflatex.ini' failed
`luatex -ini  -jobname=dvilualatex -progname=dvilualatex dvilualatex.ini' failed
`luatex -ini  -jobname=lualatex -progname=lualatex lualatex.ini' failed
`pdftex -ini  -jobname=mllatex -progname=mllatex -translate-file=cp227.tcx -mltex mllatex.ini' failed
`eptex -ini  -jobname=platex -progname=platex *platex.ini' failed
`euptex -ini  -jobname=uplatex -progname=uplatex *uplatex.ini' failed
`xetex -ini  -jobname=xelatex -progname=xelatex -etex xelatex.ini' failed
`pdftex -ini  -jobname=xmltex -progname=xmltex *xmltex.ini' failed
`pdftex -ini  -jobname=pdfxmltex -progname=pdfxmltex *pdfxmltex.ini' failed



I think it is a release critical as the whole latex package is unusable :-/

Cheers,
Chris.


Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2013-04-06 23:17:47 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => dmorganec

Comment 1 Chris Denice 2013-04-11 14:38:13 CEST
I did not find how to fix all those error messages at installation time, but I did find how to recover a working texlive after such an installtion.

As root, execute:

texhash

This should be added as a post-install scriplet I guess.

Cheers.
Comment 2 Chris Denice 2013-05-29 16:34:13 CEST
Ping?

That was opened on Cauldron before mga3 release and unfortunately this missing "texhash" is still missing I guess in the official release :-/

If you try to install texlive-fontsextra, that will not have any effect on the system because that texhash should be also added somewhere.

Dmorgan, if you're busy, I can have a look to the package if this is ok for you, but I would like someone to confirm that it is not only my system which is screwed (I don't think so, it happens on all my mga computers).

To reproduce, in addition to the above bug (please start from a clean new config without latex and with clean /usr/share/texmf-blabla otherwise it will  fakely seems to work!)

1) try to compile the attached tex file -> fails

2) install texlive-fontsextra.

3) try to compile test.tex -> fails

As root, runs "texhash"

4) try to compile test.tex -> success.


Let me know.
cheers.
Comment 3 Chris Denice 2013-05-29 16:36:48 CEST
Created attachment 4069 [details]
tex file requiring bbold

to compile:
latex test.tex

that guy requires bbold which is in texlive-fontsextra only, but installing that package should not fix the pb due to the infamous missing texhash :)
Please confirm!
Comment 4 Bruno Cornec 2013-07-24 12:46:53 CEST
I can confirm that after upgrading to mga3, I have the same issue trying to generate pdf from docbook (passing through tex).

Using the docbook2pdf command lead to:
Using catalogs: /etc/sgml/sgml-docbook-4.1.cat
Using stylesheet: /users/bruno/pb/projects/mondorescue/delivery/mondo-3.0.420130724124344/docs/en/mondorescue-howto.dsl#pdf
Working on: /users/bruno/pb/projects/mondorescue/delivery/mondo-3.0.420130724124344/docs/en/mondorescue-howto.sgml
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Mageia)
 restricted \write18 enabled.
---! /var/lib/texmf/web2c/pdftex/pdfjadetex.fmt doesn't match pdftex.pool
(Fatal format file error; I'm stymied)
make: *** [mondorescue-howto.pdf] Erreur 9

Running texhash does NOT fix the issue however :-(

So for a docbook context more still need to be done, I'll look at it.

CC: (none) => bruno

Comment 5 Bruno Cornec 2013-07-24 14:29:03 CEST
For my issue, it seems that doing in addition the following solve my issue:
mv /var/lib/texmf/web2c/pdftex/pdfjadetex.fmt /var/lib/texmf/web2c/pdftex/pdfjadetex.fmt.old

So I think that thee are 2 problems, one with texlive, and one with jadetex (maybe in relationship with https://bugs.mageia.org/show_bug.cgi?id=1538#c3), the last one being due to the work around I had to do to workaround a previous bug.
D Morgan 2013-09-18 00:17:37 CEST

Assignee: dmorganec => pierre-malo.denielou

Comment 6 David Walser 2013-10-09 21:58:01 CEST
This also affected the sane package, and I fixed it there the same way I fixed it for torque.  Malo advised me to add texlive-texmf to the BuildRequires for now.  He said there are probably some more files that need to be moved from texlive-texmf to texlive-collection-basic, but he doesn't know which ones yet.
Comment 7 Chris Denice 2013-12-20 19:20:24 CET
Hi guys,
same pb with new texlive, I cannot make it compiling anything on  fresh mageia 4 install...-->

Some errors at installation:

Preparing...                     ############################################################
      1/2: texlive               ############################################################
      2/2: texlive-collection-basic
                                 ############################################################
Use of uninitialized value $fn in concatenation (.) or string at /bin/updmap line 1961.
Use of uninitialized value $fn in concatenation (.) or string at /bin/updmap line 1962.
updmap: open() failed: No such file or directory at /bin/updmap line 1962.
Use of uninitialized value $fn in concatenation (.) or string at /bin/updmap line 1961.
Use of uninitialized value $fn in concatenation (.) or string at /bin/updmap line 1962.
updmap: open() failed: No such file or directory at /bin/updmap line 1962.
Use of uninitialized value $fn in concatenation (.) or string at /bin/updmap line 1961.
Use of uninitialized value $fn in concatenation (.) or string at /bin/updmap line 1962.
updmap: open() failed: No such file or directory at /bin/updmap line 1962.
Use of uninitialized value $orig in concatenation (.) or string at /bin/updmap line 356.
Use of uninitialized value $orig in concatenation (.) or string at /bin/updmap line 356.
Use of uninitialized value $orig in concatenation (.) or string at /bin/updmap




------------------------




latex basicfile.tex 
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Mageia)
 restricted \write18 enabled.

kpathsea: Running mktexfmt latex.fmt
fmtutil: running `pdftex -ini   -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini' ...
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Mageia) (INITEX)
 restricted \write18 enabled.
 (/usr/share/texmf-dist/web2c/cp227.tcx)
entering extended mode
(/usr/share/texmf-dist/tex/latex/latexconfig/latex.ini
! I can't find file `pdftexconfig'.
l.7     \input pdftexconfig
                           
(Press Enter to retry, or Control-D to exit)
Please type another input file name: 
! Emergency stop.
l.7     \input pdftexconfig
                           
No pages of output.
Transcript written on latex.log.
Error: `pdftex -ini  -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini' failed

###############################################################################
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
  /home/chris/.texlive2013/texmf-var/web2c
for details.
###############################################################################

This is a summary of all `failed' messages:
`pdftex -ini  -jobname=latex -progname=latex -translate-file=cp227.tcx *latex.ini' failed
warning: kpathsea: mktexfmt output `This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Mageia) (INITEX)
 restricted \write18 enabled.
 (/usr/share/texmf-dist/web2c/cp227.tcx)
entering extended mode
(/usr/share/texmf-dist/tex/latex/latexconfig/latex.ini
! I can't find file `pdftexconfig'.
l.7     \input pdftexconfig
                           
(Press Enter to retry, or Control-D to exit)
Please type another input file name: 
! Emergency stop.
l.7     \input pdftexconfig
                           
No pages of output.
Transcript written on latex.log.' instead of a filename.
I can't find the format file `latex.fmt'!





.
Comment 8 Chris Denice 2013-12-20 20:08:49 CET
Malo,
I found the pb; it is missing BR:

If you do:

urpmi latex

it triggers only
texlive
texlive-collection-basic

which simply gives a non-functionning latex.

I had to manually install
texlive-dist
texlive-texmf

I think we hit again the mandriva old pb... Trying to split texlive makes it fails :-/
Comment 9 Malo Deniélou 2013-12-21 15:57:43 CET
Hi Chris, the problem is not the split, but the %post script that I messed up.
Can you uninstall texlive-dist and texlive-texmf, and then run (as root) updmap.
Normally latex should work (even if some packages are missing).
Comment 10 Chris Denice 2013-12-22 16:57:13 CET
Hi Malo,
yes, it works! There is not package installed, but a minimal latex file indeed compiles. Well done actually!!!

Feel free to close this bug as soon as your scriptlet work, I'll reopen in case of pb!

cheers,
chris.
Comment 11 Malo Deniélou 2014-01-22 19:18:54 CET
Closing that one.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.