[Git][debian-gis-team/fiona][master] 4 commits: Add upstream patch to fix FTBFS with GCC 14. (closes: #1074959)

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sun Jul 28 18:29:41 BST 2024



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


Commits:
548bf297 by Bas Couwenberg at 2024-07-28T19:15:00+02:00
Add upstream patch to fix FTBFS with GCC 14. (closes: #1074959)

- - - - -
4a198a8c by Bas Couwenberg at 2024-07-28T19:23:21+02:00
Update lintian overrides.

- - - - -
78593769 by Bas Couwenberg at 2024-07-28T19:24:57+02:00
Bump Standards-Version to 4.7.0, no changes.

- - - - -
32be2745 by Bas Couwenberg at 2024-07-28T19:24:57+02:00
Set distribution to unstable.

- - - - -


5 changed files:

- debian/changelog
- debian/control
- + debian/patches/pr1314.patch
- debian/patches/series
- + debian/source/lintian-overrides


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+fiona (1.9.6-2) unstable; urgency=medium
+
+  * Team upload.
+  * Add upstream patch to fix FTBFS with GCC 14.
+    (closes: #1074959)
+  * Update lintian overrides.
+  * Bump Standards-Version to 4.7.0, no changes.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Sun, 28 Jul 2024 19:14:33 +0200
+
 fiona (1.9.6-1) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/control
=====================================
@@ -21,7 +21,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-pytest <!nocheck>,
                python3-setuptools,
                python3-tz <!nocheck>,
-Standards-Version: 4.6.2
+Standards-Version: 4.7.0
 Vcs-Browser: https://salsa.debian.org/debian-gis-team/fiona
 Vcs-Git: https://salsa.debian.org/debian-gis-team/fiona.git
 Homepage: https://github.com/Toblerity/Fiona


=====================================
debian/patches/pr1314.patch
=====================================
@@ -0,0 +1,26 @@
+Description: Fix leak in set_proj_search_path
+ The `CSLAddString` function takes a `char *`, not a `const char *`,
+ which may turn into an error on new GCC. It also allocates a new array
+ when given `NULL`, which is _copied_ by `OSRSetPROJSearchPaths`, so it
+ is leaked.
+Author: Elliott Sales de Andrade <quantum.analyst at gmail.com>
+Bug: https://github.com/Toblerity/Fiona/pull/1314
+
+--- a/fiona/_env.pyx
++++ b/fiona/_env.pyx
+@@ -64,12 +64,13 @@ except ImportError:
+ cdef bint is_64bit = sys.maxsize > 2 ** 32
+ 
+ cdef void set_proj_search_path(object path):
+-    cdef const char **paths = NULL
++    cdef char **paths = NULL
+     cdef const char *path_c = NULL
+     path_b = path.encode("utf-8")
+     path_c = path_b
+     paths = CSLAddString(paths, path_c)
+-    OSRSetPROJSearchPaths(paths)
++    OSRSetPROJSearchPaths(<const char *const *>paths)
++    CSLDestroy(paths)
+ 
+ 
+ cdef _safe_osr_release(OGRSpatialReferenceH srs):


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 0001-Rename-fio-command-to-fiona-to-avoid-name-clash.patch
 test_drvsupport.patch
+pr1314.patch


=====================================
debian/source/lintian-overrides
=====================================
@@ -0,0 +1,3 @@
+# False positive, uuid is not deprecated
+uses-deprecated-python-stdlib uu *
+



View it on GitLab: https://salsa.debian.org/debian-gis-team/fiona/-/compare/c3a49b785f9207bb44e949b94c62a53688e1ae2e...32be2745ac11bfecd27652c6ed628630bff606ce

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/fiona/-/compare/c3a49b785f9207bb44e949b94c62a53688e1ae2e...32be2745ac11bfecd27652c6ed628630bff606ce
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/20240728/608538b1/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list