[packages/stalld] - updated to 1.20.1
qboosh
qboosh at pld-linux.org
Sun Sep 28 21:32:29 CEST 2025
commit 2bf5dd1317bee3e7af8d3c2a60830597eb7a6f22
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 28 21:35:31 2025 +0200
- updated to 1.20.1
stalld-throttlectl.patch | 16 +++-------------
stalld.spec | 12 ++++++------
2 files changed, 9 insertions(+), 19 deletions(-)
---
diff --git a/stalld.spec b/stalld.spec
index 6079099..d1d0dd5 100644
--- a/stalld.spec
+++ b/stalld.spec
@@ -1,12 +1,12 @@
Summary: stalld - detect starving threads and boost them
Summary(pl.UTF-8): stalld - wykrywanie głodujących wątków i przyspieszanie ich
Name: stalld
-Version: 1.9.0
-Release: 2
+Version: 1.20.1
+Release: 1
License: GPL v2
Group: Applications/System
Source0: https://www.kernel.org/pub/linux/utils/stalld/%{name}-%{version}.tar.xz
-# Source0-md5: 559b94552813c63592d165a608edd3df
+# Source0-md5: f16f6462bcbc604b535eafc1a6465783
Patch0: %{name}-throttlectl.patch
URL: https://gitlab.com/rt-linux-tools/stalld
BuildRequires: rpmbuild(macros) >= 1.644
@@ -37,10 +37,10 @@ zagłodzeniu wątków systemu operacyjnego pod Linuksem.
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+# DESTDIR must exist before make install due to realpath call
+install -d $RPM_BUILD_ROOT
-%{__make} -C redhat install \
+%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
UNITDIR=%{systemdunitdir}
diff --git a/stalld-throttlectl.patch b/stalld-throttlectl.patch
index 6520977..db92b0c 100644
--- a/stalld-throttlectl.patch
+++ b/stalld-throttlectl.patch
@@ -1,19 +1,9 @@
Adjust shebang for split /usr
-Kill possible /tmp vulnerability on service restart
---- stalld-1.9.0/scripts/throttlectl.sh.orig 2021-02-17 16:10:23.000000000 +0100
-+++ stalld-1.9.0/scripts/throttlectl.sh 2021-02-22 17:58:48.425800258 +0100
+--- stalld-1.20.1/scripts/throttlectl.sh.orig 2025-07-16 14:39:42.000000000 +0200
++++ stalld-1.20.1/scripts/throttlectl.sh 2025-09-28 21:32:10.876568786 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/bash
+#!/bin/bash
+ # SPDX-License-Identifier: GPL-2.0-or-later
# This script is called to either turn off or turn on RT throttling
- # The 'off' argument causes the current values of the throttling
-@@ -9,7 +9,7 @@
-
- path=/proc/sys/kernel
- cmd=$1
--savefile=/tmp/rtthrottle
-+savefile=/var/run/rtthrottle
- defperiod=1000000
- defruntime=950000
- case ${cmd} in
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/stalld.git/commitdiff/2bf5dd1317bee3e7af8d3c2a60830597eb7a6f22
More information about the pld-cvs-commit
mailing list