<pre style='margin:0'>
Renee Otten (reneeotten) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5dc1e2df43d7f0791160297925ac1c39f84b1df3">https://github.com/macports/macports-ports/commit/5dc1e2df43d7f0791160297925ac1c39f84b1df3</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5dc1e2df43d7f0791160297925ac1c39f84b1df3
</span>Author: Nicklas Larsson <n_larsson@yahoo.com>
AuthorDate: Tue Apr 9 11:09:03 2024 +0200
<span style='display:block; white-space:pre;color:#404040;'> grass: fix runtime bug with PDAL 2.7.0+
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Committed upstream https://github.com/OSGeo/grass/commit/544a78044fb61d74ecac5683268dccbb1320bd38
</span>---
gis/grass/Portfile | 5 +-
gis/grass/files/04_patch-pdal.diff | 135 +++++++++++++++++++++++++++++++++++++
2 files changed, 138 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/grass/Portfile b/gis/grass/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 66be993f8df..fe4da4784ab 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gis/grass/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/grass/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,7 +7,7 @@ epoch 1
</span>
name grass
version 8.3.2
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
maintainers {yahoo.com:n_larsson @nilason} openmaintainer
categories gis
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -55,7 +55,8 @@ depends_lib-append port:bzip2 \
</span>
patchfiles 01_patch-dyld-link.diff \
02_grass-python.diff \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- 03_patch_python312.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 03_patch_python312.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 04_patch-pdal.diff
</span>
# c++17 needed for PDAL 2.4+
compiler.cxx_standard 2017
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/grass/files/04_patch-pdal.diff b/gis/grass/files/04_patch-pdal.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..b973240b41f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/grass/files/04_patch-pdal.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,135 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Addressed upstream: https://github.com/OSGeo/grass/commit/544a78044fb61d74ecac5683268dccbb1320bd38
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.orig 2024-03-06 22:24:05
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure 2024-04-09 10:47:08
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -9378,41 +9378,52 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ac_fn_cxx_try_link "$LINENO"; then :
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PDAL_LIBS="$PDAL_LIBS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ as_fn_error $? "*** Unable to locate suitable (>=1.7.1) PDAL library." "$LINENO" 5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++rm -f core conftest.err conftest.$ac_objext \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ conftest$ac_exeext conftest.$ac_ext
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++$as_echo "#define HAVE_PDAL 1" >>confdefs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PDAL NoFilenameWriter" >&5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++$as_echo_n "checking whether to use PDAL NoFilenameWriter... " >&6; }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* end confdefs.h. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <pdal/PointTable.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #include <pdal/Streamable.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- class St:public pdal::Streamable {};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <pdal/Writer.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ class St:public pdal::NoFilenameWriter {};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ main ()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-pdal::PointTable table;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ class NFWTest : public pdal::NoFilenameWriter {};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ _ACEOF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ac_fn_cxx_try_link "$LINENO"; then :
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- PDAL_LIBS="$PDAL_LIBS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- as_fn_error $? "*** Unable to locate suitable (>=1.7.1) PDAL library." "$LINENO" 5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-rm -f core conftest.err conftest.$ac_objext \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- conftest$ac_exeext conftest.$ac_ext
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++$as_echo "#define HAVE_PDAL_NOFILENAMEWRITER 1" >>confdefs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++$as_echo "yes" >&6; }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++$as_echo "no" >&6; }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f core conftest.err conftest.$ac_objext \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conftest$ac_exeext conftest.$ac_ext
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBS=${ac_save_libs}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CFLAGS=${ac_save_cflags}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-$as_echo "#define HAVE_PDAL 1" >>confdefs.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- configure.ac.orig 2024-03-06 22:24:05
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ configure.ac 2024-04-09 10:39:46
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1058,18 +1058,26 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBS="$LIBS $PDAL_LIBS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CFLAGS="$CFLAGS $PDAL_CFLAGS"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pdal/PointTable.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- #include <pdal/Streamable.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- class St:public pdal::Streamable {};]], [[pdal::PointTable table;]])],[],[
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_TRY_LINK([#include <pdal/PointTable.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <pdal/Streamable.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- class St:public pdal::Streamable {};],[pdal::PointTable table;],PDAL_LIBS="$PDAL_LIBS",[
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ class St:public pdal::Streamable {};]], [[pdal::PointTable table;]])],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ [PDAL_LIBS="$PDAL_LIBS"],[
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_MSG_ERROR([*** Unable to locate suitable (>=1.7.1) PDAL library.])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AC_DEFINE(HAVE_PDAL, 1, [Define to 1 if PDAL exists.])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AC_MSG_CHECKING(whether to use PDAL NoFilenameWriter)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pdal/Writer.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ class St:public pdal::NoFilenameWriter {};]], [[
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ class NFWTest : public pdal::NoFilenameWriter {};
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ]])],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ [
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AC_DEFINE(HAVE_PDAL_NOFILENAMEWRITER, 1, [Define to 1 if PDAL NoFilenameWriter is present.])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ AC_MSG_RESULT(yes)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ],[AC_MSG_RESULT(no)])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LIBS=${ac_save_libs}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CFLAGS=${ac_save_cflags}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- AC_DEFINE(HAVE_PDAL, 1, [Define to 1 if PDAL is to be used.])
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ AC_SUBST(PDAL_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/grass/config.h.in.orig 2024-03-06 22:24:05
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/grass/config.h.in 2024-04-09 10:44:21
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -155,6 +155,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Define to 1 if PDAL is to be used. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef HAVE_PDAL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* Define to 1 if PDAL NoFilenameWriter is present. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#undef HAVE_PDAL_NOFILENAMEWRITER
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* define if glXCreateGLXPixmap exists */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #undef HAVE_PIXMAPS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- raster/r.in.pdal/grassrasterwriter.h.orig 2024-03-06 22:24:05
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ raster/r.in.pdal/grassrasterwriter.h 2024-04-09 10:45:31
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -32,7 +32,12 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <pdal/Writer.hpp>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Binning code wrapped as a PDAL Writer class */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef HAVE_PDAL_NOFILENAMEWRITER
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++class GrassRasterWriter : public pdal::NoFilenameWriter,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ public pdal::Streamable {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class GrassRasterWriter : public pdal::Writer, public pdal::Streamable {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ public:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GrassRasterWriter() : n_processed(0) {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>