Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2026 09:31:57 +0000
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 85d2317252d0 - main - databases/postgresql-ogr_fdw: Fix build with gdal 3.13.0+
Message-ID:  <6a02f38d.388c4.4585fd7d@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=85d2317252d0bca4e646ca2cd4f94cfc06340e4e

commit 85d2317252d0bca4e646ca2cd4f94cfc06340e4e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-05-12 09:17:23 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-05-12 09:31:13 +0000

    databases/postgresql-ogr_fdw: Fix build with gdal 3.13.0+
    
    cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -Wmissing-variable-declarations -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-format-truncation -Wno-cast-function-type-strict -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -fPIC -DPIC -fvisibility=hidden -I/usr/local/include -I. -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include     -c -o stringbuffer.o stringbuffer.c
    ogr_fdw_info.c:67:17: warning: call to undeclared function 'MIN'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       67 |         int len = (int)MIN(strlen(ident), NAMEDATALEN - 1);
          |                        ^
    1 warning generated.
    cc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Werror=unguarded-availability-new -Wendif-labels -Wmissing-format-attribute -Wcast-function-type -Wformat-security -Wmissing-variable-declarations -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-command-line-argument -Wno-compound-token-split-by-macro -Wno-format-truncation -Wno-cast-function-type-strict -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -fPIC -DPIC -fvisibility=hidden -o ogr_fdw_info ogr_fdw_info.o ogr_fdw_common.o stringbuffer.o -L/usr/local/lib -lgdal
    ld: error: undefined symbol: MIN
    >>> referenced by ogr_fdw_info.c
    >>>               ogr_fdw_info.o:(quote_identifier)
    >>> referenced by ogr_fdw_info.c
    >>>               ogr_fdw_info.o:(main)
    cc: error: linker command failed with exit code 1 (use -v to see invocation)
    gmake: *** [Makefile:76: ogr_fdw_info] Error 1
    
    Obtained from:  https://github.com/pramsey/pgsql-ogr-fdw/commit/fba0f6f7c97b0c162b996e1796fffb30abe9b38d
    Approved by:    portmgr (blanket)
---
 databases/postgresql-ogr_fdw/Makefile | 3 +++
 databases/postgresql-ogr_fdw/distinfo | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/databases/postgresql-ogr_fdw/Makefile b/databases/postgresql-ogr_fdw/Makefile
index 8c807d3179c7..b23e168f5a17 100644
--- a/databases/postgresql-ogr_fdw/Makefile
+++ b/databases/postgresql-ogr_fdw/Makefile
@@ -5,6 +5,9 @@ PORTREVISION=	2
 CATEGORIES=	databases
 PKGNAMEPREFIX=	postgresql${PGSQL_VER:S/.//}-
 
+PATCH_SITE=	https://github.com/pramsey/pgsql-ogr-fdw/commit/
+PATCHFILES=	fba0f6f7c97b0c162b996e1796fffb30abe9b38d.patch:-p1
+
 MAINTAINER=	lbartoletti@FreeBSD.org
 COMMENT=	PostgreSQL foreign data wrapper for OGR
 WWW=		https://github.com/pramsey/pgsql-ogr-fdw
diff --git a/databases/postgresql-ogr_fdw/distinfo b/databases/postgresql-ogr_fdw/distinfo
index 754700a39dd6..70fc6cc40e66 100644
--- a/databases/postgresql-ogr_fdw/distinfo
+++ b/databases/postgresql-ogr_fdw/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1762492594
+TIMESTAMP = 1778385586
 SHA256 (pramsey-pgsql-ogr-fdw-v1.1.7_GH0.tar.gz) = ba1f81c4d10b91b89cb775519b3749d584c0d4de3c01fe032de0f1ae62da3c78
 SIZE (pramsey-pgsql-ogr-fdw-v1.1.7_GH0.tar.gz) = 256735
+SHA256 (fba0f6f7c97b0c162b996e1796fffb30abe9b38d.patch) = 9bd32f213d985656ab0583e68cb9fea98e0e224aa8758cebc71958416c08f8d5
+SIZE (fba0f6f7c97b0c162b996e1796fffb30abe9b38d.patch) = 800


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a02f38d.388c4.4585fd7d>