From 54dfffbbab088c9df8934d8df44c2bd1e28b99cb Mon Sep 17 00:00:00 2001 From: extrowerk <5569059+extrowerk@users.noreply.github.com> Date: Mon, 30 Nov 2020 07:20:09 +0100 Subject: [PATCH] LibUV: bump (#5361) --- ...ibuv-1.35.0.recipe => libuv-1.40.0.recipe} | 4 +- dev-libs/libuv/patches/libuv-1.35.0.patchset | 42 ------------ dev-libs/libuv/patches/libuv-1.40.0.patchset | 65 +++++++++++++++++++ 3 files changed, 67 insertions(+), 44 deletions(-) rename dev-libs/libuv/{libuv-1.35.0.recipe => libuv-1.40.0.recipe} (92%) delete mode 100644 dev-libs/libuv/patches/libuv-1.35.0.patchset create mode 100644 dev-libs/libuv/patches/libuv-1.40.0.patchset diff --git a/dev-libs/libuv/libuv-1.35.0.recipe b/dev-libs/libuv/libuv-1.40.0.recipe similarity index 92% rename from dev-libs/libuv/libuv-1.35.0.recipe rename to dev-libs/libuv/libuv-1.40.0.recipe index ff5d51c45..164e79063 100644 --- a/dev-libs/libuv/libuv-1.35.0.recipe +++ b/dev-libs/libuv/libuv-1.40.0.recipe @@ -7,7 +7,7 @@ COPYRIGHT="2015-present libuv project contributors" LICENSE="MIT" REVISION="1" SOURCE_URI="https://github.com/libuv/libuv/archive/v$portVersion/libuv-$portVersion.tar.gz" -CHECKSUM_SHA256="ff84a26c79559e511f087aa67925c3b4e0f0aac60cd8039d4d38b292f208ff58" +CHECKSUM_SHA256="70fe1c9ba4f2c509e8166c0ca2351000237da573bb6c82092339207a9715ba6b" PATCHES="libuv-$portVersion.patchset" ARCHITECTURES="!x86_gcc2 ?x86 x86_64" @@ -53,7 +53,7 @@ BUILD() { ./autogen.sh - runConfigure ./configure + LDFLAGS="-lnetwork" runConfigure ./configure make $jobArgs } diff --git a/dev-libs/libuv/patches/libuv-1.35.0.patchset b/dev-libs/libuv/patches/libuv-1.35.0.patchset deleted file mode 100644 index 27585a0ed..000000000 --- a/dev-libs/libuv/patches/libuv-1.35.0.patchset +++ /dev/null @@ -1,42 +0,0 @@ -From 7670c98857baba2789aeb3a8edf5431db07acea9 Mon Sep 17 00:00:00 2001 -From: Jerome Duval -Date: Sun, 8 Sep 2019 12:42:17 +0200 -Subject: disable setpriority/getpriority for R1B1. - - -diff --git a/src/unix/core.c b/src/unix/core.c -index ffce948..d261962 100644 ---- a/src/unix/core.c -+++ b/src/unix/core.c -@@ -1443,6 +1443,9 @@ int uv_os_getpriority(uv_pid_t pid, int* priority) { - if (priority == NULL) - return UV_EINVAL; - -+#ifdef __HAIKU__ -+ return UV__ERR(ENOSYS); -+#else - errno = 0; - r = getpriority(PRIO_PROCESS, (int) pid); - -@@ -1451,6 +1454,7 @@ int uv_os_getpriority(uv_pid_t pid, int* priority) { - - *priority = r; - return 0; -+#endif - } - - -@@ -1458,8 +1462,10 @@ int uv_os_setpriority(uv_pid_t pid, int priority) { - if (priority < UV_PRIORITY_HIGHEST || priority > UV_PRIORITY_LOW) - return UV_EINVAL; - -+#ifndef __HAIKU__ - if (setpriority(PRIO_PROCESS, (int) pid, priority) != 0) - return UV__ERR(errno); -+#endif - - return 0; - } --- -2.23.0 - diff --git a/dev-libs/libuv/patches/libuv-1.40.0.patchset b/dev-libs/libuv/patches/libuv-1.40.0.patchset new file mode 100644 index 000000000..e80d57bbc --- /dev/null +++ b/dev-libs/libuv/patches/libuv-1.40.0.patchset @@ -0,0 +1,65 @@ +From 67b30cf984c7e63dcf675a01b3af0b42fac1e2dc Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Sun, 8 Sep 2019 12:42:17 +0200 +Subject: disable setpriority/getpriority for R1B1. + + +diff --git a/src/unix/core.c b/src/unix/core.c +index 1597828..bb8663c 100644 +--- a/src/unix/core.c ++++ b/src/unix/core.c +@@ -1410,6 +1410,9 @@ int uv_os_getpriority(uv_pid_t pid, int* priority) { + if (priority == NULL) + return UV_EINVAL; + ++#ifdef __HAIKU__ ++ return UV__ERR(ENOSYS); ++#else + errno = 0; + r = getpriority(PRIO_PROCESS, (int) pid); + +@@ -1418,6 +1421,7 @@ int uv_os_getpriority(uv_pid_t pid, int* priority) { + + *priority = r; + return 0; ++#endif + } + + +@@ -1425,8 +1429,10 @@ int uv_os_setpriority(uv_pid_t pid, int priority) { + if (priority < UV_PRIORITY_HIGHEST || priority > UV_PRIORITY_LOW) + return UV_EINVAL; + ++#ifndef __HAIKU__ + if (setpriority(PRIO_PROCESS, (int) pid, priority) != 0) + return UV__ERR(errno); ++#endif + + return 0; + } +-- +2.28.0 + + +From cbd75c20df89b117c89db0b507ab25cdc4741068 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= +Date: Thu, 29 Oct 2020 07:40:26 +0100 +Subject: Test will not run as root + + +diff --git a/test/run-tests.c b/test/run-tests.c +index e5e75e1..554a539 100644 +--- a/test/run-tests.c ++++ b/test/run-tests.c +@@ -52,7 +52,7 @@ static int maybe_run_test(int argc, char **argv); + + + int main(int argc, char **argv) { +-#ifndef _WIN32 ++#if !defined(_WIN32) && !defined(__HAIKU__) + if (0 == geteuid() && NULL == getenv("UV_RUN_AS_ROOT")) { + fprintf(stderr, "The libuv test suite cannot be run as root.\n"); + return EXIT_FAILURE; +-- +2.28.0 +