Hello,

Here's a small patch to libuv to not attempt to use the lutimes
syscall. This was discovered while working on an upgrade to
sysutils/grafana which in turn triggered a build failure stemming
from lang/node.

Wandering a little outside my paygrade here, but hopefully this is
a valid patch. make test for libuv and node were successful aisde
from the network tests. If it looks good here, I'll submit it
upstream as well for the next release.

Thoughts?

Thanks,
Lucas
diff b15f5f0b0f228c2655efb1993fe76495f3cf0e5b /usr/ports
blob - 4d969257c5d491d81dc56d11dc8b40e87f467fdd
file + devel/libuv/Makefile
--- devel/libuv/Makefile
+++ devel/libuv/Makefile
@@ -4,6 +4,7 @@ VER =           1.44.1
 DISTNAME =     libuv-v${VER}
 PKGNAME =      libuv-${VER}
 CATEGORIES =   devel
+REVISION =     0
 
 SHARED_LIBS +=  uv                   4.1      # 1.0
 
blob - /dev/null
file + devel/libuv/patches/patch-src_unix_fs_c
--- /dev/null
+++ devel/libuv/patches/patch-src_unix_fs_c
@@ -0,0 +1,13 @@
+Index: src/unix/fs.c
+--- src/unix/fs.c.orig
++++ src/unix/fs.c
+@@ -1181,7 +1181,8 @@ static ssize_t uv__fs_lutime(uv_fs_t* req) {
+     defined(_AIX71)               ||                                          
 \
+     defined(__sun)                ||                                          
 \
+     defined(__HAIKU__)            ||                                          
 \
+-    defined(__GNU__)
++    defined(__GNU__)              ||                                          
 \
++    defined(__OpenBSD__)
+   struct timespec ts[2];
+   ts[0] = uv__fs_to_timespec(req->atime);
+   ts[1] = uv__fs_to_timespec(req->mtime);

Reply via email to