summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Othón Martínez Vera <cfuga@cfuga.mx>2024-05-03 10:43:46 -0600
committerSam James <sam@gentoo.org>2024-05-04 03:45:26 +0100
commit42c7cfb8934774ff857d057195bfae649fad7b90 (patch)
treec9f3191c8beed08ab91134413b71a19d7f9d316f /sys-apps
parentapp-crypt/certbot-nginx: stabilize 2.10.0 for amd64, arm, arm64, x86 (diff)
downloadgentoo-42c7cfb8934774ff857d057195bfae649fad7b90.tar.gz
gentoo-42c7cfb8934774ff857d057195bfae649fad7b90.tar.bz2
gentoo-42c7cfb8934774ff857d057195bfae649fad7b90.zip
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@cfuga.mx> Closes: https://github.com/gentoo/gentoo/pull/36535 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/irqbalance/files/irqbalance-1.9.4-drop-protectkerneltunables.patch25
-rw-r--r--sys-apps/irqbalance/irqbalance-1.9.4-r2.ebuild (renamed from sys-apps/irqbalance/irqbalance-1.9.4-r1.ebuild)4
2 files changed, 29 insertions, 0 deletions
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 <nhorman@openssl.org>
+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
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