nixpkgs/pkgs/development
Bruce Toll beed9092dd mapnik: fix missing proj and libxml2 support
This commit provides three minor improvements:

1. Fix missing proj support. Fixes #91889.
2. Fix missing libxml2 support.
3. Improve build time with parallel build.

Fix missing proj support:
-------------------------
The 2019-07-09 update to proj version 6.1.1 in nixpkgs
commit d55cba68ff caused two problems for mapnik:

1. The separation of the dev output was not reflected in the mapnik
   expression. Since proj support is optional in the mapnik build,
   the build succeeded but no longer included proj support.

   See build log for: https://hydra.nixos.org/build/96274475.

2. Even if the mapnik expression was updated to use the separate
   dev output, it would still have dropped proj support because mapnik
   has not been updated for the proj 6 API.

This commit fixes the PROJ_INCLUDES to use the correct dev output and
also makes the PROJ_LIBS output explicit. In addition, it defines
ACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1 since mapnik still does not have
a tagged release that supports the proj 6 api.

Looking to the future, it appears that the mapnik master branch includes
proj 6 support, so some checks were included to help insure that this
workaround gets removed once it is no longer required.

Fix missing libxml2 support:
----------------------------
Configure with "XMLPARSER=libxml2" to get libxml2 support. This has been
needed since mapnik 3.0.2. Remove XML2_INCLUDES and XML2_LIBS which
trigger a bug in the supplied SConstruct script (when used with
"XMLPARSER=libxml2.

In addition, libxml2 needs to be a propagatedBuildInput to avoid
errors building apacheHttpdPackages.mod_tile, python-mapnik, and
possibly other packages.

Enable parallel build:
----------------------
Setting enableParallelBuild does not result in a parallel build
with mapnik. However, setting JOBS=$(NIX_BUILD_CORES) in buildFlags
works and significantly reduces the build time.
2021-05-11 13:10:37 -04:00
..
androidndk-pkgs
arduino
beam-modules buildRebar3: use rebar3WithPlugins 2021-05-11 08:59:57 +09:00
bower-modules/generic
chez-modules
compilers Merge #121759: gfortran11, gnat11: init at 11.1.0 2021-05-10 19:52:49 +02:00
coq-modules coqPackages.metalib: enable for Coq 8.13 2021-05-10 18:57:58 +02:00
dhall-modules
dotnet-modules
em-modules/generic
gnuradio-modules
go-modules
go-packages
guile-modules
haskell-modules haskellPackages.reflex-dom-*: Remove more aarch64 builds 2021-05-11 02:07:04 +02:00
idris-modules Merge pull request #122181 from divanorama/patch-2 2021-05-09 17:40:17 +02:00
interpreters Merge pull request #122277 from thiagokokada/bump-babashka 2021-05-10 19:18:43 +02:00
java-modules
libraries mapnik: fix missing proj and libxml2 support 2021-05-11 13:10:37 -04:00
lisp-modules lispPackages.quicklisp: distinfo 2021-02-28 -> 2021-04-11, 2021-05-10 18:17:21 +02:00
lua-modules
misc
mobile
node-packages
ocaml-modules ocamlPackages: cohttp: 2.5.0 -> 4.0.0; conduit: 2.2.2 -> 4.0.0 (#118144) 2021-05-11 06:54:15 +02:00
octave-modules
perl-modules
pharo
php-packages php.packages.phpcbf: 3.5.8 -> 3.6.0 2021-05-08 22:18:18 +02:00
pure-modules
python-modules Merge pull request #122489 from rmcgibbo/tablib 2021-05-11 08:03:31 +02:00
r-modules
ruby-modules
tools Merge pull request #122548 from stephank/fix-cargo-expand-darwin 2021-05-11 09:47:18 +01:00
web flyctl: 0.0.211 -> 0.0.212 2021-05-08 15:15:25 -07:00