<pre style='margin:0'>
Eric A. Borisch (eborisch) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6a071fb9149ebbd58b7ac038a04b768fdb49e4ed">https://github.com/macports/macports-ports/commit/6a071fb9149ebbd58b7ac038a04b768fdb49e4ed</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 6a071fb9149 mpich: Fix https://trac.macports.org/ticket/70418 (pre 10.8 scandir) (#25042)
</span>6a071fb9149 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 6a071fb9149ebbd58b7ac038a04b768fdb49e4ed
</span>Author: Eric A. Borisch <eborisch@gmail.com>
AuthorDate: Wed Jul 24 11:43:44 2024 -0500
<span style='display:block; white-space:pre;color:#404040;'> mpich: Fix https://trac.macports.org/ticket/70418 (pre 10.8 scandir) (#25042)
</span>---
science/mpich/Portfile | 2 ++
science/mpich/files/patch-scandir-lion.diff | 22 ++++++++++++++++++++++
2 files changed, 24 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/mpich/Portfile b/science/mpich/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 41a37aa2c3d..7e9bcbffc8e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/mpich/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/mpich/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -184,6 +184,8 @@ if {${subport_enabled}} {
</span> # MPICH requires OpenCL version 1.2, which was not introduced until OS X Mountain Lion
configure.args-append \
--enable-opencl=no
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://trac.macports.org/ticket/70418 (change in scandir prototype)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append patch-scandir-lion.diff
</span> }
patchfiles-append \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/mpich/files/patch-scandir-lion.diff b/science/mpich/files/patch-scandir-lion.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..e22365c711f
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/mpich/files/patch-scandir-lion.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;'>+--- modules/libfabric/prov/psm3/psm3/utils/utils_sysfs.c.orig 2024-07-24 11:30:43
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ modules/libfabric/prov/psm3/psm3/utils/utils_sysfs.c 2024-07-24 11:31:02
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -87,7 +87,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static int psm3_sysfs_path_count = -1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static long psm3_sysfs_page_size;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-static int filter_dir(const struct dirent *item) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static int filter_dir(struct dirent *item) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (item->d_name[0] == '.') return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- modules/libfabric/src/fabric.c.orig 2024-07-24 11:30:50
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ modules/libfabric/src/fabric.c 2024-07-24 11:31:17
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -569,7 +569,7 @@
</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;'>+ #ifdef HAVE_LIBDL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-static int lib_filter(const struct dirent *entry)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static int lib_filter(struct dirent *entry)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size_t l = strlen(entry->d_name);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size_t sfx = sizeof (FI_LIB_SUFFIX) - 1;
</span></pre><pre style='margin:0'>
</pre>