pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/geography/gdal-lib geography/gdal*: Update to 3.3.2
details: https://anonhg.NetBSD.org/pkgsrc/rev/a7731ea0098b
branches: trunk
changeset: 458075:a7731ea0098b
user: gdt <gdt%pkgsrc.org@localhost>
date: Wed Sep 08 22:48:13 2021 +0000
description:
geography/gdal*: Update to 3.3.2
Upstream changes are bugfixes.
One bugfix is applied locally and has been fixed differently upstream.
This version mostly passes gdal's tests on NetBSD 9 amd64, if one
rebuilds base sqlite3 with rtree.
diffstat:
geography/gdal-lib/Makefile | 7 +++-
geography/gdal-lib/Makefile.common | 8 +++--
geography/gdal-lib/distinfo | 13 +++++----
geography/gdal-lib/patches/patch-gcore_gdalopeninfo.cpp | 23 +++++++++++++++++
geography/gdal-lib/patches/patch-port_cpl__conv.cpp | 4 +-
5 files changed, 42 insertions(+), 13 deletions(-)
diffs (115 lines):
diff -r 586df48af1b4 -r a7731ea0098b geography/gdal-lib/Makefile
--- a/geography/gdal-lib/Makefile Wed Sep 08 22:20:47 2021 +0000
+++ b/geography/gdal-lib/Makefile Wed Sep 08 22:48:13 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.139 2021/06/23 20:33:11 nia Exp $
+# $NetBSD: Makefile,v 1.140 2021/09/08 22:48:13 gdt Exp $
.include "../../geography/gdal-lib/Makefile.common"
PKGNAME= ${DISTNAME:S/gdal/gdal-lib/}
-PKGREVISION= 2
+#PKGREVISION= 0
COMMENT= Translator library for raster geospatial data formats
@@ -32,6 +32,9 @@
# \todo: Support geopdf by including poppler, PoDoFo, or PDFium.
# https://gdal.org/drivers/raster/pdf.html
+# Avoid NetBSD base sqlite3, which is deficient because it lacks rtree.
+# \todo Enhance pkgsrc to be able to declare that modules are needed.
+#BUILDLINK_API_DEPENDS.sqlite3+= sqlite3>=3.36.0
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/netcdf/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
diff -r 586df48af1b4 -r a7731ea0098b geography/gdal-lib/Makefile.common
--- a/geography/gdal-lib/Makefile.common Wed Sep 08 22:20:47 2021 +0000
+++ b/geography/gdal-lib/Makefile.common Wed Sep 08 22:48:13 2021 +0000
@@ -1,22 +1,24 @@
-# $NetBSD: Makefile.common,v 1.13 2021/07/05 17:25:29 gdt Exp $
+# $NetBSD: Makefile.common,v 1.14 2021/09/08 22:48:13 gdt Exp $
#
# used by geography/gdal-lib/Makefile
# used by geography/py-gdal/Makefile
# Accomodate testing unreleased versions.
-VERSION_BASE= 3.3.1
+VERSION_BASE= 3.3.2
#VERSION_RC= rc1
VERSION= ${VERSION_BASE}${VERSION_RC}
DISTNAME= gdal-${VERSION}
EXTRACT_SUFX= .tar.xz
CATEGORIES= geography
-MASTER_SITES= https://download.osgeo.org/gdal/${VERSION_BASE}/
+MASTER_SITES= https://download.osgeo.org/gdal/${VERSION_BASE}${VERSION_RC}/
MAINTAINER= gdt%NetBSD.org@localhost
#MAINTAINER+= brook%nmsu.edu@localhost
HOMEPAGE= http://www.gdal.org/
LICENSE= mit
+WRKSRC= ${WRKDIR}/gdal-${VERSION_BASE}
+
PATCHDIR= ${.CURDIR}/../../geography/gdal-lib/patches
DISTINFO_FILE= ${.CURDIR}/../../geography/gdal-lib/distinfo
diff -r 586df48af1b4 -r a7731ea0098b geography/gdal-lib/distinfo
--- a/geography/gdal-lib/distinfo Wed Sep 08 22:20:47 2021 +0000
+++ b/geography/gdal-lib/distinfo Wed Sep 08 22:48:13 2021 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.47 2021/07/05 17:25:29 gdt Exp $
+$NetBSD: distinfo,v 1.48 2021/09/08 22:48:13 gdt Exp $
-SHA1 (gdal-3.3.1.tar.xz) = 43ae8ce8255d0bc60c59331cecde9574780aed3a
-RMD160 (gdal-3.3.1.tar.xz) = 7d2e737733248346201cad75987f258e065dc14d
-SHA512 (gdal-3.3.1.tar.xz) = 54d726d2ca5a2d11ece4ea5aef7d9c71ac4f8fb3a91b489a5f7bc9b16405e0ec82ee9220381f8566a555b6ef05f3241e05b36a5a78eb4f726afb945ba8cbcbcb
-Size (gdal-3.3.1.tar.xz) = 12933888 bytes
+SHA1 (gdal-3.3.2.tar.xz) = 61bdc71dd611e02137400f7dbbc8f219fa21cf3d
+RMD160 (gdal-3.3.2.tar.xz) = 812d7a48b7bdb200ec6a87e6537bd8f2fbd39c2b
+SHA512 (gdal-3.3.2.tar.xz) = 24599095a9185b3ca5170609cbcf682756c9d5f4c43343034f89c1cbb237bc943702c167731c926eaacfb0d5385dede21e5c5c4c27bc6c3b3b8ee18d9e8ceee5
+Size (gdal-3.3.2.tar.xz) = 12940900 bytes
SHA1 (patch-frmts_grib_degrib_degrib_myutil.c) = 0e046afa236d7e0d6186fe392cb2da05fa5b42c5
-SHA1 (patch-port_cpl__conv.cpp) = dd309911e85512d2a477d55f33f77f79e62482eb
+SHA1 (patch-gcore_gdalopeninfo.cpp) = 1650dd183a97e8b14004349974e08be136363c03
+SHA1 (patch-port_cpl__conv.cpp) = bd77ae1b4cf1bed41be4b8189391156fdc68f57d
diff -r 586df48af1b4 -r a7731ea0098b geography/gdal-lib/patches/patch-gcore_gdalopeninfo.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/gdal-lib/patches/patch-gcore_gdalopeninfo.cpp Wed Sep 08 22:48:13 2021 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-gcore_gdalopeninfo.cpp,v 1.1 2021/09/08 22:48:13 gdt Exp $
+
+Upstream code assumes that fopen(dir, 'r') will fail, when POSIX requires
+it to succeed. Extend the "only on FreeBSD" conditional to all systems.
+
+Fixed differently upstream post 3.3.2 after discussion.
+
+--- gcore/gdalopeninfo.cpp.orig 2021-09-01 09:48:45.000000000 +0000
++++ gcore/gdalopeninfo.cpp
+@@ -213,12 +213,8 @@ retry: // TODO(schwehr): Stop using got
+
+ #endif // HAVE_READLINK
+
+-#ifdef __FreeBSD__
+- /* FreeBSD 8 oddity: fopen(a_directory, "rb") returns non NULL */
++ /* fopen(dir, "r") is required to succeed, per POSIX */
+ bool bPotentialDirectory = (eAccess == GA_ReadOnly);
+-#else
+- bool bPotentialDirectory = false;
+-#endif // __FreeBDS__
+
+ /* Check if the filename might be a directory of a special virtual file system */
+ if( STARTS_WITH(pszFilename, "/vsizip/") ||
diff -r 586df48af1b4 -r a7731ea0098b geography/gdal-lib/patches/patch-port_cpl__conv.cpp
--- a/geography/gdal-lib/patches/patch-port_cpl__conv.cpp Wed Sep 08 22:20:47 2021 +0000
+++ b/geography/gdal-lib/patches/patch-port_cpl__conv.cpp Wed Sep 08 22:48:13 2021 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-port_cpl__conv.cpp,v 1.3 2020/04/28 00:24:48 gdt Exp $
+$NetBSD: patch-port_cpl__conv.cpp,v 1.4 2021/09/08 22:48:13 gdt Exp $
Avoid visibility define that masks usage that is apparently beyond XOPEN or C99.
-Not yet net upstream; waiting until we are caught up.
+Not yet sent upstream.
--- port/cpl_conv.cpp.orig 2020-01-08 11:49:05.000000000 +0000
+++ port/cpl_conv.cpp
Home |
Main Index |
Thread Index |
Old Index