Open r-ricci opened 3 years ago
texlive-core-2020.57066_1 /usr/share/texmf-dist/scripts/context/lua/context.lua
texlive-core-2020.57066_1 /usr/share/texmf-dist/scripts/context/lua/mtx-context.lua
It does things very weirdly:
5965 open("/bin/mtx-t-context.lua", O_RDONLY) = -1 ENOENT (Arquivo ou diretório inexistente)
5965 getcwd("/home/ericonr", 4096) = 14
5965 getcwd("/home/ericonr", 4096) = 14
5965 stat("context.lua", 0x7ffda61ea580) = -1 ENOENT (Arquivo ou diretório inexistente)
5965 stat("./context.lua", 0x7ffda61ea580) = -1 ENOENT (Arquivo ou diretório inexistente)
5965 stat("context.lua", 0x7ffda61ea580) = -1 ENOENT (Arquivo ou diretório inexistente)
[... other attempts at weird paths ...]
So it would seem to be missing some information on how to locate those scripts, since they definitely exist.
Hi! Did anyone ever figure out a workaround for this?
I'm not sure, but it looks like it's something to do with the variable SELFAUTOPARENT
. The Void Package seems to try to hard code it out:
sed -i -e 's:^\(TEXMFROOT *= *\)$SELFAUTOPARENT$:\1/usr/share:g'
But ConTeXt seems to use it.
It seems to be set to /
when I run kpsewhich
, but when I run mtxrun --variables
, it seems to resolve to ./
.
Edit:
I just looked into this a bit more, and apparently SELFAUTOPARENT
is just 2 directories up from the location of kpsewhich
(or some other executable that serves a similar role, I'm not sure). In a manually installed texlive disribution, this would end up being the texlive root directory. However, void puts kpsewhich
in /usr/bin
, so SELFAUTOPARENT
is would be set to /
. But, separately to that, there seems to be bug in ConTeXt's file.collapsepath
which causes it to collapse /usr/bin/../..
into .
.
Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.
Same thing with version 20210325_3.
System
xuname:
Void 5.10.15_1 x86_64 GenuineIntel uptodate rrFFFFFFFFFFFFFFFFF
package:
texlive-ConTeXt-20200406_7
Expected behavior
context --version
(from the texlive-ConTeXt package) should print something like this (obtained with the texlive-bin package):Actual behavior
If
texlive-LuaTeX
is not installed, it prints:If
texlive-LuaTeX
is installed, it prints: