Your message dated Sat, 23 May 2026 06:33:45 +0000
with message-id <[email protected]>
and subject line Bug#1134153: fixed in saga 9.9.3+dfsg-2
has caused the Debian Bug report #1134153,
regarding saga: FTBFS with GDAL 3.13.0
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1134153: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1134153
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: saga
Version: 9.9.3+dfsg-1
Severity: important
Tags: upstream ftbfs patch
User: [email protected]
Usertags: gdal-3.13

Dear Maintainer,

Your package FTBFS with GDAL 3.13.0:

 error: invalid conversion from 'CSLConstList' {aka 'const char* const*'} to 
'char**' [-fpermissive]

>From GDAL 3.13.0 NEWS:

 * GDALMajorObject: Use CSLConstList for GetMetadata, SetMetadata (API breakage)

https://github.com/OSGeo/gdal/blob/v3.13.0beta1/NEWS.md

The attached patch fixes the issue.

Kind Regards,

Bas
diff -Nru saga-9.9.3+dfsg/debian/patches/gdal-3.13.patch 
saga-9.9.3+dfsg/debian/patches/gdal-3.13.patch
--- saga-9.9.3+dfsg/debian/patches/gdal-3.13.patch      1970-01-01 
01:00:00.000000000 +0100
+++ saga-9.9.3+dfsg/debian/patches/gdal-3.13.patch      2026-04-17 
07:04:14.000000000 +0200
@@ -0,0 +1,74 @@
+Description: Fix FTBFS with GDAL 3.13.0.
+ error: invalid conversion from 'CSLConstList' {aka 'const char* const*'} to 
'char**' [-fpermissive]
+ .
+ From GDAL 3.13.0 NEWS:
+ "
+  * GDALMajorObject: Use CSLConstList for GetMetadata, SetMetadata (API 
breakage)
+ "
+Author: Bas Couwenberg <[email protected]>
+
+--- a/saga-gis/src/tools/io/io_gdal/gdal_driver.cpp
++++ b/saga-gis/src/tools/io/io_gdal/gdal_driver.cpp
+@@ -749,7 +749,11 @@ bool CSG_GDAL_DataSet::Get_MetaData(CSG_
+ {
+       if( m_pDataSet && is_Reading() )
+       {
+-              char    **pMetaData     = GDALGetMetadata(m_pDataSet, 0);
++#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3, 13, 0)
++              CSLConstList    pMetaData       = GDALGetMetadata(m_pDataSet, 
0);
++#else
++              *char   **pMetaData     = GDALGetMetadata(m_pDataSet, 0);
++#endif
+ 
+               if( pMetaData )
+               {
+@@ -777,7 +781,11 @@ bool CSG_GDAL_DataSet::Get_MetaData(CSG_
+ {
+       if( m_pDataSet && is_Reading() )
+       {
++#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3, 13, 0)
++              CSLConstList    pMetaData       = GDALGetMetadata(m_pDataSet, 
pszDomain);
++#else
+               char    **pMetaData     = GDALGetMetadata(m_pDataSet, 
pszDomain);
++#endif
+ 
+               if( pMetaData )
+               {
+@@ -895,7 +903,11 @@ CSG_String CSG_GDAL_DataSet::Get_MetaDat
+ 
+       GDALRasterBandH pBand = is_Reading() ? GDALGetRasterBand(m_pDataSet, i 
+ 1) : NULL;
+ 
++#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3, 13, 0)
++      CSLConstList pMetaData = pBand ? GDALGetMetadata(pBand, NULL) : NULL;
++#else
+       char **pMetaData = pBand ? GDALGetMetadata(pBand, NULL) : NULL;
++#endif
+ 
+       if( pMetaData )
+       {
+@@ -920,7 +932,11 @@ bool CSG_GDAL_DataSet::Get_MetaData(int
+ {
+       GDALRasterBandH pBand = is_Reading() ? GDALGetRasterBand(m_pDataSet, i 
+ 1) : NULL;
+ 
++#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3, 13, 0)
++      CSLConstList pMetaData = pBand ? GDALGetMetadata(pBand, NULL) : NULL;
++#else
+       char **pMetaData = pBand ? GDALGetMetadata(pBand, NULL) : NULL;
++#endif
+ 
+       if( pMetaData )
+       {
+--- a/saga-gis/src/tools/io/io_gdal/ogr_driver.cpp
++++ b/saga-gis/src/tools/io/io_gdal/ogr_driver.cpp
+@@ -546,7 +546,11 @@ CSG_String CSG_OGR_DataSet::Get_Descript
+ 
+       if( pLayer != NULL )
+       {
++#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3, 13, 0)
++              CSLConstList    pMetaData       = GDALGetMetadata(pLayer, 0);
++#else
+               char    **pMetaData     = GDALGetMetadata(pLayer, 0);
++#endif
+ 
+               if( pMetaData )
+               {
diff -Nru saga-9.9.3+dfsg/debian/patches/series 
saga-9.9.3+dfsg/debian/patches/series
--- saga-9.9.3+dfsg/debian/patches/series       1970-01-01 01:00:00.000000000 
+0100
+++ saga-9.9.3+dfsg/debian/patches/series       2026-04-17 07:04:14.000000000 
+0200
@@ -0,0 +1 @@
+gdal-3.13.patch

--- End Message ---
--- Begin Message ---
Source: saga
Source-Version: 9.9.3+dfsg-2
Done: Bas Couwenberg <[email protected]>

We believe that the bug you reported is fixed in the latest version of
saga, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bas Couwenberg <[email protected]> (supplier of updated saga package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 23 May 2026 08:02:07 +0200
Source: saga
Architecture: source
Version: 9.9.3+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GIS Project <[email protected]>
Changed-By: Bas Couwenberg <[email protected]>
Closes: 1134153
Changes:
 saga (9.9.3+dfsg-2) unstable; urgency=medium
 .
   * Team upload.
   * Use test-build-validate-cleanup instead of test-build-twice.
   * Use debrebuild instead of reprotest.
   * Drop Priority: optional, default since dpkg 1.22.13.
   * Bump Standards-Version to 4.7.4, changes: priority.
   * Drop obsolete Breaks/Replaces.
   * Add patch to fix FTBFS with GDAL 3.13.0.
     (closes: #1134153)
Checksums-Sha1:
 66609315b7f3087a1aedb5e721829da5222e9562 2412 saga_9.9.3+dfsg-2.dsc
 cb2365117228b2a9fdbd69169c5aef0d5713c65a 22480 saga_9.9.3+dfsg-2.debian.tar.xz
 cde183975f2dc255da0bc7ece0f5f3a8dc047a44 22718 
saga_9.9.3+dfsg-2_amd64.buildinfo
Checksums-Sha256:
 a5a9f1e0b25869318726cff0b19ad99a0abb292ebf188e9d0661b696343241ae 2412 
saga_9.9.3+dfsg-2.dsc
 c1681bfdf31f154db8e8d568da877d83e5b4d0288347a7afa6211d0b4245a5c7 22480 
saga_9.9.3+dfsg-2.debian.tar.xz
 4f20810e25662bdb12774b64ad1dd4e3673417edf3b625afd4eee33bab81a27f 22718 
saga_9.9.3+dfsg-2_amd64.buildinfo
Files:
 27176aadc355baf3b10b696c69a8f2a4 2412 science optional saga_9.9.3+dfsg-2.dsc
 d8b369ff7e64ff23cd9bd62903e94019 22480 science optional 
saga_9.9.3+dfsg-2.debian.tar.xz
 866c97566562aa844341c0da3255351a 22718 science optional 
saga_9.9.3+dfsg-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgYLeQXBWQI1hRlDRZ1DxCuiNSvEFAmoRRngACgkQZ1DxCuiN
SvHhMxAAyJVfnqeBHSOwUyUF/r7N3VDnNtv6wwfpmPcMmhPyzdrT5FHQOTtdCRof
Vdk8ii5n6BiyiNckKB7avdgoOkLY3D6xtJ4gSw0gTHz8mdYZ4XitejlIvcz11hlN
fE6HlxfTIfJxccnK02Kw7VO1hm6n/BD0fjjbKi+vxLd1Fk9Xa8YLhxQ3m/Lzv7g6
sr7Ro7NHVACTuesyR7xy8lJVMhdaNTdi2CwfQZIG1LP/zcaAdN6vJvPzxhAe0BS1
iDhuwlxECWdRsA/pI93GIUT7EMhwJXjTTZJSg2qmjC0pmZEMeiM+BAM+73EwgM+W
Cnytk/gmt6rp40FQ0LnmYkXSOwpmzcOxyH9TUoiiyNJVdREmjqu/7AqkwPPGtl0M
PtCPtzZbybTMxNo9p1ceqkEI1xxaOQ6QsHB8hEp790wHR0FWAHXDChgXHxzI4OBj
ax78AKv2FUYkAjwdPU4N1Q/P1RkG+g96IpXBLj/js2s+f7MSiLDYRcLGZJ5iwC1I
0Bon2zQHki5B8bkOWkg09xICDIHBaR/wsAY/pYJ1qzNPIlD6ARSi2410v/0GKh/9
VWE+d+/2W2XsmRQ4uFEy+UpxF15PfYdNQVuWF+9gH5kwZqHHm/HqhJENlhtt20d9
8thEr/yrH2YjUGyGEQ3v6Qtn55Ra+sKG3KB1MFXl+Q251VzTd3k=
=+v8X
-----END PGP SIGNATURE-----

Attachment: pgp_U0RLK4f5Z.pgp
Description: PGP signature


--- End Message ---

Reply via email to