Hans, Hans Hagen wrote:
what files are looked for depends also on env settings; but anyhow, at some point mkiv/luatex might drop the cnf file
I think some kind of cnf file will still be necessary to tell TeX where to look for files, though with reasonable defaults, the file would only be created (by the user) if needed.
/etc/texmf:/etc/texmf/web2c:/var/lib/texmf/web2c:{~/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}/web2c
hm, where is that set? hard coded in the binary?
Yes, though the exact value depends on the distribution. In openSUSE, if I found the correct variable, it is WEB2C = ${TEXMFHOME}/web2c;${TEXMFSYSCONFIG}/web2c;${TEXMFSYSVAR}/web2c;$TEXMF/web2c How about keeping the current searching algorithm (of the luatools.lua you have sent me) plus look additionally in $HOME/texmf/web2c/ ? I think this is the only reasonable other place. The $HOME/texmf should have higher precedence to allow the user to overwrite the system defaults. (That seems to be in line with all teTeX/TeX Live distributions on Linux, which I know.) (Another possibility would be to access the stored strings in "texlua" and use that search path; I don't know whether this is possible.) Tobias PS: Peter Münster wrote:
Would KPSE find texmfcnf.lua in $HOME/texmf/web2c ?
From one of your previous messages, I understand that it would *not* find it.
It does - I messed up the "web2c" string search in the luatex binary; there are two strings. The right one seems to be: ~/texmf/web2c:/etc/texmf/web2c:/var/lib/texmf/web2c:{~/texmf,!!/etc/texmf,!!/var/lib/texmf,!!/usr/lib/texmf,!!/usr/local/share/texmf,!!/usr/share/texmf}/web2c