<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/06d3e5ebddf256c97428d3616da2f1130ac878de">https://github.com/macports/macports-ports/commit/06d3e5ebddf256c97428d3616da2f1130ac878de</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 06d3e5ebddf libnfs: fix for < 10.9
</span>06d3e5ebddf is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 06d3e5ebddf256c97428d3616da2f1130ac878de
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Fri Apr 12 09:10:45 2024 +0800

<span style='display:block; white-space:pre;color:#404040;'>    libnfs: fix for < 10.9
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Fixes: https://trac.macports.org/ticket/69724
</span>---
 devel/libnfs/Portfile                              |  4 ++
 ...er-macOS-include-sys-socket.h-before-net-.patch | 70 ++++++++++++++++++++++
 2 files changed, 74 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libnfs/Portfile b/devel/libnfs/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 68f9d1b70a3..c2b1e369c5b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/libnfs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libnfs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,3 +24,7 @@ checksums           rmd160  db8b4ad8c35702dc1e8d6dbf9e5b3f395cbf33f9 \
</span> configure.args-append \
                     -DBUILD_SHARED_LIBS=ON \
                     -DENABLE_UTILS=ON
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://trac.macports.org/ticket/69724
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/sahlberg/libnfs/issues/455
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          0001-Fix-for-older-macOS-include-sys-socket.h-before-net-.patch
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/libnfs/files/0001-Fix-for-older-macOS-include-sys-socket.h-before-net-.patch b/devel/libnfs/files/0001-Fix-for-older-macOS-include-sys-socket.h-before-net-.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c39c703f2c2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/libnfs/files/0001-Fix-for-older-macOS-include-sys-socket.h-before-net-.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,70 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 8b5147c35dadb748a62dca2183ee39866b4c8a69 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Sergey Fedorov <vital.had@gmail.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Fri, 12 Apr 2024 08:23:20 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Fix for older macOS: include sys/socket.h before net/if.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Closes: https://github.com/sahlberg/libnfs/issues/455
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cmake/ConfigureChecks.cmake | 10 ++++++++--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include/libnfs-private.h    |  8 ++++----
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2 files changed, 12 insertions(+), 6 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git cmake/ConfigureChecks.cmake cmake/ConfigureChecks.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index c26a02d..3bea395 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- cmake/ConfigureChecks.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ cmake/ConfigureChecks.cmake
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,4 +1,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include(CheckIncludeFile)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++include(CheckIncludeFiles)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("arpa/inet.h" HAVE_ARPA_INET_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("dispatch/dispatch.h" HAVE_DISPATCH_DISPATCH_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("dlfcn.h" HAVE_DLFCN_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -8,7 +9,13 @@ check_include_file("memory.h" HAVE_MEMORY_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("netdb.h" HAVE_NETDB_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("netinet/in.h" HAVE_NETINET_IN_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("netinet/tcp.h" HAVE_NETINET_TCP_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-check_include_file("net/if.h" HAVE_NET_IF_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++check_include_file("sys/socket.h" HAVE_SYS_SOCKET_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# On MacOS 10.8 and earlier, sys/socket.h must be included before net/if.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if(HAVE_SYS_SOCKET_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  check_include_files("sys/socket.h;net/if.h" HAVE_NET_IF_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++else()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  check_include_file("net/if.h" HAVE_NET_IF_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++endif()
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("poll.h" HAVE_POLL_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("stdint.h" HAVE_STDINT_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("stdlib.h" HAVE_STDLIB_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -16,7 +23,6 @@ check_include_file("strings.h" HAVE_STRINGS_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("string.h" HAVE_STRING_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("sys/filio.h" HAVE_SYS_FILIO_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("sys/ioctl.h" HAVE_SYS_IOCTL_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-check_include_file("sys/socket.h" HAVE_SYS_SOCKET_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("sys/statvfs.h" HAVE_SYS_STATVFS_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("sys/stat.h" HAVE_SYS_STAT_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_include_file("sys/sysmacros.h" HAVE_SYS_SYSMACROS_H)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git include/libnfs-private.h include/libnfs-private.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 676fca6..e936d8a 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/libnfs-private.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/libnfs-private.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -23,6 +23,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "config.h"  /* HAVE_SOCKADDR_STORAGE ? */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if !defined(WIN32) && !defined(PS2_EE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <sys/socket.h>  /* struct sockaddr_storage */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef HAVE_NET_IF_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <net/if.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -31,10 +35,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "lib/krb5-wrapper.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if !defined(WIN32) && !defined(PS2_EE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <sys/socket.h>  /* struct sockaddr_storage */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #if defined(WIN32) && !defined(IFNAMSIZ)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define IFNAMSIZ 255
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span></pre><pre style='margin:0'>

</pre>