[From nobody Sat May 23 07:21:06 2026
Received: (at submit) by bugs.debian.org; 16 Apr 2026 19:05:43 +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, 25; hammy, 150; neutral, 48; 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]:34934)
 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 1wDS23-00Bucj-01
 for submit@bugs.debian.org; Thu, 16 Apr 2026 19:05:43 +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=7sqPWsVgtkYMZHo8ruTAx1hcy6PGJ9Abjtmi4JqiQfM=; b=WSaWaBJH/8dInPTdS7t0J4jO0b
 qeT4uD59SviijircXcnAcaKMTedZs13aohfcIeurVuwqdPZrDm7HSGi0cJi6nNrZXWcPOC1Jk9Z4z
 Xwyp5heSYkXfNjpzqsTFdDCOLx11QwPtPjqXRG5y0nqDo85s/n/b7NfyqdSoeWyHKvz5/aUMOTTT5
 JOwr1iJgIk+32AxOJHgeKLMvEukStrGiAVtK57hGUHlknvcD6rBfsTN85U/gHwm342SfKKKJ/z2U/
 QQkk+AUrhU4W42CrU5f7yAamoQmYrpPYpYs+Z3TTKmd6uf9itHjidKk+Ybin6gxHyEod/p89xhO9B
 wi/+4m3A==;
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 1wDS21-00Ep9c-1S; Thu, 16 Apr 2026 19:05:41 +0000
Received: by osiris.linuxminded.xs4all.nl (Postfix, from userid 1000)
 id 106C417400E7; Thu, 16 Apr 2026 21:05:41 +0200 (CEST)
Content-Type: multipart/mixed; boundary=&quot;===============0292997330992461165==&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: pgsql-ogr-fdw: FTBFS with GDAL 3.13.0
Message-ID: &lt;177636634099.2571307.12771216970210257914.reportbug@osiris.linuxminded.xs4all.nl&gt;
X-Mailer: reportbug 13.2.0
Date: Thu, 16 Apr 2026 21:05:40 +0200
X-Debian-User: sebastic
Delivered-To: submit@bugs.debian.org

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


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

Source: pgsql-ogr-fdw
Version: 1.1.7-2
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

--===============0292997330992461165==
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=&quot;pgsql-ogr-fdw_1.1.7-2.debdiff&quot;

diff -Nru pgsql-ogr-fdw-1.1.7/debian/patches/gdal-3.13.patch pgsql-ogr-fdw-1.1.7/debian/patches/gdal-3.13.patch
--- pgsql-ogr-fdw-1.1.7/debian/patches/gdal-3.13.patch	1970-01-01 01:00:00.000000000 +0100
+++ pgsql-ogr-fdw-1.1.7/debian/patches/gdal-3.13.patch	2026-04-16 20:58:10.000000000 +0200
@@ -0,0 +1,18 @@
+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/ogr_fdw_info.c
++++ b/ogr_fdw_info.c
+@@ -64,7 +64,11 @@ static char identifier[NAMEDATALEN+3];
+ const char*
+ quote_identifier(const char* ident)
+ {
++#if GDAL_VERSION_NUM &gt;= GDAL_COMPUTE_VERSION(3, 13, 0)
++	int len = (int)CPL_MIN(strlen(ident), NAMEDATALEN - 1);
++#else
+ 	int len = (int)MIN(strlen(ident), NAMEDATALEN - 1);
++#endif
+ 
+ 	if (reserved_word(ident))
+ 	{
diff -Nru pgsql-ogr-fdw-1.1.7/debian/patches/series pgsql-ogr-fdw-1.1.7/debian/patches/series
--- pgsql-ogr-fdw-1.1.7/debian/patches/series	2022-07-30 06:13:20.000000000 +0200
+++ pgsql-ogr-fdw-1.1.7/debian/patches/series	2026-04-16 20:58:10.000000000 +0200
@@ -1,2 +1,3 @@
 install.patch
 hardingflags.patch
+gdal-3.13.patch

--===============0292997330992461165==--
]