加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
texlive-2022-anolis-texmfcnf.lua.patch 2.49 KB
一键复制 编辑 原始数据 按行查看 历史
Funda Wang 提交于 2023-06-25 20:08 . fix CVE-2023-32700
diff -up ./web2c/texmfcnf.lua.anolis ./web2c/texmfcnf.lua
--- ./web2c/texmfcnf.lua.anolis 2023-05-25 12:49:38.564646026 -0400
+++ ./web2c/texmfcnf.lua 2023-05-25 12:52:19.524748814 -0400
@@ -14,6 +14,7 @@ return {
time = "12:12:12",
comment = "ConTeXt MkIV configuration file",
author = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
+ -- modified for Anolis, based on Preining Norbert's work in Debian
content = {
@@ -44,7 +45,7 @@ return {
-- only used for FONTCONFIG_PATH & TEXMFCACHE in TeX Live
- TEXMFSYSVAR = "selfautoparent:texmf-var",
+ TEXMFSYSVAR = "/var/lib/texmf",
TEXMFVAR = "home:.texlive2022/texmf-var",
-- We have only one cache path but there can be more. The first writable one
@@ -61,13 +62,14 @@ return {
-- By using prefixes we don't get expanded paths in the cache __path__
-- entry. This makes the tex root relocatable.
- TEXMFOS = "selfautodir:",
- TEXMFDIST = "selfautoparent:texmf-dist",
-
- TEXMFLOCAL = texmflocal,
- TEXMFSYSCONFIG = "selfautoparent:texmf-config",
- TEXMFFONTS = "selfautoparent:texmf-fonts",
- TEXMFPROJECT = "selfautoparent:texmf-project",
+ -- TEXMFOS = "selfautodir:",
+ TEXMFDIST = "/usr/share/texlive/texmf-dist",
+ TEXMFFEDORA = "/usr/share/texmf",
+
+ TEXMFLOCAL = "/usr/share/texlive/texmf-local",
+ TEXMFSYSCONFIG = "/usr/share/texlive/texmf-config",
+ -- TEXMFFONTS = "selfautoparent:texmf-fonts",
+ -- TEXMFPROJECT = "selfautoparent:texmf-project",
TEXMFHOME = "home:texmf",
-- TEXMFHOME = os.name == "macosx" and "home:Library/texmf" or "home:texmf",
@@ -75,7 +77,7 @@ return {
-- We need texmfos for a few rare files but as I have a few more bin trees
-- a hack is needed. Maybe other users also have texmf-platform-new trees.
- TEXMF = "{$TEXMFCONFIG,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFDIST}",
+ TEXMF = "{$TEXMFCONFIG,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFLOCAL,!!$TEXMFFEDORA,!!$TEXMFDIST}",
TEXFONTMAPS = ".;$TEXMF/fonts/data//;$TEXMF/fonts/map/{pdftex,dvips}//",
ENCFONTS = ".;$TEXMF/fonts/data//;$TEXMF/fonts/enc/{dvips,pdftex}//",
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化