Hi, [for those with access to the ftp server] There have been some changes to the resolver code. In order to make trees relocatable (handy if you run from a usb stick or so), the texroot is now more abstract. The final implemention might change but it seems to work ok (here). It can be tested with an existing minimal: - delete the context path under texmf-cache - unzip cont-tmf.zip in texmf-context - copy mtxrun.lua from the scripts path to the bin path - update the texmfcnf.lua file (just copy contextcnf.lua) - remake the file database In logs you will notice prefixes like selfautoparent:texmf which comes from the texmfcnf.lua file (plus a preset TEXMF). That abstraction is used in cached names and is resolved at runtime. It might change to an url like syntax at some point. I hope that Mojca does not get too fed up after this change -) 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 -----------------------------------------------------------------
On Fri, Jan 28, 2011 at 20:33, Hans Hagen
Hi,
I hope that Mojca does not get too fed up after this change -)
It was me who was asking for the "troubles" anyway :) :) :) So I'm the last one who should be complaining. However here are two settings I'm not sure about (I didn't test them, I only looked at them): TEXMFOS = "selfautodir:", Let's assume that somebody installs binaries on USB stick for three different platforms. mtxrun --generate will then alway create the database into the same folder for all three different platforms. TEXMFHOME = "home:texmf", Let's assume that there are two users using the minimals (it probably won't happen for minimals, but it might happen for TeX Live). Will the database overwrite each other's data? (On the other hand the home folder is not supposed to generate the database at all ...) Mojca
Hans, is this intentional (after removing texmf-cache completely)?
context --version
MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-context.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'context.lua' or 'mtx-context.lua' You do seem to try to regenerate the database, but the attempt to do so seems to fail for some reason. Mojca
It is actually even more fun ...
mtxrun --generate
MTXrun | resolvers: variable 'SELFAUTOLOC' set to '/Users/mojca/context/tex/texmf-osx-64/bin' MTXrun | resolvers: variable 'SELFAUTODIR' set to '/Users/mojca/context/tex/texmf-osx-64' MTXrun | resolvers: variable 'SELFAUTOPARENT' set to '/Users/mojca/context/tex' MTXrun | resolvers: variable 'TEXMFCNF' set to '' MTXrun | resolvers: variable 'TEXMF' set to '' MTXrun | resolvers: variable 'TEXOS' set to 'texmf-osx-64' MTXrun | resolvers MTXrun | resolvers: warning: no lua configuration files found MTXrun | resolvers MTXrun | resolvers So unless I have screwed something up ... not even "mtxrun --generate" works. Mojca
On 29-1-2011 1:00, Mojca Miklavec wrote:
So unless I have screwed something up ... not even "mtxrun --generate" works.
ok, i see what goes wrong ... on unix : is a path separator (which makes me wonder if I need to support : as separator in the configuration but that's another matter) 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 -----------------------------------------------------------------
On 29-1-2011 1:00, Mojca Miklavec wrote:
So unless I have screwed something up ... not even "mtxrun --generate" works.
another beta ... no longer : as path separator (Just ; and tables and even ; might go as we move to urls. At some point I might treat env vars differently as they cannot be tables but that needs a bit more work). ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 29-1-2011 12:39, Mojca Miklavec wrote:
Hans,
is this intentional (after removing texmf-cache completely)?
context --version
MTXrun | forcing cache reload MTXrun | resolvers: warning: no lua configuration files found MTXrun | resolvers MTXrun | resolvers MTXrun | the resolver databases are not present or outdated MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | resolvers: remembering file 'mtx-context.lua' MTXrun | resolvers: using suffix based filetype 'lua' MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
You do seem to try to regenerate the database, but the attempt to do so seems to fail for some reason.
hm, i need to check why the configuration file is not found (maybe more tracing) ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 29-1-2011 12:36, Mojca Miklavec wrote:
On Fri, Jan 28, 2011 at 20:33, Hans Hagen
wrote: Hi,
I hope that Mojca does not get too fed up after this change -)
It was me who was asking for the "troubles" anyway :) :) :) So I'm the last one who should be complaining.
actually, you asked for other troubles, some of which already were covered a while ago, these root relocation related are my troubles so you can blame me (afaik no one ever asked for it so it can even stay undocumented).
However here are two settings I'm not sure about (I didn't test them, I only looked at them):
TEXMFOS = "selfautodir:",
should work ok, just resolves to $SELFAUTODIR but at runtime only (not in stored files)
Let's assume that somebody installs binaries on USB stick for three different platforms. mtxrun --generate will then alway create the database into the same folder for all three different platforms.
TEXMFHOME = "home:texmf",
idem, so one can use a differen home, this is somewhat more dangerous indeed as:
Let's assume that there are two users using the minimals (it probably won't happen for minimals, but it might happen for TeX Live). Will the database overwrite each other's data? (On the other hand the home folder is not supposed to generate the database at all ...)
right, so normally it's harmless 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 -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Mojca Miklavec