Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] libgdal: update to 3.5.2
@ 2022-10-30  5:27 kruceter
  2022-10-30  6:22 ` [PR PATCH] [Updated] " kruceter
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: kruceter @ 2022-10-30  5:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 561 bytes --]

There is a new pull request by kruceter against master on the void-packages repository

https://github.com/kruceter/void-packages libgdal
https://github.com/void-linux/void-packages/pull/40225

libgdal: update to 3.5.2
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-musl

Since python 2 packages are excluded from this update, issue #38229 is related.

A patch file from https://github.com/void-linux/void-packages/pull/40225.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libgdal-40225.patch --]
[-- Type: text/x-diff, Size: 21385 bytes --]

From d37157dd102c869caca4ef150ac6301d762baae9 Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Sun, 30 Oct 2022 05:35:32 +0300
Subject: [PATCH 1/6] libgdal: update to 3.5.2.

---
 common/shlibs                                 |  2 +-
 srcpkgs/libgdal-python                        |  1 +
 srcpkgs/libgdal/patches/10-atoll.patch        | 34 ++++++++++++
 .../patches/20-userfaultfd-detection.patch    | 29 ++++++++++
 srcpkgs/libgdal/patches/30-license.patch      | 13 +++++
 ...e16e27c5fc4c491debe50bf2b7f3e94ed334.patch | 53 -------------------
 ...c4893e6d14d488dfed25745d79f11bee45b9.patch | 31 -----------
 srcpkgs/libgdal/patches/missing-include.patch | 12 -----
 srcpkgs/libgdal/template                      | 48 +++++++++++------
 srcpkgs/libgdal/update                        |  2 +-
 10 files changed, 111 insertions(+), 114 deletions(-)
 create mode 120000 srcpkgs/libgdal-python
 create mode 100644 srcpkgs/libgdal/patches/10-atoll.patch
 create mode 100644 srcpkgs/libgdal/patches/20-userfaultfd-detection.patch
 create mode 100644 srcpkgs/libgdal/patches/30-license.patch
 delete mode 100644 srcpkgs/libgdal/patches/9ef8e16e27c5fc4c491debe50bf2b7f3e94ed334.patch
 delete mode 100644 srcpkgs/libgdal/patches/ab72c4893e6d14d488dfed25745d79f11bee45b9.patch
 delete mode 100644 srcpkgs/libgdal/patches/missing-include.patch

diff --git a/common/shlibs b/common/shlibs
index 7bd563a89134..ae3b96bf5ebf 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2502,7 +2502,7 @@ libu2f-host.so.0 libu2f-host-1.1.10_5
 libu2f-server.so.0 libu2f-server-1.1.0_9
 libsqlcipher.so.0 sqlcipher-4.3.0_3
 libgta.so.1 libgta-1.2.0_1
-libgdal.so.26 libgdal-3.0.4_9
+libgdal.so.31 libgdal-3.5.2_1
 libosgViewer.so.131 osg-3.4.1_1
 libosgShadow.so.131 osg-3.4.1_1
 libosgParticle.so.131 osg-3.4.1_1
diff --git a/srcpkgs/libgdal-python b/srcpkgs/libgdal-python
new file mode 120000
index 000000000000..377d50dfc2b8
--- /dev/null
+++ b/srcpkgs/libgdal-python
@@ -0,0 +1 @@
+libgdal
\ No newline at end of file
diff --git a/srcpkgs/libgdal/patches/10-atoll.patch b/srcpkgs/libgdal/patches/10-atoll.patch
new file mode 100644
index 000000000000..a114098612c5
--- /dev/null
+++ b/srcpkgs/libgdal/patches/10-atoll.patch
@@ -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 )
diff --git a/srcpkgs/libgdal/patches/20-userfaultfd-detection.patch b/srcpkgs/libgdal/patches/20-userfaultfd-detection.patch
new file mode 100644
index 000000000000..e3940866b016
--- /dev/null
+++ b/srcpkgs/libgdal/patches/20-userfaultfd-detection.patch
@@ -0,0 +1,29 @@
+Author: Holger Jaekel <holger.jaekel@gmx.de>
+Summary: userfaultfd is disabled in musl
+----
+
+--- a/configure
++++ b/configure
+@@ -20573,21 +20573,7 @@
+ done
+ 
+ 
+-for ac_header in linux/userfaultfd.h
+-do :
+-  ac_fn_c_check_header_mongrel "$LINENO" "linux/userfaultfd.h" "ac_cv_header_linux_userfaultfd_h" "$ac_includes_default"
+-if test "x$ac_cv_header_linux_userfaultfd_h" = xyes; then :
+-  cat >>confdefs.h <<_ACEOF
+-#define HAVE_LINUX_USERFAULTFD_H 1
+-_ACEOF
+- ENABLE_UFFD="yes"
+-else
+-  ENABLE_UFFD="no"
+-fi
+-
+-done
+-
+-ENABLE_UFFD=$ENABLE_UFFD
++ENABLE_UFFD="no"
+ 
+ 
+ case "${host_os}" in
diff --git a/srcpkgs/libgdal/patches/30-license.patch b/srcpkgs/libgdal/patches/30-license.patch
new file mode 100644
index 000000000000..5c310c8c8e86
--- /dev/null
+++ b/srcpkgs/libgdal/patches/30-license.patch
@@ -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
diff --git a/srcpkgs/libgdal/patches/9ef8e16e27c5fc4c491debe50bf2b7f3e94ed334.patch b/srcpkgs/libgdal/patches/9ef8e16e27c5fc4c491debe50bf2b7f3e94ed334.patch
deleted file mode 100644
index 968edeb32c77..000000000000
--- a/srcpkgs/libgdal/patches/9ef8e16e27c5fc4c491debe50bf2b7f3e94ed334.patch
+++ /dev/null
@@ -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,
diff --git a/srcpkgs/libgdal/patches/ab72c4893e6d14d488dfed25745d79f11bee45b9.patch b/srcpkgs/libgdal/patches/ab72c4893e6d14d488dfed25745d79f11bee45b9.patch
deleted file mode 100644
index 643eac882f6f..000000000000
--- a/srcpkgs/libgdal/patches/ab72c4893e6d14d488dfed25745d79f11bee45b9.patch
+++ /dev/null
@@ -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;
diff --git a/srcpkgs/libgdal/patches/missing-include.patch b/srcpkgs/libgdal/patches/missing-include.patch
deleted file mode 100644
index 71d194406838..000000000000
--- a/srcpkgs/libgdal/patches/missing-include.patch
+++ /dev/null
@@ -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>
- 
diff --git a/srcpkgs/libgdal/template b/srcpkgs/libgdal/template
index ce58be57dc87..2b986955b119 100644
--- a/srcpkgs/libgdal/template
+++ b/srcpkgs/libgdal/template
@@ -1,36 +1,51 @@
 # Template file for 'libgdal'
 pkgname=libgdal
-version=3.0.4
-revision=12
+version=3.5.2
+revision=1
 wrksrc="gdal-${version}"
-build_style=gnu-configure
-configure_args="--with-liblzma --with-webp --with-zstd --with-podofo --with-opencl=yes"
-hostmakedepends="gettext-devel pkg-config python-numpy json-c-devel"
-makedepends="freexl-devel geos-devel jasper-devel json-c-devel
- libcurl-devel libopenexr-devel libopenjpeg2-devel libpodofo-devel libqhull-devel
- libwebp-devel libxml2-devel libzstd-devel netcdf-devel opencl2-headers pcre2-devel
- proj-devel sqlite-devel ocl-icd-devel"
+build_style=cmake
+configure_args="-DGDAL_USE_OPENCL=ON"
+hostmakedepends="pkg-config bison python3-setuptools swig python3-numpy"
+makedepends="python3-devel armadillo-devel freexl-devel c-blosc-devel cfitsio-devel
+ geos-devel expat-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"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
-homepage="http://www.gdal.org/"
-distfiles="http://download.osgeo.org/gdal/${version}/gdal-${version}.tar.xz"
-checksum=5569a4daa1abcbba47a9d535172fc335194d9214fdb96cd0f139bb57329ae277
-subpackages="libgdal-devel libgdal-tools"
+homepage="https://www.gdal.org"
+changelog="https://github.com/OSGeo/gdal/raw/v${version}/NEWS.md"
+distfiles="https://download.osgeo.org/gdal/${version}/gdal-${version}.tar.xz"
+checksum=0874dfdeb9ac42e53c37be4184b19350be76f0530e1f4fa8004361635b9030c2
+subpackages="libgdal-devel libgdal-tools libgdal-python"
+python_version=3
 
 if [ -z "$CROSS_BUILD" ]; then
 	makedepends+=" hdf5-devel"
 fi
 
 post_install() {
-	vinstall gdal.pc 644 usr/lib/pkgconfig
 	vlicense LICENSE.TXT
 }
 
+libgdal-python_package() {
+	depends="${sourcepkg}>=${version}_${revision}"
+	short_desc+=" - python bindings"
+	pkg_install() {
+		vmove ${py3_sitelib}
+	}
+}
+
 libgdal-tools_package() {
 	depends="${sourcepkg}>=${version}_${revision}"
 	short_desc+=" - tools"
 	pkg_install() {
+		vmove usr/share/man/man1
+		vmove usr/share/bash-completion
 		vmove usr/bin
 	}
 }
@@ -40,9 +55,10 @@ libgdal-devel_package() {
 	short_desc+=" - development files"
 	pkg_install() {
 		vmove usr/bin/gdal-config
+		vmove usr/share/man/man1/gdal-config.1
 		vmove usr/include
 		vmove usr/lib/pkgconfig
-		vmove usr/lib/*.a
-		vmove usr/lib/*.so
+		vmove usr/lib/cmake
+		vmove "usr/lib/*.so"
 	}
 }
diff --git a/srcpkgs/libgdal/update b/srcpkgs/libgdal/update
index 489f765d4370..64898fa33ad2 100644
--- a/srcpkgs/libgdal/update
+++ b/srcpkgs/libgdal/update
@@ -1,2 +1,2 @@
-site=http://trac.osgeo.org/gdal/wiki/DownloadSource
+site=https://download.osgeo.org/gdal
 pattern='gdal-\K[\d]+\.[\d]+\.[\d]+'

From 08126aa95f78618f2ef15916be6ebf5ff1d12544 Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Sun, 30 Oct 2022 05:46:48 +0300
Subject: [PATCH 2/6] osg: revbump for libgdal-3.5.2

---
 srcpkgs/osg/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/osg/template b/srcpkgs/osg/template
index 08bf6d4b6591..9b80c81617ce 100644
--- a/srcpkgs/osg/template
+++ b/srcpkgs/osg/template
@@ -2,7 +2,7 @@
 pkgname=osg
 reverts=3.6.0_1
 version=3.4.1
-revision=12
+revision=13
 wrksrc=OpenSceneGraph-OpenSceneGraph-${version}
 build_style=cmake
 build_helper="qemu"

From 796319687855a0e3065b421cd2f07ffa007c502f Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Sun, 30 Oct 2022 05:54:42 +0300
Subject: [PATCH 3/6] postgis-postgresql14: revbump for libgdal-3.5.2

---
 srcpkgs/postgis-postgresql14/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/postgis-postgresql14/template b/srcpkgs/postgis-postgresql14/template
index a7540659ab5a..a58109d65246 100644
--- a/srcpkgs/postgis-postgresql14/template
+++ b/srcpkgs/postgis-postgresql14/template
@@ -1,7 +1,7 @@
 # Template file for 'postgis-postgresql14'
 pkgname=postgis-postgresql14
 version=3.2.1
-revision=2
+revision=3
 wrksrc="postgis-${version}"
 build_style=gnu-configure
 configure_args="

From 3e84e9a14226b960bfc1fdba6ba31d50c87059ea Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Sun, 30 Oct 2022 05:54:43 +0300
Subject: [PATCH 4/6] postgis-postgresql13: revbump for libgdal-3.5.2

---
 srcpkgs/postgis-postgresql13/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/postgis-postgresql13/template b/srcpkgs/postgis-postgresql13/template
index f17ace2f9fb4..ea024d3093a7 100644
--- a/srcpkgs/postgis-postgresql13/template
+++ b/srcpkgs/postgis-postgresql13/template
@@ -1,7 +1,7 @@
 # Template file for 'postgis-postgresql13'
 pkgname=postgis-postgresql13
 version=3.2.1
-revision=1
+revision=2
 wrksrc="postgis-${version}"
 build_style=gnu-configure
 configure_args="

From 0e076280905a5ff0133fd2685552ffee44784707 Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Sun, 30 Oct 2022 05:54:43 +0300
Subject: [PATCH 5/6] OpenOrienteering-Mapper: revbump for libgdal-3.5.2

---
 srcpkgs/OpenOrienteering-Mapper/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/OpenOrienteering-Mapper/template b/srcpkgs/OpenOrienteering-Mapper/template
index fd29a08e75b6..06181bd1f8a7 100644
--- a/srcpkgs/OpenOrienteering-Mapper/template
+++ b/srcpkgs/OpenOrienteering-Mapper/template
@@ -1,7 +1,7 @@
 # Template file for 'OpenOrienteering-Mapper'
 pkgname=OpenOrienteering-Mapper
 version=0.9.5
-revision=1
+revision=2
 wrksrc="mapper-${version}"
 build_style=cmake
 hostmakedepends="doxygen qt5-host-tools qt5-plugin-sqlite qt5-qmake qt5-tools"

From 97278bc702c2621ac8539a9e59d052ae19633fd4 Mon Sep 17 00:00:00 2001
From: Krul Ceter <kruceter@proton.me>
Date: Sun, 30 Oct 2022 06:07:26 +0300
Subject: [PATCH 6/6] grass: revbump for libgdal-3.5.2, fix build

---
 srcpkgs/grass/patches/c99-bool.patch | 157 +++++++++++++++++++++++++++
 srcpkgs/grass/template               |   2 +-
 2 files changed, 158 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/grass/patches/c99-bool.patch

diff --git a/srcpkgs/grass/patches/c99-bool.patch b/srcpkgs/grass/patches/c99-bool.patch
new file mode 100644
index 000000000000..ce0cdfcd6928
--- /dev/null
+++ b/srcpkgs/grass/patches/c99-bool.patch
@@ -0,0 +1,157 @@
+From 1e0c11f526f64755f877957ce6c14b2159c3823f Mon Sep 17 00:00:00 2001
+From: nilason <n_larsson@yahoo.com>
+Date: Wed, 19 May 2021 11:38:49 +0200
+Subject: [PATCH] libgis: Enable the C99 bool type (#1567)
+
+Enables globally the C99 'bool' type with its values 'true' and 'false'.
+
+The old boolean constants 'TRUE' and 'FALSE' are still valid but
+redefined to 'true' and 'false' to emphasize their equivalence.
+
+(Re-)definitions of TRUE/FALSE in modules are removed.
+
+This change was originally triggered by a conflict of v.hull -- defining
+a local bool type -- with GDAL 3.3 which introduced the inclusion of
+stdbool.h (#1563).
+---
+ lib/lidar/lidar.h            |  3 ---
+ raster/r.param.scale/param.h |  2 --
+ raster/r.surf.idw/main.h     |  2 --
+ raster3d/r3.showdspf/Ball.c  |  2 --
+ raster3d/r3.showdspf/togif.c |  3 ---
+ vector/v.hull/chull.c        | 20 ++++++++------------
+ 7 files changed, 14 insertions(+), 27 deletions(-)
+
+diff --git a/lib/lidar/lidar.h b/lib/lidar/lidar.h
+index 89a25de3bf..978894ea74 100644
+--- a/lib/lidar/lidar.h
++++ b/lib/lidar/lidar.h
+@@ -62,9 +62,6 @@
+     /* INTERPOLATOR */
+ #define P_BILINEAR 		1
+ #define P_BICUBIC 		0
+-    /* Boolean definitions */
+-#define TRUE 			1
+-#define FALSE 			0
+ 
+ /*----------------------------------------------------------------------------------------------------------*/
+     /*STRUCTS DECLARATION */
+diff --git a/raster/r.param.scale/param.h b/raster/r.param.scale/param.h
+index 9c1dab4e81..2512fedaa2 100644
+--- a/raster/r.param.scale/param.h
++++ b/raster/r.param.scale/param.h
+@@ -18,8 +18,6 @@
+ 				/* 'blank' edge around raster.          */
+ #define MAX_WSIZE 499		/* Maximum dimensions of window.        */
+ 				/* Some useful labels.                  */
+-#define TRUE 1
+-#define FALSE 0
+ 
+ #define RAD2DEG M_R2D
+ #define DEG2RAD M_D2R
+diff --git a/raster/r.surf.idw/main.h b/raster/r.surf.idw/main.h
+index 33164f43cb..47028e7444 100644
+--- a/raster/r.surf.idw/main.h
++++ b/raster/r.surf.idw/main.h
+@@ -1,8 +1,6 @@
+ #include <grass/raster.h>
+ 
+ #define         SHORT           short
+-#define         TRUE    1
+-#define         FALSE   0
+ 
+ #define MELEMENT        struct Melement
+ MELEMENT {
+diff --git a/raster3d/r3.showdspf/Ball.c b/raster3d/r3.showdspf/Ball.c
+index fb3b79882f..ae3ec3933a 100644
+--- a/raster3d/r3.showdspf/Ball.c
++++ b/raster3d/r3.showdspf/Ball.c
+@@ -7,8 +7,6 @@
+ #include "Ball.h"
+ #include "BallMath.h"
+ #include <stdio.h>
+-#define TRUE 1
+-#define FALSE 0
+ 
+ HMatrix mId = { {1, 0, 0, 0}
+ , {0, 1, 0, 0}
+diff --git a/raster3d/r3.showdspf/togif.c b/raster3d/r3.showdspf/togif.c
+index 589f243a8d..b48236b33f 100644
+--- a/raster3d/r3.showdspf/togif.c
++++ b/raster3d/r3.showdspf/togif.c
+@@ -324,9 +324,6 @@ static int ditherrow(unsigned short *r, unsigned short *g, unsigned short *b,
+  *
+  *****************************************************************************/
+ 
+-#define TRUE 1
+-#define FALSE 0
+-
+ 
+ /************************** BumpPixel() ********************************/
+ /*
+diff --git a/vector/v.hull/chull.c b/vector/v.hull/chull.c
+index 1ad97396fa..584af5d8ba 100644
+--- a/vector/v.hull/chull.c
++++ b/vector/v.hull/chull.c
+@@ -29,10 +29,6 @@
+ 
+ #include "globals.h"
+ 
+-/*Define Boolean type */
+-typedef enum
+-{ BFALSE, BTRUE } bool;
+-
+ /* Define vertex indices. */
+ #define X   0
+ #define Y   1
+@@ -76,10 +72,10 @@ struct tFaceStructure
+ };
+ 
+ /* Define flags */
+-#define ONHULL   	BTRUE
+-#define REMOVED  	BTRUE
+-#define VISIBLE  	BTRUE
+-#define PROCESSED	BTRUE
++#define ONHULL   	true
++#define REMOVED  	true
++#define VISIBLE  	true
++#define PROCESSED	true
+ 
+ /* Global variable definitions */
+ tVertex vertices = NULL;
+@@ -436,7 +432,7 @@ bool AddOne(tVertex p)
+     tFace f;
+     tEdge e, temp;
+     long int vol;
+-    bool vis = BFALSE;
++    bool vis = false;
+ 
+ 
+     /* Mark faces visible from p. */
+@@ -446,7 +442,7 @@ bool AddOne(tVertex p)
+ 
+ 	if (vol < 0) {
+ 	    f->visible = VISIBLE;
+-	    vis = BTRUE;
++	    vis = true;
+ 	}
+ 	f = f->next;
+     } while (f != faces);
+@@ -454,7 +450,7 @@ bool AddOne(tVertex p)
+     /* If no faces are visible from p, then p is inside the hull. */
+     if (!vis) {
+ 	p->onhull = !ONHULL;
+-	return BFALSE;
++	return false;
+     }
+ 
+     /* Mark edges in interior of visible region for deletion.
+@@ -470,7 +466,7 @@ bool AddOne(tVertex p)
+ 	    e->newface = MakeConeFace(e, p);
+ 	e = temp;
+     } while (e != edges);
+-    return BTRUE;
++    return true;
+ }
+ 
+ /*---------------------------------------------------------------------
diff --git a/srcpkgs/grass/template b/srcpkgs/grass/template
index bccd691a8116..0296cb13d7f1 100644
--- a/srcpkgs/grass/template
+++ b/srcpkgs/grass/template
@@ -1,7 +1,7 @@
 # Template file for 'grass'
 pkgname=grass
 version=7.6.1
-revision=4
+revision=5
 _binver=${version//./}
 _binver=${_binver:0:2}
 build_style=gnu-configure

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2022-11-05  3:27 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-30  5:27 [PR PATCH] libgdal: update to 3.5.2 kruceter
2022-10-30  6:22 ` [PR PATCH] [Updated] " kruceter
2022-10-30  9:04 ` [PR REVIEW] " classabbyamp
2022-10-30  9:04 ` classabbyamp
2022-10-30 18:09 ` [PR PATCH] [Updated] " kruceter
2022-10-30 18:12 ` [PR REVIEW] " kruceter
2022-10-31  1:37 ` kruceter
2022-10-31  1:57 ` classabbyamp
2022-10-31 12:51 ` [PR PATCH] [Updated] " kruceter
2022-10-31 12:55 ` kruceter
2022-11-01  6:06 ` kruceter
2022-11-01  6:32 ` kruceter
2022-11-01  6:33 ` kruceter
2022-11-01  6:34 ` [PR REVIEW] " classabbyamp
2022-11-01  7:15 ` kruceter
2022-11-01 11:14 ` kruceter
2022-11-01 11:35 ` [PR PATCH] [Updated] " kruceter
2022-11-01 17:59 ` [PR PATCH] [Updated] libgdal: update to 3.5.3 kruceter
2022-11-02 13:29 ` kruceter
2022-11-03  7:11 ` kruceter
2022-11-03  8:01 ` kruceter
2022-11-03 20:34 ` [PR PATCH] [Updated] " kruceter
2022-11-03 20:40 ` kruceter
2022-11-03 22:51 ` kruceter
2022-11-03 23:05 ` kruceter
2022-11-04  9:05 ` kruceter
2022-11-04 12:36 ` kruceter
2022-11-05  3:23 ` the-maldridge
2022-11-05  3:27 ` [PR PATCH] [Merged]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).