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

Re: Braindump: Can we get rid of the font-cache-group question?



On Wed, May 24, 2006 at 16:33 +0200, Frank Küster wrote:
> Norbert Preining <preining@logic.at> wrote:
> 
> > mktexnam does not create .texmf-var and falls back to VARTEXFONTS if
> > ~/.texmf-var does not exist.
> 
> Hm, but other directories are created if needed, e.g. TEXMFCONFIG,
> aren't they?  So this seems inconsistent.  

Even TEXMFVAR is created under some circumstances. Look for example at
setupLog() in updmap:

  vartexmf=`kpsewhich -var-value=TEXMFVAR`
  dir=$vartexmf/web2c
  mktexdir "$dir" >/dev/null 2>&1
  log="$dir/$progname.log"
  if test -d "$dir" && test -w "$dir"; then
  [...]

First, this uses the correct kpsewhich call that returns a value even if
the directory does not exist. Second, it tries to create the directory.
IMO something like the code above should also be used in mktexnam.

> And isn't it much more probable that VARTEXFONTS is not writeable, than
> that the user set MT_FEATUES to use TEXMFVAR and doesn't want it?

ACK 
 
> So why not suggest upstream (is that the TeXLive list or tex-k?  I guess
> TeXLive) to change mktexnam?

Strictly speaking tex-k, since this is a bug in kpathsea. But it
probably wouldn't kame much difference, if one reported it to TeX Live.

cheerio
ralf



Reply to: