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 DE73F158064 for ; Fri, 3 May 2024 12:43:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2C166E2A91; Fri, 3 May 2024 12:43:33 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 0E320E2A91 for ; Fri, 3 May 2024 12:43:33 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 055D9343084 for ; Fri, 3 May 2024 12:43:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 91E0E1765 for ; Fri, 3 May 2024 12:43:30 +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: <1714740185.a9c2ee5f7cd89b3bb5c8a409b114ebc21cda0ce7.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/irqbalance/files/, sys-apps/irqbalance/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/irqbalance/files/irqbalance.init.5 sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild sys-apps/irqbalance/irqbalance-1.9.4.ebuild X-VCS-Directories: sys-apps/irqbalance/ sys-apps/irqbalance/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a9c2ee5f7cd89b3bb5c8a409b114ebc21cda0ce7 X-VCS-Branch: master Date: Fri, 3 May 2024 12:43:30 +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: 299ea00a-187b-4dbf-b8c7-3afc936183dd X-Archives-Hash: 0ee408d00b03ce701eea328ae866f206 commit: a9c2ee5f7cd89b3bb5c8a409b114ebc21cda0ce7 Author: Sam James gentoo org> AuthorDate: Fri May 3 12:42:55 2024 +0000 Commit: Sam James gentoo org> CommitDate: Fri May 3 12:43:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9c2ee5f sys-apps/irqbalance: fix path in init script Closes: https://bugs.gentoo.org/931133 Signed-off-by: Sam James gentoo.org> sys-apps/irqbalance/files/irqbalance.init.5 | 22 ++++++++++++++++++++++ ...nce-1.9.4.ebuild => irqbalance-1.9.4-r1.ebuild} | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/sys-apps/irqbalance/files/irqbalance.init.5 b/sys-apps/irqbalance/files/irqbalance.init.5 new file mode 100644 index 000000000000..511e4fee023a --- /dev/null +++ b/sys-apps/irqbalance/files/irqbalance.init.5 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 or later + +depend() { + need localmount + after bootmisc +} + +command="/usr/bin/irqbalance" +command_args="${IRQBALANCE_OPTS}" + +start_pre() { + if grep -q MSI /proc/interrupts 2>/dev/null && \ + test -z "$(find /sys/devices -type d -name msi_irqs 2>/dev/null)"; then + eerror "MSI interrupts found in /proc/interrupts but none found in sysfs." + eerror "You need to update your kernel." + return 1 + fi + + checkpath -q -d /run/${SVCNAME} +} diff --git a/sys-apps/irqbalance/irqbalance-1.9.4.ebuild b/sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild similarity index 96% rename from sys-apps/irqbalance/irqbalance-1.9.4.ebuild rename to sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild index d15ff251b576..ba4b5355945e 100644 --- a/sys-apps/irqbalance/irqbalance-1.9.4.ebuild +++ b/sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild @@ -64,7 +64,7 @@ src_configure() { src_install() { meson_src_install - newinitd "${FILESDIR}"/irqbalance.init.4 irqbalance + newinitd "${FILESDIR}"/irqbalance.init.5 irqbalance newconfd "${FILESDIR}"/irqbalance.confd-2 irqbalance systemd_dounit "${WORKDIR}"/${P}/misc/irqbalance.service udev_dorules "${WORKDIR}"/${P}/misc/90-irqbalance.rules