Loading maintainers/maintainer-list.nix +1 −1 Original line number Diff line number Diff line Loading @@ -8228,7 +8228,7 @@ name = "Akshat Agarwal"; }; hummeltech = { email = "hummeltech2024@gmail.com"; email = "hummeltech@sherpaguru.com"; github = "hummeltech"; githubId = 6109326; name = "David Hummel"; Loading pkgs/development/libraries/mapnik/datasource-ogr-test-should-fail.patchdeleted 100644 → 0 +0 −13 Original line number Diff line number Diff line diff --git a/test/unit/datasource/ogr.cpp b/test/unit/datasource/ogr.cpp index 8441ecc55..8dabc67b0 100644 --- a/test/unit/datasource/ogr.cpp +++ b/test/unit/datasource/ogr.cpp @@ -30,7 +30,7 @@ #include <mapnik/image_util.hpp> #include <mapnik/datasource_cache.hpp> -TEST_CASE("ogr") +TEST_CASE("ogr", "[!shouldfail]") { const bool have_ogr_plugin = mapnik::datasource_cache::instance().plugin_registered("ogr"); if (have_ogr_plugin) pkgs/development/libraries/mapnik/default.nix +23 −10 Original line number Diff line number Diff line Loading @@ -22,17 +22,19 @@ , zlib , catch2 , postgresql , protozero , sparsehash }: stdenv.mkDerivation rec { pname = "mapnik"; version = "unstable-2023-11-28"; version = "4.0.0"; src = fetchFromGitHub { owner = "mapnik"; repo = "mapnik"; rev = "2e1b32512b1f8b52331994f2a809d8a383c0c984"; hash = "sha256-qGdUfu6gFWum/Id/W3ICeGZroMQ3Tz9PQf1tt+gaaXM="; rev = "v${version}"; hash = "sha256-CNFNGMJU3kzkRrOGsf8/uv5ebHPEQ0tkA+5OubRVEjs="; fetchSubmodules = true; }; Loading @@ -40,6 +42,8 @@ stdenv.mkDerivation rec { substituteInPlace configure \ --replace '$PYTHON scons/scons.py' ${buildPackages.scons}/bin/scons rm -r scons # Remove bundled 'sparsehash' directory in favor of 'sparsehash' package rm -r deps/mapnik/sparsehash ''; # a distinct dev output makes python-mapnik fail Loading @@ -57,11 +61,10 @@ stdenv.mkDerivation rec { src = ./catch2-src.patch; catch2_src = catch2.src; }) # Disable broken test # See discussion: https://github.com/mapnik/mapnik/issues/4329#issuecomment-1248778398 ./datasource-ogr-test-should-fail.patch # Account for full paths when generating libmapnik.pc ./export-pkg-config-full-paths.patch # Use 'sparsehash' package. ./use-sparsehash-package.patch ]; nativeBuildInputs = [ cmake pkg-config ]; Loading @@ -83,21 +86,31 @@ stdenv.mkDerivation rec { zlib libxml2 postgresql protozero sparsehash ]; cmakeFlags = [ # Would require qt otherwise. "-DBUILD_DEMO_VIEWER:BOOL=OFF" # Save time by not building some development-related code. (lib.cmakeBool "BUILD_BENCHMARK" false) (lib.cmakeBool "BUILD_DEMO_CPP" false) ## Would require QT otherwise. (lib.cmakeBool "BUILD_DEMO_VIEWER" false) # Use 'protozero' package. (lib.cmakeBool "USE_EXTERNAL_MAPBOX_PROTOZERO" true) # macOS builds fail when using memory mapped file cache. (lib.cmakeBool "USE_MEMORY_MAPPED_FILE" (!stdenv.isDarwin)) ]; doCheck = true; # mapnik-config is currently not build with CMake. So we use the SCons for # this one. We can't add SCons to nativeBuildInputs though, as stdenv would # then try to build everything with scons. # then try to build everything with scons. C++17 is the minimum supported # C++ version. preBuild = '' cd .. ${buildPackages.scons}/bin/scons utils/mapnik-config env CXX_STD=17 ${buildPackages.scons}/bin/scons utils/mapnik-config cd build ''; Loading pkgs/development/libraries/mapnik/use-sparsehash-package.patch 0 → 100644 +19 −0 Original line number Diff line number Diff line commit c1cea9e10ffec54d0f675478e541ee4a6e87f653 Author: Tom Hughes <tom@compton.nu> Date: Wed Jun 5 18:45:57 2013 +0100 Use system sparsehash diff --git a/include/mapnik/palette.hpp b/include/mapnik/palette.hpp index 5f96272..44d06aa 100644 --- a/include/mapnik/palette.hpp +++ b/include/mapnik/palette.hpp @@ -33,7 +33,7 @@ #pragma GCC diagnostic push #include <mapnik/warning_ignore.hpp> #ifdef USE_DENSE_HASH_MAP -#include <mapnik/sparsehash/dense_hash_map> +#include <google/dense_hash_map> using rgba_hash_table = google::dense_hash_map<unsigned int, unsigned char>; #else #include <unordered_map> pkgs/development/perl-modules/Tirex/default.nix +10 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ , JSON , LWP , mapnik , boost , nix-update-script }: Loading @@ -22,11 +23,18 @@ buildPerlPackage rec { }; patches = [ # Support Mapnik >= v4.0.0 (`mapnik/box2d.hpp` -> `mapnik/geometry/box2d.hpp`) # https://github.com/openstreetmap/tirex/pull/54 (fetchpatch { url = "https://github.com/openstreetmap/tirex/commit/da0c5db926bc0939c53dd902a969b689ccf9edde.patch"; url = "https://github.com/openstreetmap/tirex/commit/5f131231c9c12e88793afba471b150ca8af8d587.patch"; hash = "sha256-bnL1ZGy8ZNSZuCRbZn59qRVLg3TL0GjFYnhRKroeVO0="; }) # Support Mapnik >= v4.0.0 (boost:filesystem no longer indirectly linked) # https://github.com/openstreetmap/tirex/pull/59 (fetchpatch { url = "https://github.com/openstreetmap/tirex/commit/137903be9b7b35dde4c7010e65faa16bcf6ad476.patch"; hash = "sha256-JDqwWVnzExPwLpzv4LbSmGYah956uko+Zdicahua9oQ="; }) ]; buildInputs = [ Loading @@ -35,6 +43,7 @@ buildPerlPackage rec { JSON LWP mapnik boost ] ++ mapnik.buildInputs; installPhase = '' Loading Loading
maintainers/maintainer-list.nix +1 −1 Original line number Diff line number Diff line Loading @@ -8228,7 +8228,7 @@ name = "Akshat Agarwal"; }; hummeltech = { email = "hummeltech2024@gmail.com"; email = "hummeltech@sherpaguru.com"; github = "hummeltech"; githubId = 6109326; name = "David Hummel"; Loading
pkgs/development/libraries/mapnik/datasource-ogr-test-should-fail.patchdeleted 100644 → 0 +0 −13 Original line number Diff line number Diff line diff --git a/test/unit/datasource/ogr.cpp b/test/unit/datasource/ogr.cpp index 8441ecc55..8dabc67b0 100644 --- a/test/unit/datasource/ogr.cpp +++ b/test/unit/datasource/ogr.cpp @@ -30,7 +30,7 @@ #include <mapnik/image_util.hpp> #include <mapnik/datasource_cache.hpp> -TEST_CASE("ogr") +TEST_CASE("ogr", "[!shouldfail]") { const bool have_ogr_plugin = mapnik::datasource_cache::instance().plugin_registered("ogr"); if (have_ogr_plugin)
pkgs/development/libraries/mapnik/default.nix +23 −10 Original line number Diff line number Diff line Loading @@ -22,17 +22,19 @@ , zlib , catch2 , postgresql , protozero , sparsehash }: stdenv.mkDerivation rec { pname = "mapnik"; version = "unstable-2023-11-28"; version = "4.0.0"; src = fetchFromGitHub { owner = "mapnik"; repo = "mapnik"; rev = "2e1b32512b1f8b52331994f2a809d8a383c0c984"; hash = "sha256-qGdUfu6gFWum/Id/W3ICeGZroMQ3Tz9PQf1tt+gaaXM="; rev = "v${version}"; hash = "sha256-CNFNGMJU3kzkRrOGsf8/uv5ebHPEQ0tkA+5OubRVEjs="; fetchSubmodules = true; }; Loading @@ -40,6 +42,8 @@ stdenv.mkDerivation rec { substituteInPlace configure \ --replace '$PYTHON scons/scons.py' ${buildPackages.scons}/bin/scons rm -r scons # Remove bundled 'sparsehash' directory in favor of 'sparsehash' package rm -r deps/mapnik/sparsehash ''; # a distinct dev output makes python-mapnik fail Loading @@ -57,11 +61,10 @@ stdenv.mkDerivation rec { src = ./catch2-src.patch; catch2_src = catch2.src; }) # Disable broken test # See discussion: https://github.com/mapnik/mapnik/issues/4329#issuecomment-1248778398 ./datasource-ogr-test-should-fail.patch # Account for full paths when generating libmapnik.pc ./export-pkg-config-full-paths.patch # Use 'sparsehash' package. ./use-sparsehash-package.patch ]; nativeBuildInputs = [ cmake pkg-config ]; Loading @@ -83,21 +86,31 @@ stdenv.mkDerivation rec { zlib libxml2 postgresql protozero sparsehash ]; cmakeFlags = [ # Would require qt otherwise. "-DBUILD_DEMO_VIEWER:BOOL=OFF" # Save time by not building some development-related code. (lib.cmakeBool "BUILD_BENCHMARK" false) (lib.cmakeBool "BUILD_DEMO_CPP" false) ## Would require QT otherwise. (lib.cmakeBool "BUILD_DEMO_VIEWER" false) # Use 'protozero' package. (lib.cmakeBool "USE_EXTERNAL_MAPBOX_PROTOZERO" true) # macOS builds fail when using memory mapped file cache. (lib.cmakeBool "USE_MEMORY_MAPPED_FILE" (!stdenv.isDarwin)) ]; doCheck = true; # mapnik-config is currently not build with CMake. So we use the SCons for # this one. We can't add SCons to nativeBuildInputs though, as stdenv would # then try to build everything with scons. # then try to build everything with scons. C++17 is the minimum supported # C++ version. preBuild = '' cd .. ${buildPackages.scons}/bin/scons utils/mapnik-config env CXX_STD=17 ${buildPackages.scons}/bin/scons utils/mapnik-config cd build ''; Loading
pkgs/development/libraries/mapnik/use-sparsehash-package.patch 0 → 100644 +19 −0 Original line number Diff line number Diff line commit c1cea9e10ffec54d0f675478e541ee4a6e87f653 Author: Tom Hughes <tom@compton.nu> Date: Wed Jun 5 18:45:57 2013 +0100 Use system sparsehash diff --git a/include/mapnik/palette.hpp b/include/mapnik/palette.hpp index 5f96272..44d06aa 100644 --- a/include/mapnik/palette.hpp +++ b/include/mapnik/palette.hpp @@ -33,7 +33,7 @@ #pragma GCC diagnostic push #include <mapnik/warning_ignore.hpp> #ifdef USE_DENSE_HASH_MAP -#include <mapnik/sparsehash/dense_hash_map> +#include <google/dense_hash_map> using rgba_hash_table = google::dense_hash_map<unsigned int, unsigned char>; #else #include <unordered_map>
pkgs/development/perl-modules/Tirex/default.nix +10 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ , JSON , LWP , mapnik , boost , nix-update-script }: Loading @@ -22,11 +23,18 @@ buildPerlPackage rec { }; patches = [ # Support Mapnik >= v4.0.0 (`mapnik/box2d.hpp` -> `mapnik/geometry/box2d.hpp`) # https://github.com/openstreetmap/tirex/pull/54 (fetchpatch { url = "https://github.com/openstreetmap/tirex/commit/da0c5db926bc0939c53dd902a969b689ccf9edde.patch"; url = "https://github.com/openstreetmap/tirex/commit/5f131231c9c12e88793afba471b150ca8af8d587.patch"; hash = "sha256-bnL1ZGy8ZNSZuCRbZn59qRVLg3TL0GjFYnhRKroeVO0="; }) # Support Mapnik >= v4.0.0 (boost:filesystem no longer indirectly linked) # https://github.com/openstreetmap/tirex/pull/59 (fetchpatch { url = "https://github.com/openstreetmap/tirex/commit/137903be9b7b35dde4c7010e65faa16bcf6ad476.patch"; hash = "sha256-JDqwWVnzExPwLpzv4LbSmGYah956uko+Zdicahua9oQ="; }) ]; buildInputs = [ Loading @@ -35,6 +43,7 @@ buildPerlPackage rec { JSON LWP mapnik boost ] ++ mapnik.buildInputs; installPhase = '' Loading