[Git][debian-gis-team/python-hdf4][master] Add patch to fix FTBFS with GCC 14. (closes: #1075417)

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sat Jul 6 12:03:38 BST 2024



Bas Couwenberg pushed to branch master at Debian GIS Project / python-hdf4


Commits:
22a16353 by Bas Couwenberg at 2024-07-04T10:00:09+02:00
Add patch to fix FTBFS with GCC 14. (closes: #1075417)

- - - - -


3 changed files:

- debian/changelog
- + debian/patches/gcc-14.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+python-hdf4 (0.11.4-3) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Add patch to fix FTBFS with GCC 14.
+    (closes: #1075417)
+
+ -- Bas Couwenberg <sebastic at debian.org>  Thu, 04 Jul 2024 08:50:02 +0200
+
 python-hdf4 (0.11.4-2) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/patches/gcc-14.patch
=====================================
@@ -0,0 +1,24 @@
+Description: Fix FTBFS with GCC 14 (-Wincompatible-pointer-types).
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/fhs/pyhdf/pull/75
+
+--- a/pyhdf/hdfext_wrap.c
++++ b/pyhdf/hdfext_wrap.c
+@@ -4107,7 +4107,7 @@ static PyObject * _SDwritedata_0(int32 s
+ 
+ #include "hcomp.h"
+ 
+-static int32 _SDgetcompress(int32 sds_id, int32 *comp_type, int32 *value,
++static int32 _SDgetcompress(int32 sds_id, comp_coder_t *comp_type, int32 *value,
+                             int32 *v2, int32 *v3, int32 *v4, int32 *v5)    {
+ 
+     comp_info c_info;
+@@ -7319,7 +7319,7 @@ SWIGINTERN PyObject *_wrap__SDgetcompres
+     SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_SDgetcompress" "', argument " "1"" of type '" "int32""'");
+   } 
+   arg1 = (int32)(val1);
+-  result = (int32)_SDgetcompress(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
++  result = (int32)_SDgetcompress(arg1,(comp_coder_t *)arg2,arg3,arg4,arg5,arg6,arg7);
+   resultobj = SWIG_From_int((int)(result));
+   if (SWIG_IsTmpObj(res2)) {
+     resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 hdf-4.3.0.patch
+gcc-14.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/python-hdf4/-/commit/22a1635310121158a68521d2a9f32f6b13366799

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-hdf4/-/commit/22a1635310121158a68521d2a9f32f6b13366799
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/20240706/d47d9e19/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list