commit:     42c7cfb8934774ff857d057195bfae649fad7b90
Author:     Cristian Othón Martínez Vera <cfuga <AT> cfuga <DOT> mx>
AuthorDate: Fri May  3 16:43:46 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May  4 02:45:26 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42c7cfb8

sys-apps/irqbalance: version 1.9.4 doesn't work in systemd-based installations

There's an option (ProtectKernelTunables) in the systemd unit that doesn't
allow irqbalance to work. The upstream patch drops the option from the
unit file.

Signed-off-by: Cristian Othón Martínez Vera <cfuga <AT> cfuga.mx>
Closes: https://github.com/gentoo/gentoo/pull/36535
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...qbalance-1.9.4-drop-protectkerneltunables.patch | 25 ++++++++++++++++++++++
 ...-1.9.4-r1.ebuild => irqbalance-1.9.4-r2.ebuild} |  4 ++++
 2 files changed, 29 insertions(+)

diff --git 
a/sys-apps/irqbalance/files/irqbalance-1.9.4-drop-protectkerneltunables.patch 
b/sys-apps/irqbalance/files/irqbalance-1.9.4-drop-protectkerneltunables.patch
new file mode 100644
index 000000000000..552132c8372e
--- /dev/null
+++ 
b/sys-apps/irqbalance/files/irqbalance-1.9.4-drop-protectkerneltunables.patch
@@ -0,0 +1,25 @@
+https://github.com/Irqbalance/irqbalance/issues/308
+https://github.com/Irqbalance/irqbalance/commit/f2c8309a4198d8f51069a783905049c5b7eb7600
+
+From f2c8309a4198d8f51069a783905049c5b7eb7600 Mon Sep 17 00:00:00 2001
+From: Neil Horman <[email protected]>
+Date: Mon, 1 Apr 2024 08:05:14 -0400
+Subject: [PATCH] Drop ProtectKernelTunables
+
+It makes /proc/irq read only
+---
+ misc/irqbalance.service | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/misc/irqbalance.service b/misc/irqbalance.service
+index 87e19c1..b731cc6 100644
+--- a/misc/irqbalance.service
++++ b/misc/irqbalance.service
+@@ -23,7 +23,6 @@ PrivateNetwork=yes
+ PrivateUsers=true
+ ProtectHostname=yes 
+ ProtectClock=yes 
+-ProtectKernelTunables=yes 
+ ProtectKernelModules=yes 
+ ProtectKernelLogs=yes 
+ ProtectControlGroups=yes 

diff --git a/sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild 
b/sys-apps/irqbalance/irqbalance-1.9.4-r2.ebuild
similarity index 96%
rename from sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild
rename to sys-apps/irqbalance/irqbalance-1.9.4-r2.ebuild
index ba4b5355945e..30094b283bf5 100644
--- a/sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild
+++ b/sys-apps/irqbalance/irqbalance-1.9.4-r2.ebuild
@@ -33,6 +33,10 @@ RDEPEND="
        selinux? ( sec-policy/selinux-irqbalance )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${P}-drop-protectkerneltunables.patch
+)
+
 pkg_setup() {
        CONFIG_CHECK="~PCI_MSI"
        linux-info_pkg_setup

Reply via email to