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

Rob Weir Rob Weir <rweir@ertius.org>, 279728@bugs.debian.org
Sun, 6 Mar 2005 16:25:17 +1100


On Tue, Feb 01, 2005 at 11:16:13PM +0100, browaeys.alban@wanadoo.fr said
> Hi
>=20
> on a cleaned sid tex installation /usr/lib/texmf does not exists.
> texmf.cnf is in /etc/texmf/.
>=20
> 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
>=20
> (no such file or directory sorry for the french messages, i
> should have changed the LANG before patching)
>=20
>=20
> 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.
>=20
> 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.

This looks reasonable, thank you for looking into this.

-rob

--=20
Words of the day:                    Defcon Serbian Vince Foster Cohiba war=
fare