texmfcnf.lua.patch 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --- /home/antonio/Software/test/texlive/texmf-dist/web2c/texmfcnf.lua 2023-05-27 18:02:06.978367099 +0200
  2. +++ ./texmfcnf.lua 2023-05-29 10:26:45.444599722 +0200
  3. @@ -1,6 +1,12 @@
  4. -- todo: come up with an auto-texlive identification (texmf-dist)
  5. -local hiddentexlivepath = ".texlive2024"
  6. +local hiddentexlivepath = ".texlive"
  7. +
  8. +-- ConTeXt needs a properly expanded TEXMFLOCAL, so here is a
  9. +-- bit of lua code to make that happen
  10. +
  11. +local texmflocal = resolvers.prefixes.selfautoparent();
  12. +texmflocal = string.gsub(texmflocal, "20%d%d$", "texmf-local");
  13. return {
  14. @@ -52,7 +58,7 @@
  15. TEXMFVAR = "home:" .. hiddentexlivepath .. "/texmf-var",
  16. TEXMFCONFIG = "home:" .. hiddentexlivepath .. "/texmf-config",
  17. - TEXMFSYSVAR = "selfautoparent:texmf-var",
  18. + TEXMFSYSVAR = "/var/lib/texmf",
  19. TEXMFCACHE = "$TEXMFSYSVAR;$TEXMFVAR",
  20. -- I don't like this texmf under home and texmf-home would make more sense. One never knows
  21. @@ -62,7 +68,7 @@
  22. -- By using prefixes we don't get expanded paths in the cache __path__ entry. This makes the
  23. -- tex root relocatable.
  24. - TEXMFOS = "selfautodir:",
  25. + TEXMFOS = "selfautodir:share",
  26. -- standalone:
  27. @@ -73,12 +79,12 @@
  28. -- texlive:
  29. - TEXMFDIST = "selfautoparent:texmf-dist",
  30. - TEXMFSYSCONFIG = "selfautoparent:texmf-config",
  31. + TEXMFDIST = "selfautodir:share/texmf-dist",
  32. + TEXMFSYSCONFIG = "/etc/texmf",
  33. -- The texmf-local path is only used for (maybe) some additional configuration file.
  34. - TEXMFLOCAL = "selfautoparent:texmf-local",
  35. + TEXMFLOCAL = texmflocal,
  36. TEXMFFONTS = "selfautoparent:texmf-fonts",
  37. TEXMFPROJECT = "selfautoparent:texmf-project",
  38. @@ -93,7 +99,6 @@
  39. -- TEXMF = "{$TEXMFHOME,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFMODULES,!!$TEXMFCONTEXT,!!$TEXMFSYSTEM,!!$TEXMFMAIN}",
  40. -- texlive:
  41. -
  42. TEXMF = "{$TEXMFCONFIG,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFDIST}",
  43. TEXFONTMAPS = ".;$TEXMF/fonts/data//;$TEXMF/fonts/map/{pdftex,dvips}//",