summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2025-06-20 11:05:21 +0100
committerEmily <vcs@emily.moe>2025-07-04 12:02:26 +0100
commit1b28a1e224d6e5eb20ac09bc4604ca4d4a4a6b8e (patch)
treead65e59cfcde202cd8fb874d1bb9e413140224ca /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent678cac2a01a084fd7a99731bbbfb55b165d4f5e3 (diff)
sanitiseHeaderPathsHook: init
C++ headers often use `__FILE__` in error messages, causing the development outputs of libraries to leak into the runtime closure of packages using them. This hook abstracts away a pattern used in a few places throughout the tree to have headers identify themselves by a sanitized path that does not cause runtime dependencies. This does unfortunately mean that compiler error messages will reference the sanitized path. The only alternatives I can imagine are to patch compilers to handle `__FILE__` specially, or to have libraries propagate a hook that removes references. The latter would potentially need to be propagated recursively due to `#include` semantics and would be less precise than this.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions