Date: Sunday, January 15, 2023 @ 22:35:42
Author: svenstaro
Revision: 1383651
archrelease: copy trunk to community-staging-x86_64
Added:
pdal/repos/community-staging-x86_64/
pdal/repos/community-staging-x86_64/PKGBUILD
(from rev 1383650, pdal/trunk/PKGBUILD)
pdal/repos/community-staging-x86_64/ff6875f6e45ca2fca7a21feaa537eb3fa715ea37.patch
(from rev 1383650,
pdal/trunk/ff6875f6e45ca2fca7a21feaa537eb3fa715ea37.patch)
------------------------------------------------+
PKGBUILD | 38 +++++++++++++++++
ff6875f6e45ca2fca7a21feaa537eb3fa715ea37.patch | 49 +++++++++++++++++++++++
2 files changed, 87 insertions(+)
Copied: pdal/repos/community-staging-x86_64/PKGBUILD (from rev 1383650,
pdal/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-01-15 22:35:42 UTC (rev 1383651)
@@ -0,0 +1,38 @@
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Contributor: SaultDon <sault.don gmail>
+pkgname=pdal
+pkgver=2.5.0
+pkgrel=1
+pkgdesc="A C++ library for translating and manipulating point cloud data"
+arch=('x86_64')
+url="http://www.pdal.io"
+license=('BSD')
+depends=('gdal' 'libgeotiff' 'jsoncpp' 'libunwind')
+makedepends=('cmake' 'python' 'python-numpy' 'ninja' 'postgresql-libs')
+optdepends=('python-numpy: for the Python plugin'
+ 'sqlite: for the sqlite plugin'
+ 'postgresql-libs: for the postgresql plugin')
+provides=('pdal')
+source=("https://github.com/PDAL/PDAL/releases/download/${pkgver}/PDAL-${pkgver}-src.tar.gz")
+sha512sums=('10545ad44efbb7a654d596d4a861a81177d61a602ff8425965def5dd99e1595a7873c741f99eefcd7ae5dc7f438b321b51399db3b33fb8eddf46bec8394472b4')
+
+build() {
+ cd "PDAL-$pkgver-src/"
+
+ cmake \
+ -Bbuild \
+ -GNinja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_PLUGIN_PGPOINTCLOUD=ON \
+ -DWITH_COMPLETION=ON
+
+ ninja -C build
+}
+
+package() {
+ cd "PDAL-$pkgver-src"
+
+ DESTDIR="$pkgdir/" ninja -C build install
+
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
+}
Copied:
pdal/repos/community-staging-x86_64/ff6875f6e45ca2fca7a21feaa537eb3fa715ea37.patch
(from rev 1383650, pdal/trunk/ff6875f6e45ca2fca7a21feaa537eb3fa715ea37.patch)
===================================================================
--- community-staging-x86_64/ff6875f6e45ca2fca7a21feaa537eb3fa715ea37.patch
(rev 0)
+++ community-staging-x86_64/ff6875f6e45ca2fca7a21feaa537eb3fa715ea37.patch
2023-01-15 22:35:42 UTC (rev 1383651)
@@ -0,0 +1,49 @@
+From ff6875f6e45ca2fca7a21feaa537eb3fa715ea37 Mon Sep 17 00:00:00 2001
+From: Andrew Bell <[email protected]>
+Date: Tue, 24 Jul 2018 08:49:40 -0400
+Subject: [PATCH] Constify python strings. Close #2099
+
+---
+ plugins/python/plang/Environment.cpp | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/plugins/python/plang/Environment.cpp
b/plugins/python/plang/Environment.cpp
+index 19f5c1ae7..0bbcf2d70 100644
+--- a/plugins/python/plang/Environment.cpp
++++ b/plugins/python/plang/Environment.cpp
+@@ -190,9 +190,9 @@ std::string getTraceback()
+ throw pdal::pdal_error("unable to get repr in getTraceback");
+ #if PY_MAJOR_VERSION >= 3
+ Py_ssize_t size;
+- char *d = PyUnicode_AsUTF8AndSize(r, &size);
++ const char *d = PyUnicode_AsUTF8AndSize(r, &size);
+ #else
+- char *d = PyString_AsString(r);
++ const char *d = PyString_AsString(r);
+ #endif
+ mssg << d;
+ }
+@@ -208,9 +208,9 @@ std::string getTraceback()
+ throw pdal::pdal_error("couldn't make string representation of
traceback value");
+ #if PY_MAJOR_VERSION >= 3
+ Py_ssize_t size;
+- char *d = PyUnicode_AsUTF8AndSize(r, &size);
++ const char *d = PyUnicode_AsUTF8AndSize(r, &size);
+ #else
+- char *d = PyString_AsString(r);
++ const char *d = PyString_AsString(r);
+ #endif
+ mssg << d;
+ }
+@@ -266,9 +266,9 @@ std::string readPythonString(PyObject* dict, const
std::string& key)
+ throw pdal::pdal_error("unable to get repr in readPythonString");
+ #if PY_MAJOR_VERSION >= 3
+ Py_ssize_t size;
+- char *d = PyUnicode_AsUTF8AndSize(r, &size);
++ const char *d = PyUnicode_AsUTF8AndSize(r, &size);
+ #else
+- char *d = PyString_AsString(r);
++ const char *d = PyString_AsString(r);
+ #endif
+ ss << d;
+