import CS stalld-1.20.4-1.el9_6

This commit is contained in:
eabdullin 2025-09-16 08:06:39 +00:00
parent 0a7c81457b
commit 0989e7059e
4 changed files with 27 additions and 43 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/stalld-1.19.8.tar.bz2
SOURCES/stalld-1.20.4.tar.gz

View File

@ -1 +1 @@
a42e0ef18ee186c044349c2f39651fe20f7ca70b SOURCES/stalld-1.19.8.tar.bz2
cd3f1484b97e8a4cca7c10f87aac7c684f789b02 SOURCES/stalld-1.20.4.tar.gz

View File

@ -1,33 +0,0 @@
From b79c1777ee16901b3d27cd25e50435f4f060cfa8 Mon Sep 17 00:00:00 2001
From: John Kacur <jkacur@redhat.com>
Date: Thu, 22 May 2025 11:33:07 -0400
Subject: [PATCH] stalld: sched_attr: Do not define for glibc >= 2.41
glibc >=2.41 has definitions for struct sched_attr and
sched_setattr and sched_getattr
Sometimes this is backported by distributions so define conditionally on
SCHED_ATTR_SIZE_VER0
Signed-off-by: John Kacur <jkacur@redhat.com>
---
src/stalld.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/stalld.h b/src/stalld.h
index 0c4dcee503ca..7b4d7e60f5f7 100644
--- a/src/stalld.h
+++ b/src/stalld.h
@@ -110,7 +110,8 @@ struct stalld_backend {
void (*destroy)(void);
};
-#if ! __GLIBC_PREREQ(2, 41) && !defined(GLIBC_HAS_SCHED_ATTR)
+/* sched_attr is not defined in glibc < 2.41, unless backported */
+#ifndef SCHED_ATTR_SIZE_VER0
#ifdef __x86_64__
# define __NR_sched_setattr 314
--
2.49.0

View File

@ -1,16 +1,17 @@
Name: stalld
Version: 1.19.8
Release: 2%{?dist}
Version: 1.20.4
Release: 1%{?dist}
Summary: Daemon that finds starving tasks and gives them a temporary boost
License: GPLv2
URL: https://gitlab.com/rt-linux-tools/%{name}/%{name}.git
Source0: https://gitlab.com/rt-linux-tools/%{name}/-/archive/v%{version}/%{name}-%{version}.tar.bz2
URL: https://git.kernel.org/pub/scm/utils/%{name}/%{name}.git
Source0: https://git.kernel.org/pub/scm/utils/%{name}/%{name}.git/snapshot/%{name}-%{version}.tar.gz
BuildRequires: glibc-devel
BuildRequires: gcc
BuildRequires: make
BuildRequires: systemd-rpm-macros
BuildRequires: llvm
Requires: systemd
@ -23,7 +24,6 @@ Requires: libbpf
%endif
# Patches
Patch1: stalld-sched_attr-Do-not-define-for-glibc-2.41.patch
%define _hardened_build 1
@ -64,10 +64,27 @@ allow 10 microseconds of runtime for 1 second of clock time.
%systemd_postun_with_restart %{name}.service
%changelog
* Wed May 28 2025 John Kacur <jkacur@redhat.com> - 1.19.8-2
- Rebase to stalld-1.19.8
* Tue Aug 19 2025 Wander Lairson Costa <wander@redhat.com> - 1.20.4-1
- Rebase to stalld-1.20.4
- Remove duplicated ExecStart entry from the stalld.service file
Resolves: RHEL-108827
* Wed Aug 13 2025 Wander Lairson Costa <wander@redhat.com> - 1.20.3-1
- Rebase to stalld-1.20.3
- Make systemd start stalld with the SCHED_FIFO:10 priority
Resolves: RHEL-109088
* Thu Jul 16 2025 Wander Lairson Costa <wander@redhat.com> - 1.20.2
- Rebase to stalld-1.20.2
Resolves: RHEL-96213 RHEL-96227 RHEL-104106
* Thu May 22 2025 John Kacur <jkacur@redhat.com> - 1.19.8-2
- Check if sched_attr is in glibc
Resolves: RHEL-94032
Resolves: RHEL-92952
* Wed May 21 2025 John Kacur <jkacur@redhat.com> - 1.19.8-1
- Rebase to stalld-1.19.8
Resolves: RHEL-92952
* Thu Aug 22 2024 Chris White <chwhite@redhat.com> - 1.19.6-1
- Makefile: add uninstall target