summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2021-05-23 00:10:02 +0200
committerJan Tojnar <jtojnar@gmail.com>2021-05-23 00:10:02 +0200
commit024243bac4612c62ef5be676818ed2465edae27f (patch)
treedba30f5bcaa0e0aa6e386d27921c88cc2bc516ea /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentc912d30f6505fa3ceb0a1a1cd28f66086a386101 (diff)
php74.extensions.iconv: fix error signalling
The configure script checks whether iconv supports errno. Unfortunately, on PHP < 8, the test program includes $PHP_ICONV_H_PATH, which defaults to FHS path so it fails to build: conftest.c:13:10: fatal error: /usr/include/iconv.h: No such file or directory 13 | #include </usr/include/iconv.h> | ^~~~~~~~~~~~~~~~~~~~~~ That causes the feature check to report a false negative, leading PHP to use a degraded code that returns PHP_ICONV_ERR_UNKNOWN when error occurs, breaking granular error handling in applications. To prevent this, let’s just include <iconv.h>. PHP 8 just uses include path so the detection works there: https://github.com/php/php-src/commit/7bd1d703411e1e4b1f663f0cb06af619eea04b42
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions