Libuv: bump to 1.42.0 (#6301)

* remove r1b1 specific patch
This commit is contained in:
extrowerk
2021-10-19 06:43:15 +02:00
committed by GitHub
parent 3eb951506b
commit 51ceb32166
3 changed files with 23 additions and 66 deletions

View File

@@ -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"

View File

@@ -1,65 +0,0 @@
From 67b30cf984c7e63dcf675a01b3af0b42fac1e2dc Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
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?= <zmizsei@extrowerk.com>
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

View File

@@ -0,0 +1,22 @@
From a65c2e1eabc6c369ebe69180b26c4b35124086d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
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