[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#182236: sanity check: no dir, /etc/texmf/texmf.cnf



Hi Adam,

You might have noticed that it's spring clean time... Our apologies for
not having answered on this.


Adam DiCarlo <adam@onshored.com> wrote:

> Package: tetex-bin
> Severity: minor
> Version: 2.0.1-1
>
> I was messing with jadetex, creating a /etc/texmf/texmf.d/80JadeTeX
> file but mistakenly put that in /etc/texmf/texmf.cnf/80JadeTeX .
>
> This caused a tetex-bin error during postinst:
>
>   Running initex. This may take some time. ...
>   /usr/bin/texconfig: No $TEXMFMAIN in texmf.cnf file.
>   /usr/bin/texconfig: set TEXMFCNF variable to the directory where
>   teTeX's texmf.cnf file is in.
>
> I recovered by hand with:
>
>   # rm -r /etc/texmf/texmf.cnf
>   # update-texmf
>
> I would suggest that you check if /etc/texmf/texmf.cnf  is a directory
> and remove it in postinst.  Not a big deal -- the bug was really mine
> due to the jadetex brokenness.

There must indeed be a different error behind this: If tetex-bin's
debconf question regarding texmf.cnf is answered yes, then this file was
not even looked at in this version (rather
/var/lib/texmf/web2c/texmf.cnf; since 2.0.2-11 it's in /etc/texmf
regardless of the debconf answer). If, however, the question was
answered "no", then there should have been a _file_ called
/etc/texmf/texmf.cnf. 

Therefore when creating that directory, you must have removed that file
manually before. 

The error message is a bit misleading: It's not that it tried to read a
texmf.cnf file that it found, and didn't find TEXMFMAIN in it. In this
case the real reason is that no texmf.cnf file was found at all.

If the submitter were an some random user, I would now investigate how
he could loose /etc/texmf/texmf.cnf (and be able to create a dir with
that name). But since you said that you were playing around with the
configuration files, probably you removed it during this, right?

In this case, I'd suggest you close. Otherwise I's like to see it
reproduced ;-)

Happy Easter, Frank

-- 
Frank Küster, Biozentrum der Univ. Basel
Abt. Biophysikalische Chemie




Reply to: