[From nobody Fri Apr 24 13:55:07 2026
Received: (at submit) by bugs.debian.org; 17 Apr 2026 04:30:39 +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, 28; hammy, 150; neutral, 51; 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]:44340)
 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 1wDaql-00Cz3Q-22
 for submit@bugs.debian.org; Fri, 17 Apr 2026 04:30:39 +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=oWsN4Gbg14J5lEg4XNpfHSjrupn2rZXjoQDu19RZlAU=; b=A3RwzqZD2WxPOqQE/TcWy493wL
 gKmeqEoG3rmqjrnCKf4o50y7O39/gkOnLeZzLnTECMTNafwVz1Dg396iTM7jWJYA2o8YNB5lIL+CH
 wEiukCgwBM8OAWp4cVfSWVLR0Z4X6WnT77aCRAF5IVUiPJwXjsj53dHXhjl31m5wYuPztQNGViPzl
 9qdrSDq4zBR9I628DjbEDS4Nnp1FZelPqh+d075gXhgREhaAhVVL3czhnhUEE9RoagdF1fCQ1yw83
 VjP+qktrbnH++dXvpWxc6Zgw5dqKKv4tSv+DuEvzj/eNyxTC7Jvmt1iPykXskwFpGsGZPSZZwWLfB
 TUZljglw==;
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 1wDaqj-00F7pu-3D; Fri, 17 Apr 2026 04:30:38 +0000
Received: by osiris.linuxminded.xs4all.nl (Postfix, from userid 1000)
 id CEEC017400E7; Fri, 17 Apr 2026 06:30:36 +0200 (CEST)
Content-Type: multipart/mixed; boundary=&quot;===============2630278524347339041==&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: qmapshack: FTBFS with GDAL 3.13.0
Message-ID: &lt;177640023678.2688213.9176353180970769689.reportbug@osiris.linuxminded.xs4all.nl&gt;
X-Mailer: reportbug 13.2.0
Date: Fri, 17 Apr 2026 06:30:36 +0200
X-Debian-User: sebastic
Delivered-To: submit@bugs.debian.org

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


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

Source: qmapshack
Version: 1.20.1-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: implicit declaration of function 'MIN' [-Wimplicit-function-declaration]
 error: implicit declaration of function 'MAX' [-Wimplicit-function-declaration]

The attached patch fixes the issue.

Kind Regards,

Bas

--===============2630278524347339041==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;qmapshack_1.20.1-1.debdiff&quot;

diff -Nru qmapshack-1.20.1/debian/patches/gdal-3.13.patch qmapshack-1.20.1/debian/patches/gdal-3.13.patch
--- qmapshack-1.20.1/debian/patches/gdal-3.13.patch	1970-01-01 01:00:00.000000000 +0100
+++ qmapshack-1.20.1/debian/patches/gdal-3.13.patch	2026-04-17 06:14:14.000000000 +0200
@@ -0,0 +1,19 @@
+Description: Fix FTBFS with GDAL 3.13.0.
+ error: 'MIN' was not declared in this scope
+ error: 'MAX' was not declared in this scope
+Author: Bas Couwenberg &lt;sebastic@debian.org&gt;
+
+--- a/src/qmt_map2jnx/main.cpp
++++ b/src/qmt_map2jnx/main.cpp
+@@ -430,7 +430,11 @@ static void printProgress(int current, i
+   static int nLastTick = -1;
+   int nThisTick = (int)(dfComplete * 40.0);
+ 
++#if GDAL_VERSION_NUM &gt;= GDAL_COMPUTE_VERSION(3, 13, 0)
++  nThisTick = CPL_MIN(40, CPL_MAX(0, nThisTick));
++#else
+   nThisTick = MIN(40, MAX(0, nThisTick));
++#endif
+ 
+   // Have we started a new progress run?
+   if (nThisTick &lt; nLastTick &amp;&amp; nLastTick &gt;= 39) {
diff -Nru qmapshack-1.20.1/debian/patches/series qmapshack-1.20.1/debian/patches/series
--- qmapshack-1.20.1/debian/patches/series	2025-11-06 15:30:14.000000000 +0100
+++ qmapshack-1.20.1/debian/patches/series	2026-04-17 06:14:14.000000000 +0200
@@ -1 +1,2 @@
 proj.patch
+gdal-3.13.patch

--===============2630278524347339041==--
]