[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
Fri, 5 Nov 2004 10:39:23 +1100


package lyx-common
retitle 279728 Use the correct location for web2c/texmf.cnf
retitle 279130 Use the correct location for web2c/texmf.cnf
severity 279130 normal
merge 279728 279130
thanks mate

On Thu, Nov 04, 2004 at 10:58:33PM +0100, Javier Fern=E1ndez-Sanguino Pe=F1=
a said
> Lyx-common postinst does not verify that /usr/lib/texmf/web2c/texmf.cnf=
=20
> exists before grepping it, as a consequence:
>=20
> $ LC_ALL=3DC sh  lyx-common.postinst.orig
> grep: /usr/lib/texmf/web2c/texmf.cnf: No such file or directory
>=20
> The script is not using -e (maybe it should) so upgrades are not aborted,=
=20
> but this situation is easily solvable.
>=20
> The attached patch should fix this, please apply it to the sources.
>=20
> Thanks
>=20
> Javier

> --- lyx-common.postinst.orig	2004-11-04 22:54:35.000000000 +0100
> +++ lyx-common.postinst	2004-11-04 22:55:30.000000000 +0100
> @@ -17,7 +17,7 @@
>  fi
> =20
>  # Package maintainer's commands follow:
> -if [ -e /usr/bin/texconfig ] && fgrep -q TEXMFMAIN /usr/lib/texmf/web2c/=
texmf.cnf; then
> +if [ -e /usr/bin/texconfig ] && [ -f /usr/lib/texmf/web2c/texmf.cnf ] &&=
 fgrep -q TEXMFMAIN /usr/lib/texmf/web2c/texmf.cnf; then
>       /usr/bin/texhash
>  fi
>  echo -n "Running update-lyxrc... "

Thanks, Javier.

--=20
Words of the day:   bemd SRI Albright CNCIS militia MILSATCOM kilo class Be=
cker