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

Bug#586549: mktexlsr does not fail on intermittent errors



Package: texlive-base-bin
Version: 2007.dfsg.2-4+lenny2
Severity: minor

It seems that mktexlsr does not exit if some error occurs in executing the
commands. This possibly results in corrupted/incomplete ls-R files, as seen more
than once on alioth.debian.org (hence CC'ed Tollef, alioth admin), e.g., if
you're running out of disk space (on /tmp, most probably):

/etc/cron.daily/tetex-bin:
sed: couldn't write 6 items to stdout: No space left on device

and then

mt@alioth:~$ latex bla.tex 
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./bla.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, croatian, ukrainian, russian, bulgarian, czech, slovak, danish, dut
ch, finnish, basque, french, german, ngerman, ibycus, greek, monogreek, ancient
greek, hungarian, italian, latin, mongolian, norsk, icelandic, interlingua, tur
kish, coptic, romanian, welsh, serbian, slovenian, estonian, esperanto, upperso
rbian, indonesian, polish, portuguese, spanish, catalan, galician, swedish, loa
ded.

! LaTeX Error: File `article.cls' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: cls)

Enter file name: x

(for some very minimal bla.tex)

If I understood the mktexlsr code correctly, something as simple as adding "set
-e" could suffice to make mktexlsr exit/fail early, and the existing ls-R file
would not get overwritten.

Best,
Michael

Attachment: pgphdq3FVgzmg.pgp
Description: PGP signature


Reply to: