Summary: | app-text/texlive-2020-r7 dev-texlive/texlive-context-2020 does not find its scripts | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Meino Cramer <mylists> |
Component: | Current packages | Assignee: | Alexis Ballier <aballier> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | amano.kenji, filmor, jstein, tex |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Meino Cramer
2020-09-05 07:05:25 UTC
Additional information: I installed the ConTeXt distribution (https://wiki.contextgarden.net/Installation) and it has worked out of the box -- even without running mtxrun --generate beforehand, which is done by the context command on itsself when detecting, that ~/.texlive2019 is invalid. Indexing with mtxrun --generate indexed the correct parts without all the "confusing file" messages. The ConTeXt-distribution is ok and valid as such. Something has gone wrong with its configuration when embedded into the GENTOO texlive package, it seems. Has anything been fixed? texlive-2021 still has the same issue. $ context --version mtxrun | unknown script 'context.lua' or 'mtx-context.lua' After `export TEXMF=/usr/share/texmf-dist`, $ context --version resolvers | globbing | confusing filename, name: 'custMatTransform.py', lower: 'custmattransform.py', already: 'CustMatTransform.py' resolvers | globbing | confusing filename, name: 'setCustomAnchor.py', lower: 'setcustomanchor.py', already: 'SetCustomAnchor.py' resolvers | globbing | confusing filename, name: 'widg_addLabel.py', lower: 'widg_addlabel.py', already: 'Widg_addLabel.py' resolvers | globbing | confusing filename, name: 'widg_addPolyOpt.py', lower: 'widg_addpolyopt.py', already: 'Widg_addPolyOpt.py' resolvers | globbing | confusing filename, name: 'widg_editBezier.py', lower: 'widg_editbezier.py', already: 'Widg_editBezier.py' mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2020.03.10 14:44 mtx-context | main context file: /usr/share/texmf-dist/tex/context/base/mkiv/context.mkxl mtx-context | current version: 2020.03.10 14:44 There should be no `confusing filename`s, but I'm getting them. I really don't know what went wrong. https://mailman.ntg.nl/pipermail/ntg-context/2020/099404.html seems to suggest that dev-texlive/texlive-basic needs to fix /usr/share/texmf-dist/web2c/texmfcnf.lua I inspected /usr/share/texmf-dist/web2c/texmfcnf.lua, and it is seriously broken. It turns out that /usr/share/texmf-dist/web2c/texmfcnf.lua installed by dev-texlive/texlive-basic-2021 is horribly outdated. The file is from 2012. /usr/share/texmf-dist/web2c/texmfcnf.lua comes from tl-luatex-2021.tar.xz which is installed by dev-texlive/texlive-basic-2021. I think tl-luatex-2021.tar.xz is actually something like tl-luatex-2012.tar.xz. Actually, debian's texlive-base_2022.20220722.orig.tar.xz contains the same outdated texmfcnf.lua. It seems that texlive needs to bupdate texmfcnf.lua. https://github.com/archlinux/svntogit-packages/commit/43af7cc2eab080ea4f333159833e714376cb2cad Arch Linux includes its own patched version of texmfcnf.lua because the upstream version is broken. By copying Arch Linux texlive-core's texmfcnf.lua to /usr/share/texmf-dist/web2c/texmfcnf.lua, the issue is fixed. But, each user still needs to execute `mtxrun --generate` before using ConTeXt. For now, dev-texlive/texlive-basic should set TEXMFSYSVAR="selfautoparent:/var/lib/texmf", TEXMFDIST="selfautodir:share/texmf-dist", TEXMFSYSCONFIG="selfautodir:/etc/texmf" in /usr/share/texmf-dist/web2c/texmfcnf.lua. Arch Linux also sets TEXMFOS="selfautodir:share" in texmfcnf.lua, but context runs fine after running `mtxrun --generate` without TEXMFOS="selfautodir:share". |