Hi Mojca, (and Hans)

Mojca Miklavec wrote:
> 
> Shouldn't local have some precedence over texmf? (Maybe I'm wrong.)

Yes (see below).

> Unrelated - how exactly do I set TEXMFCACHE to be in texmf-cache
> alongside other texmf trees?
> I have tried (I know that this cannot work):
>     TEXMFCACHE = '$TEXROOT/texmf-cache',
> but TEXROOT is probably unknown anyway

It is not (because texmfcnf.lua is read before everything else).
There is SELFAUTOPARENT; I guess that is the only variable already
defined at that point.

   TEXMFCACHE = '$SELFAUTOPARENT/texmf-cache',

should work.

> Maybe it's still respecting the order in
> TEXMFCACHE    = $TMP;$TEMP;$TMPDIR;$TEMPDIR;$HOME;$TEXMFVAR;$VARTEXMF;.

Not that ordering *exactly* because texmf.cnf is not read yet,
but a compiled-in version of that.

> from texmf.cnf, and $TMP doesn't exist on mac, 

Which is odd, to say the least. Where *do* temporary files go on OSX?

> The only problem with mkii: basically works, but texexec --make puts
> formats under texmf-context and the kpathsea doesn't find them for
> some reason. If format is put under texmf-engine/web2c, everything
> works out of the box afterwards (with only path variable being set).

See above.
Note: You may even have to run mktexlsr after format generation,
because you are now totally at the mercy of the kpathsea library.

-------------------------------------------------------------------

Mostly for Hans and mkiv, here is some more information about these
AUTO-things:

It turns out here are actually three variables, each a well-defined
value, single value. Starting from the actual binary location, they are
the relative paths:

   SELFAUTOLOC=.
   SELFAUTODIR=..
   SELFAUTOPARENT=../..

And kpathsea uses these variables in a compile-time default of TEXMFCNF.
My 'kpsewhich' actually tries for texmf.cnf in the following chain:

   /opt/tex/texmf-linux/bin
   /opt/tex/texmf-linux
   /opt/tex
   /opt/tex/texmf-linux/bin/share/texmf-local/web2c
   /opt/tex/texmf-linux    /share/texmf-local/web2c
   /opt/tex                /share/texmf-local/web2c
   /opt/tex/texmf-linux/bin/texmf-local/web2c
   /opt/tex/texmf-linux    /texmf-local/web2c
   /opt/tex                /texmf-local/web2c
   /opt/tex/texmf-linux/bin/share/texmf/web2c
   /opt/tex/texmf-linux    /share/texmf/web2c
   /opt/tex                /share/texmf/web2c
   /opt/tex/texmf-linux/bin/texmf/web2c
   /opt/tex/texmf-linux    /texmf/web2c
   /opt/tex                /texmf/web2c
   .
   /home/fmorel/Build/source/inst/texmf/web2c
   /home/fmorel/Build/source/inst/texmf/web2c

And that is because my build/texk/kpathsea/texmf.cnf has

TEXMFCNF = 
{$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}


The '.' is also useful methinks, but the two '/home/fmorel' ones
are a bit of a fluke: they are added based on the user that ran
autoconf, which is almost certainly irrelevant.


At first glance, kpsewich seems it indeed finds only the first
texmf.cnf, but that may be because I only have one :-)

Best wishes,
Taco


_______________________________________________
dev-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/dev-context

Reply via email to