Debian Codegraph @

debian/patches/debian-builtin-searchpath

raw
1 adjust built-in search paths for kpathsea library to Debian standard
2 ---
3 texk/kpathsea/texmf.cnf | 46 ++++++++++++----------------------------------
4 1 file changed, 12 insertions(+), 34 deletions(-)
5
6 --- texlive-bin-2024.20240313.70630.orig/texk/kpathsea/texmf.cnf
7 +++ texlive-bin-2024.20240313.70630/texk/kpathsea/texmf.cnf
8 @@ -65,20 +65,23 @@
9 % They must must all have the TDS directory structure (https://tug.org/tds).
10
11 % The main tree of distributed packages and programs:
12 -TEXMFDIST = $TEXMFROOT/texmf-dist
13 +TEXMFDIST = /usr/share/texlive/texmf-dist
14
15 % We used to have a separate /texmf tree with some core programs and files.
16 % Keep the variable name.
17 TEXMFMAIN = $TEXMFDIST
18
19 +% The Debian search tree
20 +TEXMFDEBIAN = /usr/share/texmf
21 +
22 % Local additions to the distribution trees.
23 -TEXMFLOCAL = $SELFAUTOGRANDPARENT/texmf-local
24 +TEXMFLOCAL = /usr/local/share/texmf
25
26 % TEXMFSYSVAR, where *-sys store cached runtime data.
27 -TEXMFSYSVAR = $TEXMFROOT/texmf-var
28 +TEXMFSYSVAR = /var/lib/texmf
29
30 % TEXMFSYSCONFIG, where *-sys store configuration data.
31 -TEXMFSYSCONFIG = $TEXMFROOT/texmf-config
32 +TEXMFSYSCONFIG = /etc/texmf
33
34 % Per-user texmf tree(s) -- organized per the TDS, as usual. To define
35 % more than one per-user tree, set this to a list of directories in
36 @@ -111,7 +114,7 @@
37 % The odd-looking $TEXMFAUXTREES$TEXMF... construct is so that if no auxtree
38 % is defined (99% common case), no extra elements will be added to
39 % the search paths. tlmgr takes care to end any value with a trailing comma.
40 -TEXMF = {$TEXMFAUXTREES$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,!!$TEXMFLOCAL,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFDIST}
41 +TEXMF = {$TEXMFAUXTREES$TEXMFCONFIG,$TEXMFVAR,$TEXMFHOME,!!$TEXMFLOCAL,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFDEBIAN,!!$TEXMFDIST}
42
43 % Where to look for, and where mktexlsr creates, ls-R files. By default,
44 % this is all and only the !! elements of TEXMF, so that mktexlsr does not
45 @@ -119,7 +122,7 @@
46 % present, it will be used, and the disk will not (usually) be searched,
47 % regardless of !!. Although in theory a directory listed here need
48 % not contain an ls-R file, in practice they all should.
49 -TEXMFDBS = {!!$TEXMFLOCAL,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFDIST}
50 +TEXMFDBS = {!!$TEXMFLOCAL,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFDEBIAN,!!$TEXMFDIST}
51
52 % The system trees. These are the trees that are shared by all users.
53 % If a tree appears in this list, the mktex* scripts will use
54 @@ -136,7 +139,7 @@
55 % Where generated fonts may be written. This tree is used when the sources
56 % were found in a system tree and either that tree wasn't writable, or the
57 % varfonts feature was enabled in MT_FEATURES in mktex.cnf.
58 -VARTEXFONTS = $TEXMFVAR/fonts
59 +VARTEXFONTS = /var/cache/fonts
60
61 % On some systems, there will be a system tree which contains all the font
62 % files that may be created as well as the formats. For example
63 @@ -574,33 +577,8 @@
64 % since we don't want to scatter ../'s throughout the value. Hence we
65 % explicitly list every directory. Arguably more understandable anyway.
66 %
67 -TEXMFCNF = {\
68 -$SELFAUTOLOC,\
69 -$SELFAUTOLOC/share/texmf-local/web2c,\
70 -$SELFAUTOLOC/share/texmf-dist/web2c,\
71 -$SELFAUTOLOC/share/texmf/web2c,\
72 -$SELFAUTOLOC/texmf-local/web2c,\
73 -$SELFAUTOLOC/texmf-dist/web2c,\
74 -$SELFAUTOLOC/texmf/web2c,\
75 -\
76 -$SELFAUTODIR,\
77 -$SELFAUTODIR/share/texmf-local/web2c,\
78 -$SELFAUTODIR/share/texmf-dist/web2c,\
79 -$SELFAUTODIR/share/texmf/web2c,\
80 -$SELFAUTODIR/texmf-local/web2c,\
81 -$SELFAUTODIR/texmf-dist/web2c,\
82 -$SELFAUTODIR/texmf/web2c,\
83 -\
84 -$SELFAUTOGRANDPARENT/texmf-local/web2c,\
85 -$SELFAUTOPARENT,\
86 -\
87 -$SELFAUTOPARENT/share/texmf-local/web2c,\
88 -$SELFAUTOPARENT/share/texmf-dist/web2c,\
89 -$SELFAUTOPARENT/share/texmf/web2c,\
90 -$SELFAUTOPARENT/texmf-local/web2c,\
91 -$SELFAUTOPARENT/texmf-dist/web2c,\
92 -$SELFAUTOPARENT/texmf/web2c\
93 -}
94 +TEXMFCNF = {/etc/texmf/web2c,/usr/local/share/texmf/web2c,/usr/share/texmf/web2c,/usr/share/texlive/texmf-dist/web2c,$SELFAUTOPARENT/share/texmf/web2c}
95 +
96 %
97 % For reference, here is the old brace-using definition:
98 %TEXMFCNF = {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}