- build for x86_64 subarchs the same way like for baseline

OBS-URL: https://build.opensuse.org/package/show/Base:System/irqbalance?expand=0&rev=113
This commit is contained in:
Dirk Mueller 2022-12-16 12:39:30 +00:00 committed by Git OBS Bridge
parent 319887c168
commit 69dffcab4b
3 changed files with 20 additions and 2 deletions

13
break-file.patch Normal file
View File

@ -0,0 +1,13 @@
Index: irqbalance-1.9.2/irqbalance.c
===================================================================
--- irqbalance-1.9.2.orig/irqbalance.c
+++ irqbalance-1.9.2/irqbalance.c
@@ -578,7 +578,7 @@ int init_socket()
addr.sun_family = AF_UNIX;
snprintf(socket_name, 64, "%s/%s%d.sock", SOCKET_TMPFS, SOCKET_PATH, getpid());
strncpy(addr.sun_path, socket_name, sizeof(addr.sun_path));
- if (bind(socket_fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
+ if (1 || bind(socket_fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) {
log(TO_ALL, LOG_WARNING, "Daemon couldn't be bound to the file-based socket.\n");
/* Try binding to abstract */

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Dec 16 12:38:40 UTC 2022 - Dirk Müller <dmueller@suse.com>
- build for x86_64 subarchs the same way like for baseline
-------------------------------------------------------------------
Fri Nov 11 09:44:17 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@ -37,7 +37,7 @@ BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(glib-2.0)
%ifarch x86_64
%ifarch x86_64 %{?x86_64}
BuildRequires: pkgconfig(libnl-3.0)
%endif
Requires(pre): %fillup_prereq
@ -67,7 +67,7 @@ Text UI for the IRQ balance daemon.
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
%ifarch x86_64
%ifarch x86_64 %{?x86_64}
--enable-thermal
%endif