From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libuv/files/, dev-libs/libuv/
Date: Sun, 26 Nov 2023 23:48:07 +0000 (UTC) [thread overview]
Message-ID: <1701042465.3331727427deec8acf5ce5826ede0e835259fc3e.sam@gentoo> (raw)
commit: 3331727427deec8acf5ce5826ede0e835259fc3e
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 26 23:47:45 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 26 23:47:45 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33317274
dev-libs/libuv: add hppa patch to 1.47.0
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../libuv/files/libuv-1.47.0-hppa-kernel.patch | 32 ++++++++++++++++++++++
...{libuv-1.47.0.ebuild => libuv-1.47.0-r1.ebuild} | 1 +
2 files changed, 33 insertions(+)
diff --git a/dev-libs/libuv/files/libuv-1.47.0-hppa-kernel.patch b/dev-libs/libuv/files/libuv-1.47.0-hppa-kernel.patch
new file mode 100644
index 000000000000..1871ae221395
--- /dev/null
+++ b/dev-libs/libuv/files/libuv-1.47.0-hppa-kernel.patch
@@ -0,0 +1,32 @@
+https://github.com/libuv/libuv/commit/f1444293652cf5478a67b9305271d73ad6d36232
+
+From f1444293652cf5478a67b9305271d73ad6d36232 Mon Sep 17 00:00:00 2001
+From: matoro <12038583+matoro@users.noreply.github.com>
+Date: Wed, 15 Nov 2023 17:57:06 -0500
+Subject: [PATCH] linux: disable io_uring on hppa below kernel 6.1.51 (#4224)
+
+First kernel with support is 6.1, was only fully functional from .51
+onwards: https://lore.kernel.org/all/cb912694-b1fe-dbb0-4d8c-d608f3526905@gmx.de/
+
+Co-authored-by: matoro <matoro@users.noreply.github.com>
+--- a/src/unix/linux.c
++++ b/src/unix/linux.c
+@@ -487,8 +487,16 @@ static int uv__use_io_uring(void) {
+ use = atomic_load_explicit(&use_io_uring, memory_order_relaxed);
+
+ if (use == 0) {
++ use = uv__kernel_version() >=
++#if defined(__hppa__)
++ /* io_uring first supported on parisc in 6.1, functional in .51 */
++ /* https://lore.kernel.org/all/cb912694-b1fe-dbb0-4d8c-d608f3526905@gmx.de/ */
++ /* 6.1.51 */ 0x060133
++#else
+ /* Older kernels have a bug where the sqpoll thread uses 100% CPU. */
+- use = uv__kernel_version() >= /* 5.10.186 */ 0x050ABA ? 1 : -1;
++ /* 5.10.186 */ 0x050ABA
++#endif
++ ? 1 : -1;
+
+ /* But users can still enable it if they so desire. */
+ val = getenv("UV_USE_IO_URING");
+
diff --git a/dev-libs/libuv/libuv-1.47.0.ebuild b/dev-libs/libuv/libuv-1.47.0-r1.ebuild
similarity index 96%
rename from dev-libs/libuv/libuv-1.47.0.ebuild
rename to dev-libs/libuv/libuv-1.47.0-r1.ebuild
index 34862127937a..879df48c159f 100644
--- a/dev-libs/libuv/libuv-1.47.0.ebuild
+++ b/dev-libs/libuv/libuv-1.47.0-r1.ebuild
@@ -26,6 +26,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${P}-ipv6-tests.patch
+ "${FILESDIR}"/${P}-hppa-kernel.patch
)
src_prepare() {
next reply other threads:[~2023-11-26 23:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-26 23:48 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-11 20:49 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libuv/files/, dev-libs/libuv/ Fabian Groffen
2023-11-26 23:18 Sam James
2018-07-06 11:59 Jeroen Roovers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1701042465.3331727427deec8acf5ce5826ede0e835259fc3e.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox