How to adjust the $TEXMFCNF variable not to interfere with ConText?

Pablo González L pablgonz at educarchile.cl
Thu Sep 17 17:34:03 CEST 2020


Hello, some time ago I asked for something similar
(https://tug.org/pipermail/tex-live/2019-October/044188.html) and I know that
the problem occurs when I set the variable $TEXMFCNF, as a reproduction of my
question (under TeX Live 2020, fedora 32):

## Part 1, all OK
$ kpsewhich -var-brace-value=TEXMFCNF
/usr/local/texlive/2020/bin/x86_64-linux:/usr/local/texlive/2020/bin/x86_64-linux/share/texmf-local/web2c:/usr/local/texlive/2020/bin/x86_64-linux/share/texmf-dist/web2c:/usr/local/texlive/2020/bin/x86_64-linux/share/texmf/web2c:/usr/local/texlive/2020/bin/x86_64-linux/texmf-local/web2c:/usr/local/texlive/2020/bin/x86_64-linux/texmf-dist/web2c:/usr/local/texlive/2020/bin/x86_64-linux/texmf/web2c:/usr/local/texlive/2020/bin:/usr/local/texlive/2020/bin/share/texmf-local/web2c:/usr/local/texlive/2020/bin/share/texmf-dist/web2c:/usr/local/texlive/2020/bin/share/texmf/web2c:/usr/local/texlive/2020/bin/texmf-local/web2c:/usr/local/texlive/2020/bin/texmf-dist/web2c:/usr/local/texlive/2020/bin/texmf/web2c:/usr/local/texlive/texmf-local/web2c:/usr/local/texlive/2020:/usr/local/texlive/2020/share/texmf-local/web2c:/usr/local/texlive/2020/share/texmf-dist/web2c:/usr/local/texlive/2020/share/texmf/web2c:/usr/local/texlive/2020/texmf-local/web2c:/usr/local/texlive/2020/texmf-dist/web2c:/usr/local/texlive/2020/texmf/web2c

$ context --nofile --once

resolvers       | formats | executing runner 'run luatex format':
/usr/local/texlive/2020/bin/x86_64-linux/luatex --jobname="cont-nop"
--fmt=/home/pablo/.texlive2020/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.fmt
--lua=/home/pablo/.texlive2020/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui
cont-nop.mkiv --c:currentrun=1 --c:fulljobname="cont-nop.mkiv"
--c:input="cont-nop.mkiv" --c:kindofrun=3 --c:maxnofruns=1 --c:nofile
--c:once --c:texmfbinpath="/usr/local/texlive/2020/bin/x86_64-linux"
This is LuaTeX, Version 1.12.0 (TeX Live 2020)
 system commands enabled.
open source     > level 1, order 1, name
'/usr/local/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-nop.mkiv'
system          >
system          > ConTeXt  ver: 2020.03.10 14:44 MKIV beta  fmt:
2020.8.28  int: english/english
system          >
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name
'/usr/local/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name
'/usr/local/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'cont-nop', input 'cont-nop.mkiv',
result 'cont-nop'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
system          > loading dummy replacement for jobname
system          > invalid \starttext ... \stoptext structure
fonts           > beware: no fonts are loaded yet, using 'lm mono' in box
close source    > level 1, order 2, name
'/usr/local/texlive/2020/texmf-dist/tex/context/base/mkiv/cont-nop.mkiv'

mkiv lua stats  > used config file:
selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: readable+writable:
'/home/pablo/.texlive2020/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9'
mkiv lua stats  > resource resolver: loadtime 0.276 seconds, 1 scans
with scantime 0.003 seconds, 0 shared scans, 7 found files, scanned
paths: /home/pablo/texmf
mkiv lua stats  > stored bytecode data: 450 modules (0.662 sec), 93
tables (0.030 sec), 543 chunks (0.692 sec)
mkiv lua stats  > traced context: maxstack: 1398, freed: 0, unreachable: 1398
mkiv lua stats  > cleaned up reserved nodes: 53 nodes, 9 lists of 442
mkiv lua stats  > node memory usage: 8 attribute, 3 attribute_list, 2
glue, 51 glue_spec, 2 kern, 2 penalty, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 8 unique task lists, 1
instances (re)created, 2 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: internal: 34, file: 61, direct: 2, late:
0, function 61, total: 158
mkiv lua stats  > randomizer: resumed with value 0.95072731096298
mkiv lua stats  > result saved in file: cont-nop.pdf, compresslevel 3,
objectcompresslevel 1
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 1 files: lmmono10-regular.otf
mkiv lua stats  > font engine: otf 3.111, afm 1.513, tfm 1.000, 1
instances, load time 0.019 seconds
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: bin
mkiv lua stats  > used engine: luatex version: 1.12, functionality
level: 7306, banner: this is luatex, version 1.12.0 (tex live 2020)
mkiv lua stats  > control sequences: 44135 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 119
MB, ctx: 119 MB, max: unknown MB, hash chars: min(64,40), symbol mask:
utf (τεχ)
mkiv lua stats  > runtime: 0.704 seconds
system          | total runtime: 1.230 seconds

$ tlmgr conf auxtrees --conffile /home/pablo/texmf/texmf.cnf show
tlmgr: no auxiliary texmf trees defined.

$ tlmgr conf auxtrees --conffile /home/pablo/texmf/texmf.cnf add
~/ltxcole/stycole/
$ tlmgr conf auxtrees --conffile /home/pablo/texmf/texmf.cnf show
List of auxiliary texmf trees:
  /home/pablo/ltxcole/stycole/

$ cat /home/pablo/texmf/texmf.cnf
TEXMFAUXTREES = /home/pablo/ltxcole/stycole/,

Up to that point everything is fine, but, in addition:

## Part 2, not OK :(
$ export TEXMFCNF='~/texmf:'
$ kpsewhich -var-brace-value=TEXMFCNF
/home/pablo/texmf:

$ context --nofile --once
mtxrun          | forcing cache reload
resolvers       | resolving | looking for regular 'texmfcnf.lua' on
weird path '$HOME/texmf:' from specification '$HOME/texmf:'
resolvers       | resolving | looking for fallback 'contextcnf.lua' on
weird path '$HOME/texmf:' from specification '$HOME/texmf:'
resolvers       | resolving |
resolvers       | resolving | warning: no lua configuration files found
resolvers       | resolving | no texmf paths are defined (using TEXMF)
resolvers       | resolving |
mtxrun          | the resolver databases are not present or outdated
resolvers       | resolving | using suffix based filetype 'lua'
resolvers       | resolving | remembering file 'mtx-context.lua' using
hash 'lua::mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'lua'
resolvers       | resolving | remembering file 'mtx-contexts.lua'
using hash 'lua::mtx-contexts.lua'
resolvers       | resolving | remembered file 'mtx-context.lua'
resolvers       | resolving | using suffix based filetype 'lua'
resolvers       | resolving | remembering file 'mtx-t-context.lua'
using hash 'lua::mtx-t-context.lua'
resolvers       | resolving | using suffix based filetype 'lua'
resolvers       | resolving | remembering file 'mtx-t-contexts.lua'
using hash 'lua::mtx-t-contexts.lua'
resolvers       | resolving | remembered file 'mtx-t-context.lua'
resolvers       | resolving | using suffix based filetype 'lua'
resolvers       | resolving | remembering file 'context.lua' using
hash 'lua::context.lua'
mtxrun          | unknown script 'context.lua' or 'mtx-context.lua'

ConText stops working, try searching for 'texmfcnf.lua' in a location where it
is not.

What line should I put in 'export' to make it work?
I want to add the change to `.bashrc` to make it permanent.

Saludos



More information about the tex-live mailing list.