From 51ceb32166537fa23c5d20ff35d52059f1655e97 Mon Sep 17 00:00:00 2001 From: extrowerk <5569059+extrowerk@users.noreply.github.com> Date: Tue, 19 Oct 2021 06:43:15 +0200 Subject: [PATCH] Libuv: bump to 1.42.0 (#6301) * remove r1b1 specific patch --- ...ibuv-1.40.0.recipe => libuv-1.42.0.recipe} | 2 +- dev-libs/libuv/patches/libuv-1.40.0.patchset | 65 ------------------- dev-libs/libuv/patches/libuv-1.42.0.patchset | 22 +++++++ 3 files changed, 23 insertions(+), 66 deletions(-) rename dev-libs/libuv/{libuv-1.40.0.recipe => libuv-1.42.0.recipe} (95%) delete mode 100644 dev-libs/libuv/patches/libuv-1.40.0.patchset create mode 100644 dev-libs/libuv/patches/libuv-1.42.0.patchset diff --git a/dev-libs/libuv/libuv-1.40.0.recipe b/dev-libs/libuv/libuv-1.42.0.recipe similarity index 95% rename from dev-libs/libuv/libuv-1.40.0.recipe rename to dev-libs/libuv/libuv-1.42.0.recipe index 12e274578..eeb9a6b77 100644 --- a/dev-libs/libuv/libuv-1.40.0.recipe +++ b/dev-libs/libuv/libuv-1.42.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="70fe1c9ba4f2c509e8166c0ca2351000237da573bb6c82092339207a9715ba6b" +CHECKSUM_SHA256="371e5419708f6aaeb8656671f89400b92a9bba6443369af1bb70bcd6e4b3c764" PATCHES="libuv-$portVersion.patchset" ARCHITECTURES="all !x86_gcc2 ?x86" diff --git a/dev-libs/libuv/patches/libuv-1.40.0.patchset b/dev-libs/libuv/patches/libuv-1.40.0.patchset deleted file mode 100644 index e80d57bbc..000000000 --- a/dev-libs/libuv/patches/libuv-1.40.0.patchset +++ /dev/null @@ -1,65 +0,0 @@ -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 - diff --git a/dev-libs/libuv/patches/libuv-1.42.0.patchset b/dev-libs/libuv/patches/libuv-1.42.0.patchset new file mode 100644 index 000000000..9541d0bdd --- /dev/null +++ b/dev-libs/libuv/patches/libuv-1.42.0.patchset @@ -0,0 +1,22 @@ +From a65c2e1eabc6c369ebe69180b26c4b35124086d3 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 5e53aaa..7229dd9 100644 +--- a/test/run-tests.c ++++ b/test/run-tests.c +@@ -66,7 +66,7 @@ typedef BOOL (WINAPI *sCompareObjectHandles)(_In_ HANDLE, _In_ HANDLE); + + + 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.30.2 +