diff --git a/graphics/mapnik/patches/patch-plugins_input_ogr_ogr_datasource_cpp b/graphics/mapnik/patches/patch-plugins_input_ogr_ogr_datasource_cpp new file mode 100644 index 00000000000..07304abe96b --- /dev/null +++ b/graphics/mapnik/patches/patch-plugins_input_ogr_ogr_datasource_cpp @@ -0,0 +1,15 @@ +Fix build with gdal 3.12 + +https://github.com/mapnik/mapnik/pull/4531 +Index: plugins/input/ogr/ogr_datasource.cpp +--- plugins/input/ogr/ogr_datasource.cpp.orig ++++ plugins/input/ogr/ogr_datasource.cpp +@@ -378,7 +378,7 @@ void ogr_datasource::init(mapnik::parameters const& pa + } + } + mapnik::parameters& extra_params = desc_.get_extra_parameters(); +- OGRSpatialReference* srs_ref = layer->GetSpatialRef(); ++ OGRSpatialReference const* srs_ref = layer->GetSpatialRef(); + char* srs_output = nullptr; + if (srs_ref && srs_ref->exportToProj4(&srs_output) == OGRERR_NONE) + {