Bug#207742: tetex-extra: shoudldn't mktexlsr run unconditionally during configure?
On 29.08.03 Guido Guenther (agx@debian.org) wrote:
Hi,
> I just installed the tetex-extra but subfigure.sty couldn't be found
> until I ran mktexlsr. This is due to the fact that the test:
>
> if [ -e $TEXCONFIG_P ] && [ -e /etc/texmf/fmtutil.cnf ] && \
> fgrep -q TEXMFMAIN /usr/share/texmf/web2c/texmf.cnf 2> /dev/null
> then
>
> fails on my system since fmtutil.cnf doesn't exist,
>
Well, it's just looking for it at the wrong place, cause in case of
automatic generation of it it's located in /var/lib/texmf/web2c.
OK, two cases:
1. automatic generation -> /usr/share/texmf/web2c/ is a soft link to
/var/lib/texmf/web2c . fmtutil.cnf exists there.
2. no automatic generation -> /etc/texmf/texmf.cnf exists and
/var/lib/texmf/web2c/fmtutil.cnf is a softlink to it. The softlink
/usr/share/texmf/web2c/ -> /var/lib/texmf/web2c/ exists too.
So we should look for the existance of
/var/lib/texmf/web2c/fmtutil.cnf instead of /etc/texmf/fmtutil.cnf .
> why isn't mktexlsr run in that case?
>
Well, cause after that check we also call fmtutil, which needs
fmtutil.cnf . That should have failed to, you don't have format files
for metapost, omega, lambda...
H.
--
sigmentation fault
Reply to: