summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorapfelkuchen06 <apfelkuchen@hrnz.li>2023-03-08 23:37:14 +0100
committerapfelkuchen06 <apfelkuchen@hrnz.li>2023-03-09 23:17:04 +0100
commitbab298bf031eb322c1ec95922e87c552a9c90f90 (patch)
tree1aa5cb946d2afde0e84efd5597499d7f9ea05fd2 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentd4a78d5f094e0c837b9104f0cd3a4fb2cf966932 (diff)
texlive: fix kpathsea path expansion.
When expanding path variables, kpathsea uses a trick to speed up identifying leaf directories. The manual says > The trick is that in every real Unix implementation (as opposed to the POSIX > specification), a directory which contains no subdirectories will have > exactly two links (namely, one for . and one for ..). That is to say, the > st_nlink field in the ‘stat’ structure will be two. Thus, we don’t have to > stat everything in the bottom-level (leaf) directories—we can just check > st_nlink, notice it’s two, and do no more work. > > But if you have a directory that contains a single subdirectory and 500 > regular files, st_nlink will be 3, and Kpathsea has to stat every one of those > 501 entries. Therein lies slowness. > > You can disable the trick by undefining ST_NLINK_TRICK in > kpathsea/config.h. (It is undefined by default except under Unix.) This does not work as expected with nixpkgs symlink trees and programs that rely on kpathsea path expansion do not work properly. One example is luaotfload's font database, which is populated by the font files in the directories obtained by path-expanding the value of the `OPENTYPEFONTS` configuration variable with kpathsea. The expanded value can be checked with `kpsewhich --show-path="opentype fonts"`. Before this change, the expanded value does not include the various font directories symlinked into `/texmf/fonts/opentype/public`, since kpathsea considers this a leaf directory (every child is a symlink, not a directory). Hence luaotfload does not find the fonts in the texlive installation. This patch disables this trick.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions