<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/4b2c3defaf8b1c830882e81d73bfff20e744ce12">https://github.com/macports/macports-ports/commit/4b2c3defaf8b1c830882e81d73bfff20e744ce12</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 4b2c3defaf8b1c830882e81d73bfff20e744ce12
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Wed Jan 18 13:31:02 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> R-fs: new port
</span>---
R/R-fs/Portfile | 37 +++++++++
R/R-fs/files/0001-fs-fix-libuv-for-10.7.patch | 90 ++++++++++++++++++++++
.../files/0002-core.c-patch-close_nocancel.patch | 54 +++++++++++++
.../files/0003-libuv-link-to-legacysupport.patch | 25 ++++++
4 files changed, 206 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-fs/Portfile b/R/R-fs/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..05f3a53fa51
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-fs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,37 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup legacysupport 1.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup R 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# strnlen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+legacysupport.newest_darwin_requires_legacy 10
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+R.setup github r-lib fs 1.5.2 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# libuv version used:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set uv_ver 1.38.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append sysutils
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license MIT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Cross-platform uniform interface to file system operations
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description fs provides a cross-platform, uniform interface to file system operations. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ It shares the same back-end component as nodejs, the libuv C library, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ which brings the benefit of extensive real-world use and rigorous cross-platform testing. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ The name, and some of the interface, is partially inspired by Rust’s fs module.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://fs.r-lib.org
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 3ea8208774b7a7add9fc229e21b70725cb50dbca \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 ce94478380c8f127e8de5a2363ab2709846bc7fee11c02c75be4087de887a177 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 779924
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch.pre_args -p1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles 0001-fs-fix-libuv-for-10.7.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0002-core.c-patch-close_nocancel.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0003-libuv-link-to-legacysupport.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/Makevars
</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;color:#808080;'>diff --git a/R/R-fs/files/0001-fs-fix-libuv-for-10.7.patch b/R/R-fs/files/0001-fs-fix-libuv-for-10.7.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d09befc730b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-fs/files/0001-fs-fix-libuv-for-10.7.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,90 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 5e5b9e299adc909eb9a7c5c62130f8bb2ff5125c 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: Sun, 4 Dec 2022 12:06:35 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 1/3] fs: fix libuv for <10.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;'>+ src/libuv-1.38.1/src/unix/darwin-proctitle.c | 2 ++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/libuv-1.38.1/src/unix/fs.c | 4 ++--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/libuv-1.38.1/src/unix/tty.c | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/libuv-1.38.1/src/unix/udp.c | 6 ++++--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 4 files changed, 9 insertions(+), 5 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/libuv-1.38.1/src/unix/darwin-proctitle.c b/src/libuv-1.38.1/src/unix/darwin-proctitle.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 5288083e..c1aa0531 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/src/libuv-1.38.1/src/unix/darwin-proctitle.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/src/libuv-1.38.1/src/unix/darwin-proctitle.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -41,9 +41,11 @@ static int uv__pthread_setname_np(const char* name) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ strncpy(namebuf, name, sizeof(namebuf) - 1);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ namebuf[sizeof(namebuf) - 1] = '\0';
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if TARGET_OS_IPHONE || (MAC_OS_X_VERSION_MIN_REQUIRED >= 1060)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ err = pthread_setname_np(namebuf);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (err)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return UV__ERR(err);
</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;'>+ return 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/libuv-1.38.1/src/unix/fs.c b/src/libuv-1.38.1/src/unix/fs.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index dd08ea54..bc83ca42 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/src/libuv-1.38.1/src/unix/fs.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/src/libuv-1.38.1/src/unix/fs.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1021,7 +1021,7 @@ static ssize_t uv__fs_lutime(uv_fs_t* req) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ts[0] = uv__fs_to_timespec(req->atime);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ts[1] = uv__fs_to_timespec(req->mtime);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return utimensat(AT_FDCWD, req->path, ts, AT_SYMLINK_NOFOLLOW);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#elif defined(__APPLE__) || \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif (defined(__APPLE__) && (MAC_OS_X_VERSION_MAX_ALLOWED >= 1050)) || \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defined(__DragonFly__) || \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defined(__FreeBSD__) || \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ defined(__FreeBSD_kernel__) || \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1272,7 +1272,7 @@ static void uv__to_stat(struct stat* src, uv_stat_t* dst) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dst->st_blksize = src->st_blksize;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dst->st_blocks = src->st_blocks;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__) && (MAC_OS_X_VERSION_MAX_ALLOWED >= 1050)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dst->st_atim.tv_sec = src->st_atimespec.tv_sec;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dst->st_atim.tv_nsec = src->st_atimespec.tv_nsec;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dst->st_mtim.tv_sec = src->st_mtimespec.tv_sec;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/libuv-1.38.1/src/unix/tty.c b/src/libuv-1.38.1/src/unix/tty.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 6f60abaa..0dc9a485 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/src/libuv-1.38.1/src/unix/tty.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/src/libuv-1.38.1/src/unix/tty.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -72,7 +72,7 @@ static int uv__tty_is_slave(const int fd) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int dummy;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ result = ioctl(fd, TIOCGPTN, &dummy) != 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#elif defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif defined(__APPLE__) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1050
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char dummy[256];
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ result = ioctl(fd, TIOCPTYGNAME, &dummy) != 0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/libuv-1.38.1/src/unix/udp.c b/src/libuv-1.38.1/src/unix/udp.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 1f39b77a..b82aaa7a 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/src/libuv-1.38.1/src/unix/udp.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/src/libuv-1.38.1/src/unix/udp.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -854,7 +854,8 @@ static int uv__udp_set_membership6(uv_udp_t* handle,
</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;'>+-#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__ANDROID__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__ANDROID__) && \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ (!defined(__APPLE__) || (MAC_OS_X_VERSION_MAX_ALLOWED >= 1070))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static int uv__udp_set_source_membership4(uv_udp_t* handle,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const struct sockaddr_in* multicast_addr,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char* interface_addr,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1033,7 +1034,8 @@ int uv_udp_set_source_membership(uv_udp_t* handle,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char* interface_addr,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ const char* source_addr,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ uv_membership membership) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__ANDROID__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__ANDROID__) && \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ (!defined(__APPLE__) || (MAC_OS_X_VERSION_MAX_ALLOWED >= 1070))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int err;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ union uv__sockaddr mcast_addr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ union uv__sockaddr src_addr;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.38.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-fs/files/0002-core.c-patch-close_nocancel.patch b/R/R-fs/files/0002-core.c-patch-close_nocancel.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4f19f538da0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-fs/files/0002-core.c-patch-close_nocancel.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,54 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From f0ad715f11763de5ef47ee401d31d7784178cb66 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: Mon, 5 Dec 2022 20:33:31 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 2/3] core.c: patch close_nocancel
</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;'>+ src/libuv-1.38.1/src/unix/core.c | 26 +++++++++++++++++++-------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 19 insertions(+), 7 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/libuv-1.38.1/src/unix/core.c b/src/libuv-1.38.1/src/unix/core.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index dbe15069..f1ea4084 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/src/libuv-1.38.1/src/unix/core.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/src/libuv-1.38.1/src/unix/core.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -519,18 +519,30 @@ int uv__accept(int sockfd) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * will unwind the thread when it's in the cancel state. Work around that
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ * by making the system call directly. Musl libc is unaffected.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__GNUC__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define GCC_VERSION \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__clang__) || (defined(GCC_VERSION) && (GCC_VERSION >= 40500))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++/* gcc diagnostic pragmas available */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# define GCC_DIAGNOSTIC_AVAILABLE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int uv__close_nocancel(int fd) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(__APPLE__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# pragma GCC diagnostic push
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# pragma GCC diagnostic ignored "-Wdollar-in-identifier-extension"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#if defined(__LP64__) || TARGET_OS_IPHONE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if defined(__APPLE__) && (MAC_OS_X_VERSION_MAX_ALLOWED >= 1050)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if defined(GCC_DIAGNOSTIC_AVAILABLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# pragma GCC diagnostic push
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# pragma GCC diagnostic ignored "-Wdollar-in-identifier-extension"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if defined(__LP64__) || __LP64__ || (defined(TARGET_OS_IPHONE) && (TARGET_OS_IPHONE > 0))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern int close$NOCANCEL(int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return close$NOCANCEL(fd);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern int close$NOCANCEL$UNIX2003(int);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return close$NOCANCEL$UNIX2003(fd);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-# pragma GCC diagnostic pop
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if defined(GCC_DIAGNOSTIC_AVAILABLE)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# pragma GCC diagnostic pop
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #elif defined(__linux__)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return syscall(SYS_close, fd);
</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;'>+2.38.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/R/R-fs/files/0003-libuv-link-to-legacysupport.patch b/R/R-fs/files/0003-libuv-link-to-legacysupport.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..9734429d963
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/R/R-fs/files/0003-libuv-link-to-legacysupport.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,25 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 6889ef022e21e329bedb0b524a32ad8752f61584 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: Mon, 5 Dec 2022 21:51:18 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH 3/3] libuv: link to legacysupport
</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;'>+ src/Makevars | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 1 file changed, 1 insertion(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/Makevars b/src/Makevars
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index a1915d7c..d58b7dda 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- a/src/Makevars
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ b/src/Makevars
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -29,7 +29,7 @@ $(SHLIB): $(LIBUV)/.libs/libuv.a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(LIBUV)/Makefile:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (cd $(LIBUV) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- && CC="$(CC)" CFLAGS="$(CFLAGS) $(CPPFLAGS) $(CPICFLAGS) $(C_VISIBILITY)" AR="$(AR)" RANLIB="$(RANLIB)" LDFLAGS="$(LDFLAGS)" ./configure --quiet)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ && CC="$(CC)" CFLAGS="$(CFLAGS) $(CPPFLAGS) -I@PREFIX@/include/LegacySupport $(CPICFLAGS) $(C_VISIBILITY)" AR="$(AR)" RANLIB="$(RANLIB)" LDFLAGS="$(LDFLAGS) -lMacportsLegacySupport" ./configure --quiet)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(LIBUV)/.libs/libuv.a: $(LIBUV)/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(MAKE) --directory=$(LIBUV) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.38.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>