From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1F61A158099 for ; Sun, 26 Nov 2023 23:48:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6155C2BC016; Sun, 26 Nov 2023 23:48:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A4642BC016 for ; Sun, 26 Nov 2023 23:48:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8A17B335D6D for ; Sun, 26 Nov 2023 23:48:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E696F13E7 for ; Sun, 26 Nov 2023 23:48:07 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1701042465.3331727427deec8acf5ce5826ede0e835259fc3e.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libuv/files/, dev-libs/libuv/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libuv/files/libuv-1.47.0-hppa-kernel.patch dev-libs/libuv/libuv-1.47.0-r1.ebuild dev-libs/libuv/libuv-1.47.0.ebuild X-VCS-Directories: dev-libs/libuv/ dev-libs/libuv/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3331727427deec8acf5ce5826ede0e835259fc3e X-VCS-Branch: master Date: Sun, 26 Nov 2023 23:48:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 792b3f7e-8bc7-435f-be75-fcaf3d87775f X-Archives-Hash: ef3d17467d71ff71bb091b680dc03c92 commit: 3331727427deec8acf5ce5826ede0e835259fc3e Author: Sam James gentoo org> AuthorDate: Sun Nov 26 23:47:45 2023 +0000 Commit: Sam James gentoo 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 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 +--- 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() {