Bug#1134128: pgsql-ogr-fdw: FTBFS with GDAL 3.13.0
Bas Couwenberg
sebastic at debian.org
Thu Apr 16 20:05:40 BST 2026
Source: pgsql-ogr-fdw
Version: 1.1.7-2
Severity: important
Tags: upstream ftbfs patch
User: debian-gis at 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
-------------- next part --------------
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 <sebastic at debian.org>
+
+--- 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 >= 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
More information about the Pkg-grass-devel
mailing list