[From nobody Sat May 23 07:35:04 2026
Received: (at submit) by bugs.debian.org; 17 Apr 2026 05:35:35 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-109.6 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,
 FROMDEVELOPER,SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY,
 USER_IN_DKIM_WELCOMELIST,XMAILER_REPORTBUG autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 58; hammy, 150; neutral, 85; spammy,
 0. spammytokens:
 hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
 0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
 0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: &lt;sebastic@debian.org&gt;
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:60486)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sebastic@debian.org&gt;) id 1wDbra-00D6ty-3B
 for submit@bugs.debian.org; Fri, 17 Apr 2026 05:35:35 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.stravinsky;
 h=X-Debian-User:Date:Message-ID:Subject:To:From:
 MIME-Version:Content-Type:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
 Content-Description:In-Reply-To:References;
 bh=GslTcRX2gecvCs0CmJ2Q+NsXxZZyUIt0XbkvcCck4d8=; b=FTnRORhfPDJHUPPupBzVMaU7JA
 2ZFJXgPcJfYRocsvJjG+aaiWLZa3JYSxArASGmIJrllDHvVBa7+epSO+winPAVWFJC1CBnSd/RPPa
 Qgzg5yd3JZ5vkikzr3vX41CuzRhnTsyx5EFNUPMUcDAshP2gYYIST5Omfa4omDbER2pk8XPGAV+hE
 FW9MV99LZeyOPGoIGrZLgp6ayVBlTJ+EMLoo3LSCOk4sTVnLslnv6HXpDy+WqaWgVvDI/PzJuZqUW
 ksTu+qohePAbjrUedcjXBB80zlav9IB7Tr8q4hrYMrRcmco4Gh2STYLOyPS1xhPsUlHGdEbAvG7T1
 wkQdW+GA==;
Received: from authenticated user by stravinsky.debian.org with esmtpsa
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;sebastic@debian.org&gt;)
 id 1wDbrZ-00FA18-0M; Fri, 17 Apr 2026 05:35:33 +0000
Received: by osiris.linuxminded.xs4all.nl (Postfix, from userid 1000)
 id B904C17400E7; Fri, 17 Apr 2026 07:35:32 +0200 (CEST)
Content-Type: multipart/mixed; boundary=&quot;===============5354547748184210474==&quot;
MIME-Version: 1.0
From: Bas Couwenberg &lt;sebastic@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: saga: FTBFS with GDAL 3.13.0
Message-ID: &lt;177640413268.2705918.15692911914807003271.reportbug@osiris.linuxminded.xs4all.nl&gt;
X-Mailer: reportbug 13.2.0
Date: Fri, 17 Apr 2026 07:35:32 +0200
X-Debian-User: sebastic
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============5354547748184210474==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: saga
Version: 9.9.3+dfsg-1
Severity: important
Tags: upstream ftbfs patch
User: debian-gis@lists.debian.org
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]

&gt;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

--===============5354547748184210474==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;saga_9.9.3+dfsg-1.debdiff&quot;

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:
+ &quot;
+  * GDALMajorObject: Use CSLConstList for GetMetadata, SetMetadata (API breakage)
+ &quot;
+Author: Bas Couwenberg &lt;sebastic@debian.org&gt;
+
+--- 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 &amp;&amp; is_Reading() )
+ 	{
+-		char	**pMetaData	= GDALGetMetadata(m_pDataSet, 0);
++#if GDAL_VERSION_NUM &gt;= 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 &amp;&amp; is_Reading() )
+ 	{
++#if GDAL_VERSION_NUM &gt;= 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 &gt;= 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 &gt;= 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 &gt;= 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

--===============5354547748184210474==--
]