Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2026 09:31:59 +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: 88b20c8adc50 - main - graphics/mapcache: Fix build with gdal 3.13.0+
Message-ID:  <6a02f38f.37ade.23058c73@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=88b20c8adc500b82a905a1d0b6b285c05dd5ba7f

commit 88b20c8adc500b82a905a1d0b6b285c05dd5ba7f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-05-12 09:17:25 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-05-12 09:31:14 +0000

    graphics/mapcache: Fix build with gdal 3.13.0+
    
    /wrkdirs/usr/ports/graphics/mapcache/work/mapcache-1.14.1/lib/source_gdal.c:350:31: warning: call to undeclared function 'MIN'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
      350 |         double dfDesiredRes = MIN( dfDesiredXRes, dfDesiredYRes );
          |                               ^
    1 warning generated.
    ...
    : && /usr/local/libexec/ccache/cc -O2 -pipe  -std=c99 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wall -Werror=declaration-after-statement -Wno-comment -O2 -pipe  -std=c99 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DNDEBUG -Xlinker --dependency-file=cgi/CMakeFiles/mapcache.fcgi.dir/link.d cgi/CMakeFiles/mapcache.fcgi.dir/mapcache.c.o -o cgi/mapcache.fcgi  -Wl,-rpath,/wrkdirs/usr/ports/graphics/mapcache/work/.build:/usr/local/lib:  libmapcache.so.1.14.1  /usr/local/lib/libfcgi.so  /usr/local/lib/libpng.so  /usr/lib/libz.so  /usr/local/lib/libjpeg.so  /usr/local/lib/libcurl.so  /usr/local/lib/libapr-1.so  /usr/local/lib/libaprutil-1.so  /usr/local/lib/libpixman-1.so  /usr/local/lib/libgdal.so  /usr/local/lib/libsqlite3.so  -lm && :
    ld: error: undefined reference: MIN
    >>> referenced by libmapcache.so.1.14.1 (disallowed by --no-allow-shlib-undefined)
    cc: error: linker command failed with exit code 1 (use -v to see invocation)
    
    Obtained from:  https://github.com/MapServer/mapcache/commit/0948ea28df9ef5dae8705196b32f0742268953cf
    Approved by:    portmgr (blanket)
---
 graphics/mapcache/Makefile | 3 +++
 graphics/mapcache/distinfo | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/graphics/mapcache/Makefile b/graphics/mapcache/Makefile
index e7eaac9f191d..d9132ef6425a 100644
--- a/graphics/mapcache/Makefile
+++ b/graphics/mapcache/Makefile
@@ -4,6 +4,9 @@ PORTREVISION=	4
 CATEGORIES=		graphics
 MASTER_SITES=		http://download.osgeo.org/mapserver/
 
+PATCH_SITES=	https://github.com/MapServer/mapcache/commit/
+PATCHFILES=	0948ea28df9ef5dae8705196b32f0742268953cf.patch:-p1
+
 MAINTAINER=		wen@FreeBSD.org
 COMMENT=		Server that implements tile caching to speed up access to WMS layers
 WWW=			https://www.mapserver.org/mapcache/
diff --git a/graphics/mapcache/distinfo b/graphics/mapcache/distinfo
index e3f09aaa6e42..59cd0ed76f9e 100644
--- a/graphics/mapcache/distinfo
+++ b/graphics/mapcache/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1723021687
+TIMESTAMP = 1778385590
 SHA256 (mapcache-1.14.1.tar.gz) = 633a2a84d87237caacd227c9fb42a4b5cd7dec83864f277e933916c2e8e4f0c1
 SIZE (mapcache-1.14.1.tar.gz) = 1065269
+SHA256 (0948ea28df9ef5dae8705196b32f0742268953cf.patch) = b143b4aa71db1a575fb32d0ddb8858c033bbfa664ab04bd991a9908b5fe376e5
+SIZE (0948ea28df9ef5dae8705196b32f0742268953cf.patch) = 1093


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a02f38f.37ade.23058c73>