On Tue, Feb 25, 2014 at 3:55 AM, Thangalin wrote:
> Hi,
>
> 1. Edit .../tex/texmf/web2c/texmfcnf.lua
> 2. Set TEXMFCACHE = "/var/cache/context/texmf-cache"
> 3. Run first-setup.sh to update ConTeXt.

Create a file texmfcnf.lua next to setuptex for example (that is: in
root of the installation) and set the variable there.

That is:

return {
  content = {
    variables = {
      TEXMFCACHE = "/var/cache/context/texmf-cache",
    },
  },
}

> Expected Results
> TEXMFCACHE remains "/var/cache/context/texmf-cache"
>
> Actual Results
> TEXMFCACHE reverts to "$SELFAUTOPARENT/texmf-cache"

No, reverting to the original value is expected. If you want to modify
some variables, just place texmfcnf.lua (or texmf.cnf) somewhere else
and only put the differences there. The allowed locations for
texmfcnf.lua are determined by the variable TEXMFCNF being set in
texk/kpathsea/texmf.cnf in luatex sources:

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

> (c) user should be prompted to overwrite changed configuration values;
> (d) user should be prompted to accept overwriting each new value; or
> (e) a backup of the configuration file should be made, followed by a
> message that the changes have been overwritten and previous values
> archived.

No changes that you make to texmf/, texmf-context/, texmf-modules/ or
texmf-yourplatform/ will ever be preserved. You need to use other
texmf trees for that (like texmf-local for example).

Mojca
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to