setting up context/luatex, luatex caches
![](https://secure.gravatar.com/avatar/1aaa8171e46f2c29d4441fa99a7fc634.jpg?s=120&d=mm&r=g)
Hi all!
Before uploading context 2007.09.28 I want to straigthen some things out
wrt luatex etc, the least is that I want to add a README so that users
can set up context/luatex themselves.
Now my questions:
- Is it possible to have MORE THAN ONE luatex cache directory? Something
like
TEXMFCACHE=/var/lib/texmf/systexmf-cache;$HOME/.texmf-var/texmfcache
such that
/v/l/t/systexmf-cache contains the cached trees for the system
trees (/usr/share/texmf{,-texlive}, ...)
$HOME/.texmf-var/texmfcache contains the cache of the users
home directory texmf tree
- Is it possible to tell luatools to update only some (or only one)
texmf tree? Something like
luatools --generate /usr/share/texmf-texlive
?
- Is there an obvious objection to replace luatex binary with a script
which contains the necessary TEXMFCNF settings, something like
if [ -z "$TEXMFCNF" ] ; then
TEXMFCNF=/usr/share/texmf/web2c
export TEXMFCNF
fi
luatex.bin $*
? Reason: First is that we know where the texmf.cnf is and we don't
have to urge the user to set the env var. Furthermore a user CAN
override the TEXMFCNF settings if he wants to.
Thanks a lot, and sorry for buggering you with these questions, but I
want to get a decent system for Debian.
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining
![](https://secure.gravatar.com/avatar/a0f6b595b0e3b7f3abba19eeb8261fc2.jpg?s=120&d=mm&r=g)
- Is it possible to have MORE THAN ONE luatex cache directory?
I'm not sure if this really makes sense, but you may want to know that luatools looks up a number of environment variables consecutively to determine the location of the cache: first TEXMFCACHE, then HOME and other similar variables, then VARTEXMF and similar vars, etc. (see line 3768 of luatools.lua for the complete list). I guess this could do the trick: the installation could generate the formats and put them in $VARTEXMF, and each user could put his own files in $HOME and override the defaults if the wants to (provided TEXMFCACHE is not set); but I need to check if this indeed works (not sure).
- Is there an obvious objection to replace luatex binary with a script which contains the necessary TEXMFCNF settings
I don't think this would be any problem with the ConTeXt developers, but you need to account for the fact that LuaTeX may be used with other formats. That's what I told you in the other thread: all these settings are related to LuaTeX but they're really specific to ConTeXt, and if someone wants to use LaTeX over the LuaTeX engine he may not be happy that the settings are not exactly the same than for the other engines. Of course if you only set TEXMFCNF and nothing else this shouldn't make any difference. Arthur
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Arthur Reutenauer wrote:
- Is it possible to have MORE THAN ONE luatex cache directory?
I'm not sure if this really makes sense, but you may want to know that luatools looks up a number of environment variables consecutively to determine the location of the cache: first TEXMFCACHE, then HOME and other similar variables, then VARTEXMF and similar vars, etc. (see line 3768 of luatools.lua for the complete list).
I guess this could do the trick: the installation could generate the formats and put them in $VARTEXMF, and each user could put his own files in $HOME and override the defaults if the wants to (provided TEXMFCACHE is not set); but I need to check if this indeed works (not sure).
- Is there an obvious objection to replace luatex binary with a script which contains the necessary TEXMFCNF settings
I don't think this would be any problem with the ConTeXt developers, but you need to account for the fact that LuaTeX may be used with other formats. That's what I told you in the other thread: all these settings are related to LuaTeX but they're really specific to ConTeXt, and if someone wants to use LaTeX over the LuaTeX engine he may not be happy that the settings are not exactly the same than for the other engines.
when generating things you see something c:/temp/luatex-cache/context/36cfaf81cc343ab858e892f7ccbb5039/trees/36cfaf81cc343ab858e892f7cc bb5039.tma the first hash is tree basesd and permits multiple tex installations alongside, the filename hashes are derived from the names plus full paths, also in order to prevent funny subpaths etc; so, indeed we can run multiple installations in the same cache (on our linux servers i often run multiple trees along side since project use frozen tex's) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/1aaa8171e46f2c29d4441fa99a7fc634.jpg?s=120&d=mm&r=g)
Hi Hans! On Mo, 01 Okt 2007, Hans Hagen wrote:
- Is it possible to have MORE THAN ONE luatex cache directory? [...] the first hash is tree basesd and permits multiple tex installations alongside, the filename hashes are derived from the names plus full paths, also in order to prevent funny subpaths etc; so, indeed we can run multiple installations in the same cache (on our linux servers i often run multiple trees along side since project use frozen tex's)
Sorry if I have been unclear: I don't want to have different
installation trees in the lua cache, I want DIFFERENT LOCATIONS of the
lua cache to be merged. So that the cache for
TEXMFDIST
TEXMFMAIN
TEXMFVAR
lies in /var/lib/texmf/luatexcache, and the cache for
TEXMFHOME
lies in ~/.texmf-var/luatexcache.
And in ~/.texmf-var/luatexcache there is ONLY the cache for TEXMFHOME
and not for the others.
So users can add/remove files from TEXMFHOME and update their local
cache without fiddling with the system wide cache.
Do go conform with other texmf.cnf settings, for example something like
this:
TEXMFSYSCACHE=/var/lib/texmf/luatexcache
TEXMFCACHE=$HOME/.texmf-var/luatexcache
and luatex/context collects the stuff found in TEXMFSYSCACHE and
TEXMFCACHE. Same as with TEXMFVAR and TEXMFSYSVAR
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining
participants (3)
-
Arthur Reutenauer
-
Hans Hagen
-
Norbert Preining