[Pkg-lyx-devel] Bug#279728: lyx-common: should check before using /usr/lib/texmf/web2c/texmf.cnf

browaeys.alban@wanadoo.fr, 279728@bugs.debian.org browaeys.alban@wanadoo.fr, 279728@bugs.debian.org
Tue, 1 Feb 2005 23:16:13 +0100


Hi

on a cleaned sid tex installation /usr/lib/texmf does not exists.
texmf.cnf is in /etc/texmf/.

first install and reconfigure output:
 dpkg-reconfigure lyx-common
grep: /usr/lib/texmf/web2c/texmf.cnf: Aucun fichier ou r=E9pertoire
de ce type
Running update-lyxrc... done

(no such file or directory sorry for the french messages, i
should have changed the LANG before patching)


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.

tetex-bin is in charge of the migration, so adding a versioned
dependency on tetex-bin should avoid messing if we are in sarge
or other in hte postinst.


Cheers
Alban