[From nobody Mon Apr 20 16:51:09 2026
Received: (at submit) by bugs.debian.org; 16 Apr 2026 17:35:57 +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, 42; hammy, 150; neutral, 38; 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]:37420)
 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 1wDQdB-00BjPR-0T
 for submit@bugs.debian.org; Thu, 16 Apr 2026 17:35:57 +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=u397N7wwjBo3XYIZfSYJsamWYAEecemdveMFYRCyibw=; b=gKN0u6H0Sg7CgXN3CCVu+h2pZr
 xAAw/Z1uSqJz25MIpSTrElo1iPaobG01tMLO35rc2EQ7gC8tzrM7IfQnNmgcqWQUFqN3EktCdi9To
 FaYNEBgVEOG0VIzVE9VugWx6sjelblmT1faoVy2Vp3SFIS+BTP3vVjOJcGUGWMbS9T5A4AHu6mtzo
 3qCaKyKqKR7WVBWHsf/7ZYNp48YW6bChPyYcjkBlUuBLHnYKsjLWIu4zffcTk6I13krLLri7ODFb1
 GdRAkau+CMVguGfQOujsCt5S8xfL3Q7gyFpgmprGkEsk4zTwz5/XNdYjrPQL4yRTTQpUxtlmX5YYa
 2H/ABslg==;
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 1wDQd9-00EmB7-20; Thu, 16 Apr 2026 17:35:55 +0000
Received: by osiris.linuxminded.xs4all.nl (Postfix, from userid 1000)
 id 5C95B17400E7; Thu, 16 Apr 2026 19:35:54 +0200 (CEST)
Content-Type: multipart/mixed; boundary=&quot;===============9205638647266242337==&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: mapcache: FTBFS with GDAL 3.13.0
Message-ID: &lt;177636095427.2544276.10051651609663541611.reportbug@osiris.linuxminded.xs4all.nl&gt;
X-Mailer: reportbug 13.2.0
Date: Thu, 16 Apr 2026 19:35:54 +0200
X-Debian-User: sebastic
Delivered-To: submit@bugs.debian.org

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


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

Source: mapcache
Version: 1.14.1-3
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: implicit declaration of function 'MIN' [-Wimplicit-function-declaration]

The attached patch fixes the issue.

Kind Regards,

Bas

--===============9205638647266242337==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;mapcache_1.14.1-3.debdiff&quot;

diff -Nru mapcache-1.14.1/debian/patches/gdal-3.13.patch mapcache-1.14.1/debian/patches/gdal-3.13.patch
--- mapcache-1.14.1/debian/patches/gdal-3.13.patch	1970-01-01 01:00:00.000000000 +0100
+++ mapcache-1.14.1/debian/patches/gdal-3.13.patch	2026-04-16 19:23:52.000000000 +0200
@@ -0,0 +1,22 @@
+Description: Fix FTBFS with GDAL 3.13.0.
+ error: implicit declaration of function 'MIN' [-Wimplicit-function-declaration]
+Author: Bas Couwenberg &lt;sebastic@debian.org&gt;
+
+--- a/lib/source_gdal.c
++++ b/lib/source_gdal.c
+@@ -347,9 +347,15 @@ CreateWarpedVRT( GDALDatasetH hSrcDS,
+     {
+         double dfDesiredXRes = (extent-&gt;maxx - extent-&gt;minx) / width;
+         double dfDesiredYRes = (extent-&gt;maxy - extent-&gt;miny) / height;
++#if GDAL_VERSION_NUM &gt;= GDAL_COMPUTE_VERSION(3, 13, 0)
++        double dfDesiredRes = CPL_MIN( dfDesiredXRes, dfDesiredYRes );
++        double dfGuessedFullRes = CPL_MIN( adfDstGeoTransform[1],
++                                   fabs(adfDstGeoTransform[5]) );
++#else
+         double dfDesiredRes = MIN( dfDesiredXRes, dfDesiredYRes );
+         double dfGuessedFullRes = MIN( adfDstGeoTransform[1],
+                                    fabs(adfDstGeoTransform[5]) );
++#endif
+         double dfApproxDstOvrRatio = dfDesiredRes / dfGuessedFullRes;
+ 
+         GDALRasterBandH hFirstBand = GDALGetRasterBand(hSrcDS, 1);
diff -Nru mapcache-1.14.1/debian/patches/series mapcache-1.14.1/debian/patches/series
--- mapcache-1.14.1/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ mapcache-1.14.1/debian/patches/series	2026-04-16 19:23:52.000000000 +0200
@@ -0,0 +1 @@
+gdal-3.13.patch

--===============9205638647266242337==--
]