<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fd6da0d6d934e204821f8f61a6cf789d185e8818">https://github.com/macports/macports-ports/commit/fd6da0d6d934e204821f8f61a6cf789d185e8818</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit fd6da0d6d934e204821f8f61a6cf789d185e8818
</span>Author: Nicklas Larsson <n_larsson@yahoo.com>
AuthorDate: Wed Jun 5 14:12:15 2024 +0200
<span style='display:block; white-space:pre;color:#404040;'> gdal, py-gdal: update to 3.9.0
</span>---
gis/gdal/Portfile | 11 +++----
gis/gdal/files/patch-have_shared_mutex.diff | 51 -----------------------------
python/py-gdal/Portfile | 11 ++++---
3 files changed, 11 insertions(+), 62 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/gdal/Portfile b/gis/gdal/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 153d4c1285a..05c7b76e9ed 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gis/gdal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/gis/gdal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -8,12 +8,12 @@ PortGroup legacysupport 1.0
</span> PortGroup muniversal 1.0
name gdal
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 3.8.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 3.9.0
</span> revision 0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 295a15ae2621b0dfb7592fead8d19290858f108b \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 e8b4df2a8a7d25272f867455c0c230459545972f81f0eff2ddbf6a6f60dcb1e4 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 8871404
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 985c6815be054cad493c7b931c679bb8516ee774 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 577f80e9d14ff7c90b6bfbc34201652b4546700c01543efb4f4c3050e0b3fda2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 9081116
</span>
categories gis
license MIT BSD
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -48,9 +48,6 @@ cmake.set_cxx_standard yes
</span> # See https://trac.macports.org/ticket/56908
compiler.thread_local_storage yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# https://trac.macports.org/ticket/68716
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles-append patch-have_shared_mutex.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> configure.optflags -DGDAL_COMPILATION
depends_build-append \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/gis/gdal/files/patch-have_shared_mutex.diff b/gis/gdal/files/patch-have_shared_mutex.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index cd848203f82..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/gis/gdal/files/patch-have_shared_mutex.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,51 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Addresses https://trac.macports.org/ticket/68716,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-committed upstream https://github.com/OSGeo/gdal/commit/994e40dbbf3dfd58ad66de02d87070afafd8da88
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- cmake/template/cpl_config.h.in.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ cmake/template/cpl_config.h.in
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -175,6 +175,9 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* Define to 1 if you have the `sched_getaffinity' function. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #cmakedefine HAVE_SCHED_GETAFFINITY 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+/* Define to 1 if you have the `std::shared_mutex' function. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#cmakedefine HAVE_SHARED_MUTEX 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* Define to 1 if you have the `uselocale' function. */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #cmakedefine HAVE_USELOCALE 1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- cmake/helpers/configure.cmake.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ cmake/helpers/configure.cmake
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -359,6 +359,19 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- add_definitions(-DDONT_DEPRECATE_SPRINTF)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- endif ()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ check_cxx_source_compiles(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ #include <shared_mutex>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ int main(int argc, const char * argv[]) {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ std::shared_mutex smtx;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ smtx.lock_shared();
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ smtx.unlock_shared();
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ "
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ HAVE_SHARED_MUTEX
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ )
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- check_include_file("linux/userfaultfd.h" HAVE_USERFAULTFD_H)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- endif ()
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- port/cpl_vsi_mem.cpp.orig
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ port/cpl_vsi_mem.cpp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -50,7 +50,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <mutex>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- // c++17 or VS2017
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--#if __cplusplus >= 201703L || _MSC_VER >= 1910
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if defined(HAVE_SHARED_MUTEX) || _MSC_VER >= 1910
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <shared_mutex>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define CPL_SHARED_MUTEX_TYPE std::shared_mutex
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define CPL_SHARED_LOCK std::shared_lock<std::shared_mutex>
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-gdal/Portfile b/python/py-gdal/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 92bdfe13b4a..82a6b36d187 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-gdal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-gdal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,7 +7,7 @@ PortGroup select 1.0
</span> name py-gdal
python.rootname GDAL
# keep version in sync with gdal; rebuilt after gdal update
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 3.8.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 3.9.0
</span> revision 0
categories-append gis
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -20,9 +20,9 @@ long_description This Python package and extensions are a number of tools for
</span>
homepage https://www.gdal.org
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 d459e0f7f60516f263f67baad215b76be22f1b1e \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 ad8addd58ba9c62aefc7f65d345c168736798f137e5c8f247af76fcf4862d371 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 802628
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 92bf1a95fb5da655fe0063c7f1d49f573e63e329 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 7c2a857cf903b9921357e0dfae593f2fe6f7dcd2ea42600577d5fc3c864fb066 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 839919
</span>
python.versions 38 39 310 311 312
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -30,6 +30,9 @@ if {${name} ne ${subport}} {
</span> compiler.cxx_standard 2011
compiler.thread_local_storage yes
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Setting build.cmd manually may be removed when py-numpy is >= 2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.cmd "${python.bin} -m build --no-isolation --skip-dependency-check"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> depends_run-append \
port:gdal_select
</pre><pre style='margin:0'>
</pre>