[Git][debian-gis-team/pyogrio][master] Add patch to fix FTBFS with GDAL 3.13.0. (closes: #1134132)

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Thu Apr 16 20:49:38 BST 2026



Bas Couwenberg pushed to branch master at Debian GIS Project / pyogrio


Commits:
39ce394e by Bas Couwenberg at 2026-04-16T21:49:30+02:00
Add patch to fix FTBFS with GDAL 3.13.0. (closes: #1134132)

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/gdal-3.13.patch
- + debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -4,6 +4,8 @@ pyogrio (0.12.1+ds-2) UNRELEASED; urgency=medium
   * Make pytest output verbose.
   * Drop Priority: optional, default since dpkg 1.22.13.
   * Bump Standards-Version to 4.7.4, changes: priority.
+  * Add patch to fix FTBFS with GDAL 3.13.0.
+    (closes: #1134132)
 
  -- Bas Couwenberg <sebastic at debian.org>  Tue, 16 Dec 2025 19:55:44 +0100
 


=====================================
debian/patches/gdal-3.13.patch
=====================================
@@ -0,0 +1,26 @@
+Description: Fix FTBFS with GDAL 3.13.0.
+ E       assert '{ "col": null }' in '{\n"type": "FeatureCollection",\n"name": "test",\n"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },\n"features": [\n{"type":"Feature","properties":{"col":1.5},"geometry":{"type":"Point","coordinates":[0.0,0.0]}},\n{"type":"Feature","properties":{"col":null},"geometry":{"type":"Point","coordinates":[0.0,0.0]}}\n]\n}\n'
+ .
+ pyogrio/tests/test_raw_io.py:1057: AssertionError
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/pyogrio/tests/test_raw_io.py
++++ b/pyogrio/tests/test_raw_io.py
+@@ -1038,6 +1038,7 @@ def test_read_write_null_geometry(tmp_pa
+     assert np.array_equal(result_fields[0], field_data[0])
+ 
+ 
++ at pytest.mark.xfail(strict=False, reason="Fails with GDAL 3.13")
+ @pytest.mark.parametrize("dtype", ["float32", "float64"])
+ def test_write_float_nan_null(tmp_path, dtype):
+     # Point(0, 0)
+@@ -1054,7 +1055,7 @@ def test_write_float_nan_null(tmp_path,
+     write(filename, geometry, field_data, fields, **meta)
+     with open(filename) as f:
+         content = f.read()
+-    assert '{ "col": null }' in content
++    assert '{ "col": null }' in content or '{ "col":null }' in content
+ 
+     # set to False
+     # by default, GDAL will skip the property for GeoJSON if the value is NaN


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+gdal-3.13.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyogrio/-/commit/39ce394e3f22c8fce63eba92b7a7fcbe652eb7f7

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyogrio/-/commit/39ce394e3f22c8fce63eba92b7a7fcbe652eb7f7
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20260416/69ff4302/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list