pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
devel/libuv: DragonFly BSD patches
Hi,
devel/libuv doesn't compile on DragonFly BSD. But libuv is of course compiles from the dports collection.
I copied two missing patches. Please consider adding them to pkgsrc.
I already created a poll-request for libuv on github: https://github.com/libuv/libuv/pull/2952
The diff for pkgsrc:
diff -ur a/devel/libuv/distinfo b/devel/libuv/distinfo
--- a/devel/libuv/distinfo 2020-08-07 11:06:57.974731000 +0200
+++ b/devel/libuv/distinfo 2020-08-07 10:59:24.460618000 +0200
@@ -6,6 +6,8 @@
Size (libuv-1.38.0.tar.gz) = 1261216 bytes
SHA1 (patch-autogen.sh) = a5f48189bfb17624c545a80626ea311b7755d232
SHA1 (patch-configure.ac) = 1b215764f1b326df0a89a20cd07e295e55469781
+SHA1 (patch-src_unix_freebsd.c) = b81bf28ee24af040e63599d133de3e28bbcb0f08
SHA1 (patch-src_unix_fs.c) = 15b464be3e31c0934732c537c4163b5b96665f63
SHA1 (patch-src_unix_netbsd.c) = 4bea4eda43c4256b5281bc798a46d29690917d27
SHA1 (patch-src_unix_thread.c) = 7a9a5d19025bb7bb8968a9f5c5e0c67f37021b89
+SHA1 (patch-src_unix_udp.c) = b6ac2f07402726e87df3750fc6ed16c590084db2
diff -ur a/devel/libuv/patches/patch-src_unix_freebsd.c b/devel/libuv/patches/patch-src_unix_freebsd.c
--- a/devel/libuv/patches/patch-src_unix_freebsd.c 2020-08-07 11:07:33.865056000 +0200
+++ b/devel/libuv/patches/patch-src_unix_freebsd.c 2020-08-07 10:59:24.460618000 +0200
@@ -0,0 +1,32 @@
+$NetBSD$
+
+--- src/unix/freebsd.c.orig 2020-05-17 15:34:37.000000000 +0000
++++ src/unix/freebsd.c
+@@ -58,7 +58,8 @@ void uv__platform_loop_delete(uv_loop_t*
+
+
+ #ifdef __DragonFly__
+-int uv_exepath(char* buffer, size_t* size) {
++/* deprecated long ago, use KERN_PROC_PATHNAME sysctl */
++int uv_exepath_procfs(char* buffer, size_t* size) {
+ char abspath[PATH_MAX * 2 + 1];
+ ssize_t abspath_size;
+
+@@ -80,7 +81,8 @@ int uv_exepath(char* buffer, size_t* siz
+
+ return 0;
+ }
+-#else
++#endif
++
+ int uv_exepath(char* buffer, size_t* size) {
+ char abspath[PATH_MAX * 2 + 1];
+ int mib[4];
+@@ -110,7 +112,6 @@ int uv_exepath(char* buffer, size_t* siz
+
+ return 0;
+ }
+-#endif
+
+ uint64_t uv_get_free_memory(void) {
+ int freecount;
diff -ur a/devel/libuv/patches/patch-src_unix_udp.c b/devel/libuv/patches/patch-src_unix_udp.c
--- a/devel/libuv/patches/patch-src_unix_udp.c 2020-08-07 11:07:39.885111000 +0200
+++ b/devel/libuv/patches/patch-src_unix_udp.c 2020-08-07 10:59:24.460618000 +0200
@@ -0,0 +1,22 @@
+$NetBSD$
+
+--- src/unix/udp.c.orig 2020-05-17 15:34:37.000000000 +0000
++++ src/unix/udp.c
+@@ -854,7 +854,7 @@ static int uv__udp_set_membership6(uv_ud
+ }
+
+
+-#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__ANDROID__)
++#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__ANDROID__) && !defined(__DragonFly__)
+ static int uv__udp_set_source_membership4(uv_udp_t* handle,
+ const struct sockaddr_in* multicast_addr,
+ const char* interface_addr,
+@@ -1031,7 +1031,7 @@ int uv_udp_set_source_membership(uv_udp_
+ const char* interface_addr,
+ const char* source_addr,
+ uv_membership membership) {
+-#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__ANDROID__)
++#if !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__ANDROID__) && !defined(__DragonFly__)
+ int err;
+ union uv__sockaddr mcast_addr;
+ union uv__sockaddr src_addr;
Home |
Main Index |
Thread Index |
Old Index