ConTeXt Minimals and TEXMFCACHE
Hi, according to the wiki “ConTeXt minimals does not touch anything outside its installation folder”, but if TEXMFCACHE is not set by setuptex, actually many files may be written outside the ConTeXt minimals folder, and (as in my case) they may conflict with the files written by ConTeXt from TeX Live in the same cache folder. Is there any reason why exporting TEXMFCACHE is commented out in setuptex? Nicola
On 26-8-2010 9:03, Nicola wrote:
Hi, according to the wiki “ConTeXt minimals does not touch anything outside its installation folder”, but if TEXMFCACHE is not set by setuptex, actually many files may be written outside the ConTeXt minimals folder, and (as in my case) they may conflict with the files written by ConTeXt from TeX Live in the same cache folder.
Is there any reason why exporting TEXMFCACHE is commented out in setuptex?
You can set it up in a texmfcnf.lua file in your texmf-local/web2c tree. Anyway, it is unlike to conflict as I hash the path so one cache can serve many trees. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
In article <4C76DC46.70902@wxs.nl>, Hans Hagen
Is there any reason why exporting TEXMFCACHE is commented out in setuptex?
You can set it up in a texmfcnf.lua file in your texmf-local/web2c tree.
Anyway, it is unlike to conflict as I hash the path so one cache can serve many trees.
Ah, I hadn't realized that! That simplifies things a lot! Thanks, Nicola
On Thu, Aug 26, 2010 at 21:03, Nicola
Hi, according to the wiki “ConTeXt minimals does not touch anything outside its installation folder”, but if TEXMFCACHE is not set by setuptex, actually many files may be written outside the ConTeXt minimals folder, and (as in my case) they may conflict with the files written by ConTeXt from TeX Live in the same cache folder.
Is there any reason why exporting TEXMFCACHE is commented out in setuptex?
The variable TEXMFCACHE is set in tex/texmf/web2c/texmfcnf.lua and that one should do the job. Under usual circumstances at least. If that one is not being respected, something might be wrong. Do you have any other texmfcnf.lua file somewhere else? (Note that you are also free to rename setuptex and modify it according to your own needs, but it makes sense to debug this first.) Mojca
In article
The variable TEXMFCACHE is set in tex/texmf/web2c/texmfcnf.lua and that one should do the job. Under usual circumstances at least.
If that one is not being respected, something might be wrong. Do you have any other texmfcnf.lua file somewhere else?
No, I export TEXMFCACHE in my .profile, because I want the cache to be inside my home folder. After running setuptex, ConTeXt minimals uses that rather than the path specified in texmfcnf.lua. Since now I know that luatex-cache can be shared, for me this is perfectly fine. I just had to adjust the TeXShop engines (I am on Mac OS X) by explicitly setting TEXMFCACHE for XeTeX and MKII, besides MKIV. So, if I get it right, the value in texmfcnf.lua is used unless TEXMFCACHE is set. Nicola
On Fri, Aug 27, 2010 at 10:54, Nicola wrote:
In article
, Mojca Miklavec wrote: The variable TEXMFCACHE is set in tex/texmf/web2c/texmfcnf.lua and that one should do the job. Under usual circumstances at least.
If that one is not being respected, something might be wrong. Do you have any other texmfcnf.lua file somewhere else?
No, I export TEXMFCACHE in my .profile, because I want the cache to be inside my home folder.
Oh, that's another story then.
After running setuptex, ConTeXt minimals uses that rather than the path specified in texmfcnf.lua. Since now I know that luatex-cache can be shared, for me this is perfectly fine.
I just had to adjust the TeXShop engines (I am on Mac OS X) by explicitly setting TEXMFCACHE for XeTeX and MKII, besides MKIV.
TEXMFCACHE is not used by MKII (neither in pdfTeX nor in XeTeX).
So, if I get it right, the value in texmfcnf.lua is used unless TEXMFCACHE is set.
True. Mojca
In article
TEXMFCACHE is not used by MKII (neither in pdfTeX nor in XeTeX).
Right. I have tried unset TEXMFCACHE texexec hello.tex in the command line and it just runs texexec (as expected). But from TeXShop (using the engines for MKII and XeTeX described at http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation), for some reason mtxrun is run before texexec on the first compilation, which creates the cache in the location specified by texmfcnf.lua (unless I set TEXMFCACHE). And sourcing setuptex doesn't change anything. Maybe some other environment variable should be set in those engines? Nicola
On 27-8-2010 8:17, Nicola wrote:
In article
, Mojca Miklavec wrote: TEXMFCACHE is not used by MKII (neither in pdfTeX nor in XeTeX).
Right. I have tried
unset TEXMFCACHE texexec hello.tex
in the command line and it just runs texexec (as expected).
But from TeXShop (using the engines for MKII and XeTeX described at http://wiki.contextgarden.net/ConTeXt_Minimals/Mac_Installation), for some reason mtxrun is run before texexec on the first compilation, which creates the cache in the location specified by texmfcnf.lua (unless I set TEXMFCACHE). And sourcing setuptex doesn't change anything. Maybe some other environment variable should be set in those engines?
we used to have texmfstart as script runner (all scripts are located and started by a runner which is faster than using some kpse locator esp when having nested runs as with metafun in mkii) so, texexec used to be texmfstart texexec however, nowadays mtxrun is the runner and it replaces texmfstart for mkii as well and in order to do this, it needs the file database and that one ends up in the cache so even for mkii there is a cache needed (when I'm in the mood I'll check the lua texutil variant in which case we can also kick out ruby which is currently only needed for mkii) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
In article <4C782D26.6040905@wxs.nl>, Hans Hagen
On 27-8-2010 8:17, Nicola wrote:
In article
, Mojca Miklavec wrote: TEXMFCACHE is not used by MKII (neither in pdfTeX nor in XeTeX).
Right. I have tried
unset TEXMFCACHE texexec hello.tex
in the command line and it just runs texexec (as expected).
Sorry, my mistake. If I unset TEXMFCACHE, then mtxrun is run also from the command line and the behaviour is consistent with what happens from TeXShop - which, in turn, is consistent with what Hans explains below.
we used to have texmfstart as script runner (all scripts are located and started by a runner which is faster than using some kpse locator esp when having nested runs as with metafun in mkii)
so, texexec used to be
texmfstart texexec
however, nowadays mtxrun is the runner and it replaces texmfstart for mkii as well and in order to do this, it needs the file database and that one ends up in the cache so even for mkii there is a cache needed (when I'm in the mood I'll check the lua texutil variant in which case we can also kick out ruby which is currently only needed for mkii)
Hans
Everything is clear now. Thank you! Nicola
I summarized this small discussion in the wiki as I also made a systemwide installation (http://wiki.contextgarden.net/ConTeXt_Minimals#Cache) Nicola wrote:
In article
, Mojca Miklavec wrote: The variable TEXMFCACHE is set in tex/texmf/web2c/texmfcnf.lua and that one should do the job. Under usual circumstances at least.
If that one is not being respected, something might be wrong. Do you have any other texmfcnf.lua file somewhere else?
No, I export TEXMFCACHE in my .profile, because I want the cache to be inside my home folder. After running setuptex, ConTeXt minimals uses that rather than the path specified in texmfcnf.lua. Since now I know that luatex-cache can be shared, for me this is perfectly fine. I just had to adjust the TeXShop engines (I am on Mac OS X) by explicitly setting TEXMFCACHE for XeTeX and MKII, besides MKIV.
So, if I get it right, the value in texmfcnf.lua is used unless TEXMFCACHE is set.
Nicola
___________________________________________________________________________________
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
___________________________________________________________________________________
participants (4)
-
Hans Hagen
-
Mojca Miklavec
-
Nicola
-
Peter Schorsch