Dr. Werner Fink 2024-03-22 10:07:11 +00:00 committed by Git OBS Bridge
parent 61648ece7f
commit d7b285b208

View File

@ -1,9 +1,9 @@
---
texk/kpathsea/tex-file.c | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
texk/kpathsea/tex-file.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
--- texk/kpathsea/tex-file.c
+++ texk/kpathsea/tex-file.c 2024-03-22 09:23:02.305892751 +0000
+++ texk/kpathsea/tex-file.c 2024-03-22 10:05:55.034645098 +0000
@@ -21,7 +21,9 @@
#include <kpathsea/c-fopen.h>
@ -14,14 +14,12 @@
#include <kpathsea/cnf.h>
#include <kpathsea/absolute.h>
#include <kpathsea/concatn.h>
@@ -1316,13 +1318,25 @@ kpathsea_name_ok (kpathsea kpse, const_s
@@ -1316,13 +1318,23 @@ kpathsea_name_ok (kpathsea kpse, const_s
TEXMFSYSVAR. */
if (extended) {
const_string texmfvar = kpathsea_var_value (kpse, "TEXMFVAR");
+ string cache = kpathsea_var_value (kpse, "VARTEXFONTS");
+ string tmp = concat3 (cache, "/", "k_p_s_e_t_e_s_t_.tmp");
+ int fa = access(tmp, W_OK);
+ free (tmp);
+ int fa = access(cache, W_OK);
+ if (fa != 0) {
+ string home = getenv ("HOME");
+ cache = concat3 (home, "/", ".cache/texmf/fonts");