[Pkg-lyx-devel] Bug#269772: lyx: TeX classes missing

browaeys.alban@wanadoo.fr, 269772@bugs.debian.org browaeys.alban@wanadoo.fr, 269772@bugs.debian.org
Tue, 1 Feb 2005 23:55:54 +0100


Hi

do you still have the program ?
If it was your first install of lyx and maybe tetex-bin the
following may help.


tetex-bin version 2.0.2-17 change the place where some tex files
are generated :
tetex-bin (2.0.2-17) unstable; urgency=high

  * Corrected bugnumber in the fourth changelog entry of last
  * version -
    bug was closed manually [frank].
  * Move xdvi.cfg to /etc/texmf/ (closes: #234921).
  * We now use e-TeX (and pdfe-TeX) as our basic engines for
  * (pdf)LaTeX.
    See NEWS.Debian for details. Many thanks to Hilmar for this.
    [frank]
  * Enable VARTEXMF; updmap now puts the generated map files
  * there
    (closes: #213310) [frank].

VARTEXMF is /var/lib/texmf . it seems previous tex had
/usr/lib/texmf but it is not in the unofficial tex  policy. As
lyx look there (/usr/lib) for the texmf.cnf file which is
required for it to find the tex classes (articles, ...)

My guess is that only affect new users. tetex-bin does not remove
those dir if they already exists. Only their contents may not be
updated. So now that you have installed an old version the
problem won't happen anymore.

If so it is a duplicate of:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=279728
"Use the correct location for web2c/texmf.cnf"


I fixed the issue by replacing :
 if [ -e /usr/bin/texconfig ] && fgrep -q TEXMFMAIN
/usr/lib/texmf/web2c/texmf.cnf; then
by
 if [ -e /usr/bin/texconfig ] && fgrep -q TEXMFMAIN
/etc/texmf/texmf.cnf; then
in lyx-common postinst.


Cheers
Alban