Dominique Leuenberger 2023-06-29 15:27:43 +00:00 committed by Git OBS Bridge
commit aff089d265
9 changed files with 57 additions and 43 deletions

View File

@ -2,11 +2,13 @@
misc/irqbalance.service | 1 +
1 file changed, 1 insertion(+)
--- a/misc/irqbalance.service
+++ b/misc/irqbalance.service
@@ -14,6 +14,7 @@
Index: irqbalance-1.9.2.24.git+184c950/misc/irqbalance.service
===================================================================
--- irqbalance-1.9.2.24.git+184c950.orig/misc/irqbalance.service
+++ irqbalance-1.9.2.24.git+184c950/misc/irqbalance.service
@@ -13,6 +13,7 @@ ReadOnlyPaths=/
ReadWritePaths=/proc/irq
RestrictAddressFamilies=AF_UNIX
RestrictAddressFamilies=AF_UNIX AF_NETLINK
RuntimeDirectory=irqbalance/
+LimitNOFILE=4096

16
_service Normal file
View File

@ -0,0 +1,16 @@
<services>
<service name="obs_scm" mode="localonly">
<param name="url">https://github.com/Irqbalance/irqbalance.git</param>
<param name="scm">git</param>
<param name="revision">master</param>
<param name="changesgenerate">enable</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="versionformat">@PARENT_TAG@.@TAG_OFFSET@.git+%h</param>
</service>
<service name="set_version" mode="localonly"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="compression">gz</param>
<param name="file">*.tar</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/Irqbalance/irqbalance.git</param>
<param name="changesrevision">184c95029ebff84d499fc8ea88a906ff9460bf15</param></service></servicedata>

BIN
irqbalance-1.9.2.24.git+184c950.obscpio (Stored with Git LFS) Normal file

Binary file not shown.

BIN
irqbalance-1.9.2.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@ -1,28 +0,0 @@
From efec4c69157d17024c4d9194a63eb834efcd79b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dirk=20M=C3=BCller?= <dirk@dmllr.de>
Date: Fri, 11 Nov 2022 10:38:19 +0100
Subject: [PATCH] allow AF_NETLINK in the systemd service restrictions
AF_NETLINK is needed for communicating with the thermald daemon,
without that the start up logs a warning
thermal: socket bind failed, thermald may not be running.
because systemd prevents access to NETLINK.
---
misc/irqbalance.service | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: irqbalance-1.9.2/misc/irqbalance.service
===================================================================
--- irqbalance-1.9.2.orig/misc/irqbalance.service
+++ irqbalance-1.9.2/misc/irqbalance.service
@@ -11,7 +11,7 @@ EnvironmentFile=-/path/to/irqbalance.env
ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS
ReadOnlyPaths=/
ReadWritePaths=/proc/irq
-RestrictAddressFamilies=AF_UNIX
+RestrictAddressFamilies=AF_UNIX AF_NETLINK
RuntimeDirectory=irqbalance/
LimitNOFILE=4096

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Mon Jun 26 20:33:50 UTC 2023 - trenn@suse.de
- Resurrect _service file and old git patch no versioning
A _service
A _servicedata
A irqbalance.obsinfo
- Update to version 1.9.2.24.git+184c950:
* procinterrupts: fix initialisation of regex_t struct
* Fix it so we actually stop when we hit an interrupt condition
* Fix signedness of error handling
* Revert "Fix CPU number condition in service file"
* Issue 259: select NL_SKIP / NL_STOP based on error
* fix CPU number condition in service file
- Already included upstream:
D irqbalance-systemd-netlink.patch
-------------------------------------------------------------------
Fri Dec 16 12:38:40 UTC 2022 - Dirk Müller <dmueller@suse.com>

4
irqbalance.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: irqbalance
version: 1.9.2.24.git+184c950
mtime: 1681933912
commit: 184c95029ebff84d499fc8ea88a906ff9460bf15

View File

@ -1,7 +1,7 @@
#
# spec file for package irqbalance
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -21,29 +21,28 @@
%define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
Name: irqbalance
Version: 1.9.2
Version: 1.9.2.24.git+184c950
Release: 0
Summary: Daemon to balance IRQs on SMP machines
License: GPL-2.0-or-later
Group: System/Daemons
URL: https://github.com/Irqbalance/irqbalance
Source: https://github.com/Irqbalance/irqbalance/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
#Source: https://github.com/Irqbalance/irqbalance/archive/refs/tags/v%%{version}.tar.gz#/%%{name}-%%{version}.tar.gz
Source: %{name}-%{version}.tar.gz
Source3: sysconfig.irqbalance
Patch1: Set-fd-limit.patch
# PATCH-FIX-UPSTREAM: https://github.com/Irqbalance/irqbalance/pull/250
Patch2: irqbalance-systemd-netlink.patch
BuildRequires: libcap-ng-devel
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glib-2.0)
%ifarch x86_64 %{?x86_64}
BuildRequires: pkgconfig(libnl-3.0)
%endif
Requires(pre): %fillup_prereq
Recommends: %{name}-ui
ExcludeArch: s390 s390x
%{?systemd_ordering}
%ifarch x86_64 %{?x86_64}
BuildRequires: pkgconfig(libnl-3.0)
%endif
%ifnarch %{arm}
BuildRequires: libnuma-devel
%endif