<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/53177f1aaef7e201e848fca04c5d2002afff4afa">https://github.com/macports/macports-ports/commit/53177f1aaef7e201e848fca04c5d2002afff4afa</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 53177f1aaef7e201e848fca04c5d2002afff4afa
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Tue May 16 11:13:15 2023 +0800

<span style='display:block; white-space:pre;color:#404040;'>    starpu: unbreak the port, fix from upstream
</span>---
 devel/starpu/Portfile                              | 14 +++++++++-----
 .../starpu/files/patch-starpu_mpi_world_rank.diff  | 22 ++++++++++++++++++++++
 2 files changed, 31 insertions(+), 5 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/starpu/Portfile b/devel/starpu/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 90dd000ad30..2a24fd23ade 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/starpu/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/starpu/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -13,9 +13,9 @@ legacysupport.newest_darwin_requires_legacy 15
</span> # Until next release switching to commit-based setup due to several important fixes by upstream. See:
 # https://github.com/starpu-runtime/starpu/issues/15
 # https://github.com/starpu-runtime/starpu/issues/16
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup        starpu-runtime starpu 9563a47472940f4be9f199ffba10d40ef327cb44
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup        starpu-runtime starpu e8f83a290384fd9453bac3cb0e3b2cb35e4091b6
</span> version             1.4.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> categories          devel
 license             LGPL-2.1
 maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -26,12 +26,16 @@ long_description    StarPU is a runtime system that offers support for heterogen
</span>                     not only takes care of offloading such kernels (and implementing data coherency \
                     across the machine), but it also makes sure the kernels are executed as efficiently as possible.
 homepage            https://starpu.gitlabpages.inria.fr
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums           rmd160  3f1ec1e159aa611c4da8868a48022bcb1c73a357 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    sha256  f08323df276ac5e08039b01da5a71c32d38f670b19e72a803e69bcf05d23f305 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    size    13693158
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  fe19314a671bcd3e04b24fbebd6c7708d11b18f7 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  0adedaad4d9f01efa1230c32454a44d70b19466f26bc85d501ea39576438fc92 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    13696760
</span> 
 patchfiles          autogen.sh.patch
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/starpu-runtime/starpu/issues/21
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://gitlab.inria.fr/starpu/starpu/-/commit/68ad5cd770bc4e1cc079062630be3617977c57b6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append   patch-starpu_mpi_world_rank.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> compiler.blacklist-append \
                     *gcc-4.* {clang < 400}
 compilers.choose    fc f90 f77 cc
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/starpu/files/patch-starpu_mpi_world_rank.diff b/devel/starpu/files/patch-starpu_mpi_world_rank.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..266856e35fb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/starpu/files/patch-starpu_mpi_world_rank.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/common/utils.c.orig        2023-04-27 17:17:42.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/common/utils.c     2023-05-16 05:48:30.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -531,6 +531,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           char *host=NULL, *srv_hosts;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           srv_hosts = strdup(force_mpi_hostnames);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           int rank;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifdef STARPU_HAVE_DARWIN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++          _STARPU_DISP("Detection of MPI rank disabled on darwin, assuming rank is 0");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++          rank = 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           if (starpu_mpi_world_rank)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   rank = starpu_mpi_world_rank();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -540,7 +544,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   _STARPU_DISP("StarPU-MPI unavailable, the rank of this process is 0");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   rank = 0;
</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;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           if (force_mpi_hostnames != NULL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+           {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                   host = strtok(srv_hosts, " ");
</span></pre><pre style='margin:0'>

</pre>