Dominique Leuenberger 2019-07-16 06:38:26 +00:00 committed by Git OBS Bridge
commit 719e4dbf5a
8 changed files with 62 additions and 46 deletions

View File

@ -1,11 +1,11 @@
Index: irqbalance-1.4.0/misc/irqbalance.service
Index: irqbalance-1.6.0/misc/irqbalance.service
===================================================================
--- irqbalance-1.4.0.orig/misc/irqbalance.service
+++ irqbalance-1.4.0/misc/irqbalance.service
@@ -5,6 +5,7 @@ ConditionVirtualization=!container
[Service]
EnvironmentFile=/path/to/irqbalance.env
ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS
--- irqbalance-1.6.0.orig/misc/irqbalance.service 2019-07-01 17:12:55.781596074 +0200
+++ irqbalance-1.6.0/misc/irqbalance.service 2019-07-01 17:13:22.025596492 +0200
@@ -13,6 +13,7 @@ ReadOnlyPaths=/
ReadWritePaths=/proc/irq
RestrictAddressFamilies=AF_UNIX
RuntimeDirectory=irqbalance/
+LimitNOFILE=4096
[Install]

View File

@ -2,9 +2,21 @@
<service mode="disabled" name="tar_scm">
<param name="url">https://github.com/Irqbalance/irqbalance.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="changesgenerate">disable</param>
<param name="filename">irqbalance</param>
<param name="versionformat">1.4.0</param>
<!-- Do use a master branch with git hash in version for Tumbleweed -->
<param name="revision">master</param>
<param name="versionformat">1.6.0+git%cd.%h</param>
<!-- -->
<!-- Do use a stable version format below for products that get released
<param name="versionformat">1.6.0</param>
<param name="revision">v1.6.0</param>
-->
</service>
<service name="set_version" mode="disabled"/>
<service name="recompress" mode="disabled">
<param name="file">irqbalance*.tar</param>
<param name="compression">gz</param>
</service>
</services>

View File

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

View File

@ -1,24 +0,0 @@
From: Thomas Renninger <trenn@suse.de>
Fix compiler warning
Avoid:
In function snprintf,
inlined from sock_handle at irqbalance.c:457:12:
/usr/include/bits/stdio2.h:64:3: warning: call to __builtin___snprintf_chk will always overflow destination buffer [enabled by default]
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
Index: irqbalance-1.4.0/irqbalance.c
===================================================================
--- irqbalance-1.4.0.orig/irqbalance.c 2018-05-14 21:06:54.000000000 +0200
+++ irqbalance-1.4.0/irqbalance.c 2018-10-04 14:16:54.982803686 +0200
@@ -454,7 +454,7 @@ gboolean sock_handle(gint fd, GIOConditi
if (!strncmp(buff, "setup", strlen("setup"))) {
char banned[512];
char *setup = calloc(strlen("SLEEP ") + 11 +1, 1);
- snprintf(setup, 2048, "SLEEP %d ", sleep_interval);
+ sprintf(setup, "SLEEP %d ", sleep_interval);
if(g_list_length(cl_banned_irqs) > 0) {
for_each_irq(cl_banned_irqs, get_irq_data, setup);
}

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:58116b48296a9a34bf72af8f207180b03fc5b4ed47eeec7720af924d9f012a7d
size 56616

View File

@ -1,3 +1,35 @@
-------------------------------------------------------------------
Thu Jul 11 13:19:49 UTC 2019 - trenn@suse.de
- Add git hash tag and date in version as source is derived from
master/HEAD branch. Thanks to namtrac.
This is done via _service file.
Also add an example how to get back to a stable release version
- Update to latest git master version:
git commit f7fdebbaa4dbc27fcdeb7
-------------------------------------------------------------------
Sun Jul 7 21:37:21 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Use noun phrase in summaries.
-------------------------------------------------------------------
Mon Jul 1 15:18:05 UTC 2019 - trenn@suse.de
- Update to version 1.6.0 (b47eea84cbb93f533b0cba2f1aa):
* fix balancing when numa information isn't available
* Refine document about IRQBALANCE_BANNED_CPUS
* Fix string truncation issues detected by GCC 8
* fix socket path creation
* Update document for option --banmod and --deepestcache
* Fix ambiguous parsing of *node* entries in /sys.
* procinterrupts: check xen-dyn-event more flexible
* misc: Add an example for policy script
* policyscript: ignore non-executable files when specifying a directory
remove because already mainline:
D fix_buffer_overflow_compiler.patch
-------------------------------------------------------------------
Thu Oct 4 09:51:31 UTC 2018 - trenn@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package irqbalance
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -21,17 +21,17 @@
%define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
Name: irqbalance
Version: 1.4.0
Version: 1.6.0+git20190711.f7fdebb
Release: 0
Summary: Balance IRQs on SMP Machines
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/v%{version}.tar.gz
#Source: https://github.com/Irqbalance/irqbalance/archive/v%%{version}.tar.gz
Source: %{name}-%{version}.tar.gz
Source3: sysconfig.irqbalance
Patch1: Set-fd-limit.patch
Patch2: install-man-pages.patch
Patch3: fix_buffer_overflow_compiler.patch
BuildRequires: libcap-ng-devel
BuildRequires: libtool
BuildRequires: ncurses-devel

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62de71510a2496fcf027efb0b288dd48e53e9efc931fa573c95580cad6264d07
size 53431