libgdal: update to 3.5.3.
This commit is contained in:
parent
e2897bf299
commit
750ff65be4
11 changed files with 122 additions and 115 deletions
|
@ -2510,7 +2510,7 @@ libu2f-host.so.0 libu2f-host-1.1.10_5
|
||||||
libu2f-server.so.0 libu2f-server-1.1.0_9
|
libu2f-server.so.0 libu2f-server-1.1.0_9
|
||||||
libsqlcipher.so.0 sqlcipher-4.3.0_3
|
libsqlcipher.so.0 sqlcipher-4.3.0_3
|
||||||
libgta.so.1 libgta-1.2.0_1
|
libgta.so.1 libgta-1.2.0_1
|
||||||
libgdal.so.26 libgdal-3.0.4_9
|
libgdal.so.31 libgdal-3.5.3_1
|
||||||
libosgViewer.so.131 osg-3.4.1_1
|
libosgViewer.so.131 osg-3.4.1_1
|
||||||
libosgShadow.so.131 osg-3.4.1_1
|
libosgShadow.so.131 osg-3.4.1_1
|
||||||
libosgParticle.so.131 osg-3.4.1_1
|
libosgParticle.so.131 osg-3.4.1_1
|
||||||
|
|
1
srcpkgs/libgdal-python3
Symbolic link
1
srcpkgs/libgdal-python3
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
libgdal
|
34
srcpkgs/libgdal/patches/10-atoll.patch
Normal file
34
srcpkgs/libgdal/patches/10-atoll.patch
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
Author: Holger Jaekel <holger.jaekel@gmx.de>
|
||||||
|
Summary: musl atoll() doesn't return ERANGE in case of overflow
|
||||||
|
----
|
||||||
|
|
||||||
|
--- a/port/cpl_conv.cpp
|
||||||
|
+++ b/port/cpl_conv.cpp
|
||||||
|
@@ -1011,8 +1011,6 @@
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
-#if defined(__MINGW32__) || defined(__sun__)
|
||||||
|
-
|
||||||
|
// mingw atoll() doesn't return ERANGE in case of overflow
|
||||||
|
static int CPLAtoGIntBigExHasOverflow(const char* pszString, GIntBig nVal)
|
||||||
|
{
|
||||||
|
@@ -1035,8 +1033,6 @@
|
||||||
|
return strcmp(szBuffer, pszString) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
-#endif
|
||||||
|
-
|
||||||
|
/************************************************************************/
|
||||||
|
/* CPLAtoGIntBigEx() */
|
||||||
|
/************************************************************************/
|
||||||
|
@@ -1065,9 +1061,7 @@
|
||||||
|
GIntBig nVal = atol(pszString);
|
||||||
|
#endif
|
||||||
|
if( errno == ERANGE
|
||||||
|
-#if defined(__MINGW32__) || defined(__sun__)
|
||||||
|
|| CPLAtoGIntBigExHasOverflow(pszString, nVal)
|
||||||
|
-#endif
|
||||||
|
)
|
||||||
|
{
|
||||||
|
if( pbOverflow )
|
13
srcpkgs/libgdal/patches/20-userfaultfd-detection.patch
Normal file
13
srcpkgs/libgdal/patches/20-userfaultfd-detection.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
userfaultfd is disabled in musl
|
||||||
|
|
||||||
|
--- a/cmake/helpers/configure.cmake
|
||||||
|
+++ b/cmake/helpers/configure.cmake
|
||||||
|
@@ -337,8 +337,6 @@
|
||||||
|
set(DONT_DEPRECATE_SPRINTF 1)
|
||||||
|
add_definitions(-DDONT_DEPRECATE_SPRINTF)
|
||||||
|
endif ()
|
||||||
|
-
|
||||||
|
- check_include_file("linux/userfaultfd.h" HAVE_USERFAULTFD_H)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
13
srcpkgs/libgdal/patches/30-license.patch
Normal file
13
srcpkgs/libgdal/patches/30-license.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
LICENSE.txt is placed separately to /usr/share/licenses.
|
||||||
|
There is no need to duplicate it to /usr/share.
|
||||||
|
|
||||||
|
--- a/gdal.cmake
|
||||||
|
+++ b/gdal.cmake
|
||||||
|
@@ -576,7 +576,6 @@
|
||||||
|
PROPERTY PUBLIC_HEADER ${CMAKE_CURRENT_BINARY_DIR}/port/cpl_config.h)
|
||||||
|
|
||||||
|
set(GDAL_DATA_FILES
|
||||||
|
- LICENSE.TXT
|
||||||
|
data/GDALLogoBW.svg
|
||||||
|
data/GDALLogoColor.svg
|
||||||
|
data/GDALLogoGS.svg
|
19
srcpkgs/libgdal/patches/40-fix-setup-py-cc.patch
Normal file
19
srcpkgs/libgdal/patches/40-fix-setup-py-cc.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
--- a/swig/python/setup.py.in
|
||||||
|
+++ b/swig/python/setup.py.in
|
||||||
|
@@ -29,14 +29,12 @@
|
||||||
|
if os.environ['CXX'].strip().startswith('ccache ') and os.environ['CXX'].strip()[len('ccache '):].find(' ') < 0:
|
||||||
|
os.environ['CXX'] = os.environ['CXX'].strip()[len('ccache '):]
|
||||||
|
else:
|
||||||
|
- print('WARNING: "CXX=%s" was defined in the environment and contains more than one word. Unsetting it since that is incompatible of setuptools' % os.environ['CXX'])
|
||||||
|
- del os.environ['CXX']
|
||||||
|
+ os.environ['CXX'] = os.environ['CXX'].split(' ', 1)[0]
|
||||||
|
if 'CC' in os.environ and os.environ['CC'].strip().find(' ') >= 0:
|
||||||
|
if os.environ['CC'].strip().startswith('ccache ') and os.environ['CC'].strip()[len('ccache '):].find(' ') < 0:
|
||||||
|
os.environ['CC'] = os.environ['CC'].strip()[len('ccache '):]
|
||||||
|
else:
|
||||||
|
- print('WARNING: "CC=%s" was defined in the environment and contains more than one word. Unsetting it since that is incompatible of setuptools' % os.environ['CC'])
|
||||||
|
- del os.environ['CC']
|
||||||
|
+ os.environ['CC'] = os.environ['CC'].split(' ', 1)[0]
|
||||||
|
|
||||||
|
# ---------------------------------------------------------------------------
|
||||||
|
# Switches
|
|
@ -1,53 +0,0 @@
|
||||||
From 9ef8e16e27c5fc4c491debe50bf2b7f3e94ed334 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Even Rouault <even.rouault@spatialys.com>
|
|
||||||
Date: Mon, 5 Oct 2020 12:11:52 +0200
|
|
||||||
Subject: [PATCH] JPEG2000: make it build with Jasper 2.0.21 (fixes #3012)
|
|
||||||
|
|
||||||
---
|
|
||||||
gdal/frmts/jpeg2000/jpeg2000_vsil_io.cpp | 16 +++++++++-------
|
|
||||||
gdal/frmts/jpeg2000/jpeg2000dataset.cpp | 2 +-
|
|
||||||
2 files changed, 10 insertions(+), 8 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/gdal/frmts/jpeg2000/jpeg2000_vsil_io.cpp b/gdal/frmts/jpeg2000/jpeg2000_vsil_io.cpp
|
|
||||||
index 10a4f96f0ee..ebcac4010ce 100644
|
|
||||||
--- a/frmts/jpeg2000/jpeg2000_vsil_io.cpp
|
|
||||||
+++ b/frmts/jpeg2000/jpeg2000_vsil_io.cpp
|
|
||||||
@@ -94,13 +94,24 @@
|
|
||||||
* File stream object.
|
|
||||||
\******************************************************************************/
|
|
||||||
|
|
||||||
+#if defined(PRIjas_seqent)
|
|
||||||
+static int JPEG2000_VSIL_read(jas_stream_obj_t *obj, char *buf, unsigned cnt)
|
|
||||||
+#else
|
|
||||||
static int JPEG2000_VSIL_read(jas_stream_obj_t *obj, char *buf, int cnt)
|
|
||||||
+#endif
|
|
||||||
{
|
|
||||||
jas_stream_VSIFL_t *fileobj = JAS_CAST(jas_stream_VSIFL_t *, obj);
|
|
||||||
return static_cast<int>(VSIFReadL(buf, 1, cnt, fileobj->fp));
|
|
||||||
}
|
|
||||||
|
|
||||||
+#if defined(JAS_INCLUDE_JP2_CODEC)
|
|
||||||
+// Jasper 2.0.21
|
|
||||||
+static int JPEG2000_VSIL_write(jas_stream_obj_t *obj, const char *buf, unsigned int cnt)
|
|
||||||
+#elif defined(PRIjas_seqent)
|
|
||||||
+static int JPEG2000_VSIL_write(jas_stream_obj_t *obj, char *buf, unsigned int cnt)
|
|
||||||
+#else
|
|
||||||
static int JPEG2000_VSIL_write(jas_stream_obj_t *obj, char *buf, int cnt)
|
|
||||||
+#endif
|
|
||||||
{
|
|
||||||
jas_stream_VSIFL_t *fileobj = JAS_CAST(jas_stream_VSIFL_t *, obj);
|
|
||||||
return static_cast<int>(VSIFWriteL(buf, 1, cnt, fileobj->fp));
|
|
||||||
|
|
||||||
diff --git a/gdal/frmts/jpeg2000/jpeg2000dataset.cpp b/gdal/frmts/jpeg2000/jpeg2000dataset.cpp
|
|
||||||
index a5a6b258ed9..bd1e7763186 100644
|
|
||||||
--- a/frmts/jpeg2000/jpeg2000dataset.cpp
|
|
||||||
+++ b/frmts/jpeg2000/jpeg2000dataset.cpp
|
|
||||||
@@ -513,7 +513,7 @@ int JPEG2000Dataset::DecodeImage()
|
|
||||||
for ( iBand = 0; iBand < nBands; iBand++ )
|
|
||||||
{
|
|
||||||
JPEG2000RasterBand* poBand = (JPEG2000RasterBand*) GetRasterBand(iBand+1);
|
|
||||||
- if (poBand->iDepth != jas_image_cmptprec( psImage, iBand ) ||
|
|
||||||
+ if (poBand->iDepth != static_cast<int>(jas_image_cmptprec( psImage, iBand )) ||
|
|
||||||
poBand->bSignedness != jas_image_cmptsgnd( psImage, iBand ))
|
|
||||||
{
|
|
||||||
CPLError(CE_Failure, CPLE_AppDefined,
|
|
|
@ -1,31 +0,0 @@
|
||||||
From ab72c4893e6d14d488dfed25745d79f11bee45b9 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Even Rouault <even.rouault@spatialys.com>
|
|
||||||
Date: Mon, 10 Aug 2020 17:26:53 +0200
|
|
||||||
Subject: [PATCH] JPEG2000: fix build with Jasper 2.0.17 (fixes #2844)
|
|
||||||
|
|
||||||
---
|
|
||||||
gdal/frmts/jpeg2000/jpeg2000dataset.cpp | 4 ++--
|
|
||||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/gdal/frmts/jpeg2000/jpeg2000dataset.cpp b/gdal/frmts/jpeg2000/jpeg2000dataset.cpp
|
|
||||||
index 3e668ffe503..2d3f4e46876 100644
|
|
||||||
--- a/frmts/jpeg2000/jpeg2000dataset.cpp
|
|
||||||
+++ b/frmts/jpeg2000/jpeg2000dataset.cpp
|
|
||||||
@@ -484,7 +484,7 @@ int JPEG2000Dataset::DecodeImage()
|
|
||||||
/* the JP2 boxes match the ones of the code stream */
|
|
||||||
if (nBands != 0)
|
|
||||||
{
|
|
||||||
- if (nBands != jas_image_numcmpts( psImage ))
|
|
||||||
+ if (nBands != static_cast<int>(jas_image_numcmpts( psImage )))
|
|
||||||
{
|
|
||||||
CPLError(CE_Failure, CPLE_AppDefined,
|
|
||||||
"The number of components indicated in the IHDR box (%d) mismatch "
|
|
||||||
@@ -595,7 +595,7 @@ GDALDataset *JPEG2000Dataset::Open( GDALOpenInfo * poOpenInfo )
|
|
||||||
|
|
||||||
{
|
|
||||||
int iFormat;
|
|
||||||
- char *pszFormatName = nullptr;
|
|
||||||
+ const char *pszFormatName = nullptr;
|
|
||||||
|
|
||||||
if (!Identify(poOpenInfo))
|
|
||||||
return nullptr;
|
|
|
@ -1,12 +0,0 @@
|
||||||
Index: gdal-3.0.4/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp
|
|
||||||
===================================================================
|
|
||||||
--- gdal-3.0.4.orig/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp
|
|
||||||
+++ gdal-3.0.4/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp
|
|
||||||
@@ -36,6 +36,7 @@
|
|
||||||
#include <cassert>
|
|
||||||
#include <cstring>
|
|
||||||
#include <iostream>
|
|
||||||
+#include <limits>
|
|
||||||
#include <memory>
|
|
||||||
#include <string>
|
|
||||||
|
|
|
@ -1,29 +1,41 @@
|
||||||
# Template file for 'libgdal'
|
# Template file for 'libgdal'
|
||||||
pkgname=libgdal
|
pkgname=libgdal
|
||||||
version=3.0.4
|
version=3.5.3
|
||||||
revision=12
|
revision=1
|
||||||
wrksrc="gdal-${version}"
|
wrksrc="gdal-${version}"
|
||||||
build_style=gnu-configure
|
build_style=cmake
|
||||||
configure_args="--with-liblzma --with-webp --with-zstd --with-podofo --with-opencl=yes"
|
build_helper=python3
|
||||||
hostmakedepends="gettext-devel pkg-config python-numpy json-c-devel"
|
configure_args="-DGDAL_USE_OPENCL=ON
|
||||||
makedepends="freexl-devel geos-devel jasper-devel json-c-devel
|
-DPython_NumPy_INCLUDE_DIR=/${py3_sitelib}/numpy/core/include/numpy"
|
||||||
libcurl-devel libopenexr-devel libopenjpeg2-devel libpodofo-devel libqhull-devel
|
hostmakedepends="pkg-config bison swig python3-numpy"
|
||||||
libwebp-devel libxml2-devel libzstd-devel netcdf-devel opencl2-headers pcre2-devel
|
makedepends="python3-devel freexl-devel c-blosc-devel geos-devel expat-devel
|
||||||
proj-devel sqlite-devel ocl-icd-devel"
|
jasper-devel giflib-devel json-c-devel libcurl-devel libopenexr-devel
|
||||||
|
libjpeg-turbo-devel libpng-devel tiff-devel libqhull-devel libwebp-devel
|
||||||
|
libxml2-devel liblzma-devel zlib-devel libzstd-devel libdeflate-devel
|
||||||
|
netcdf-devel opencl2-headers pcre2-devel proj-devel sqlite-devel
|
||||||
|
ocl-icd-devel libxerces-c-devel libspatialite-devel
|
||||||
|
postgresql-libs-devel"
|
||||||
|
checkdepends="python3-pytest"
|
||||||
short_desc="Geospatial Data Abstraction Library"
|
short_desc="Geospatial Data Abstraction Library"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="http://www.gdal.org/"
|
homepage="https://www.gdal.org"
|
||||||
distfiles="http://download.osgeo.org/gdal/${version}/gdal-${version}.tar.xz"
|
changelog="https://github.com/OSGeo/gdal/raw/v${version}/NEWS.md"
|
||||||
checksum=5569a4daa1abcbba47a9d535172fc335194d9214fdb96cd0f139bb57329ae277
|
distfiles="https://download.osgeo.org/gdal/${version}/gdal-${version}.tar.xz"
|
||||||
subpackages="libgdal-devel libgdal-tools"
|
checksum=d32223ddf145aafbbaec5ccfa5dbc164147fb3348a3413057f9b1600bb5b3890
|
||||||
|
subpackages="libgdal-devel libgdal-tools libgdal-python3"
|
||||||
|
python_version=3
|
||||||
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
makedepends+=" hdf5-devel"
|
makedepends+=" hdf5-devel armadillo-devel"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# "error: static assertion failed: OFF_T should be 64 bits !"
|
||||||
|
if [ "$XBPS_TARGET_WORDSIZE" = "64" ]; then
|
||||||
|
makedepends+=" cfitsio-devel"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall gdal.pc 644 usr/lib/pkgconfig
|
|
||||||
vlicense LICENSE.TXT
|
vlicense LICENSE.TXT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +43,8 @@ libgdal-tools_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - tools"
|
short_desc+=" - tools"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
vmove usr/share/man/man1
|
||||||
|
vmove usr/share/bash-completion
|
||||||
vmove usr/bin
|
vmove usr/bin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,9 +54,18 @@ libgdal-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/gdal-config
|
vmove usr/bin/gdal-config
|
||||||
|
vmove usr/share/man/man1/gdal-config.1
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove usr/lib/*.a
|
vmove usr/lib/cmake
|
||||||
vmove usr/lib/*.so
|
vmove "usr/lib/*.so"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
libgdal-python3_package() {
|
||||||
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
|
short_desc+=" - python3 bindings"
|
||||||
|
pkg_install() {
|
||||||
|
vmove ${py3_sitelib}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
site=http://trac.osgeo.org/gdal/wiki/DownloadSource
|
site=https://download.osgeo.org/gdal
|
||||||
pattern='gdal-\K[\d]+\.[\d]+\.[\d]+'
|
pattern='gdal-\K[\d]+\.[\d]+\.[\d]+'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue