Skip to Content.
Sympa Menu

sm-grimoire-bugs - [SM-Grimoire-Bugs] [Bug 15918] New: latex/texlive installs broken latex / pdflatex scripts

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 15918] New: latex/texlive installs broken latex / pdflatex scripts
  • Date: 11 Dec 2010 10:05:50 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=15918

Summary: latex/texlive installs broken latex / pdflatex scripts
Product: Codex
Version: test grimoire
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Unknown
AssignedTo: sm-grimoire-bugs AT lists.ibiblio.org
ReportedBy: sobukus AT sourcemage.org


We just copy those from upstream, nevertheless they're broken:

/usr/bin/latex
/usr/bin/pdflatex

There are two issues:
1. /usr/bin/latex is broken as it calls plain tex which fails because the fmt
file is done using pdftex. Looks like that:

fmtutil: /home/thomas/.texlive2009/texmf-var/web2c/pdftex/latex.fmt installed.
---! /home/thomas/.texlive2009/texmf-var/web2c/pdftex/latex.fmt was written
by
pdftex
(Fatal format file error; I'm stymied)

This is fixed by calling pdftex instead of plain tex from /usr/bin/latex --
pdftex has been behind the 'latex' call in my old tetex install, too, as I
recall. DVI files are created from my sources as I expect with that change.
The fmtutil call always uses pdftex... perhaps one could hack it to use the
plain old tex instead, but I don't see the point: pdftex has been used behind
latex for a long time, even when not creating pdf output.

2. The check for presence of fmt files is broken; so every time a user runs
pdflatex or latex, fmtutil is run to create those (that). That takes time!
This is fixed by giving the kpsewhich call the name of the engine to look for.

Short, those are the fixed lines for the wrapper scripts (too lazy to attach
those tiny scripts). I would like to discuss those changes to finally put that
into the texlive spell. One could also ask upstream why they provide them in
the non-working form -- but then, we aren't using the default build?!

The latex script:
#!/bin/sh
test -f "`kpsewhich -engine pdftex latex.fmt`" || fmtutil --byfmt latex
exec pdftex -fmt=latex "$@"

The pdflatex script:
#!/bin/sh
test -f "`kpsewhich -engine pdftex pdflatex.fmt`" || fmtutil --byfmt pdflatex
exec pdftex -fmt=pdflatex -progname=pdflatex "$@"

Comments on those? For example ... I have the suspicion, that both pdftex
calls
should just use -progname ... as that implies -fmt.

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.




Archive powered by MHonArc 2.6.24.

Top of Page