File fixbuild.patch of Package mapnik

diff -ur mapnik-v4.0.7/plugins/input/ogr/ogr_datasource.cpp mapnik-v4.0.7_fix/plugins/input/ogr/ogr_datasource.cpp
--- mapnik-v4.0.7/plugins/input/ogr/ogr_datasource.cpp	2025-04-05 11:33:05.000000000 +0200
+++ mapnik-v4.0.7_fix/plugins/input/ogr/ogr_datasource.cpp	2026-03-22 14:41:31.696053741 +0100
@@ -378,7 +378,7 @@
         }
     }
     mapnik::parameters& extra_params = desc_.get_extra_parameters();
-    OGRSpatialReference* srs_ref = layer->GetSpatialRef();
+    const OGRSpatialReference* srs_ref = layer->GetSpatialRef();
     char* srs_output = nullptr;
     if (srs_ref && srs_ref->exportToProj4(&srs_output) == OGRERR_NONE)
     {
openSUSE Build Service is sponsored by