From 69dffcab4b852ba2f2382865517652a896f366a5de87889c05b840737d1d2572 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 16 Dec 2022 12:39:30 +0000 Subject: [PATCH] - 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 --- break-file.patch | 13 +++++++++++++ irqbalance.changes | 5 +++++ irqbalance.spec | 4 ++-- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 break-file.patch diff --git a/break-file.patch b/break-file.patch new file mode 100644 index 0000000..04490ab --- /dev/null +++ b/break-file.patch @@ -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 */ diff --git a/irqbalance.changes b/irqbalance.changes index 03a443c..d04ad16 100644 --- a/irqbalance.changes +++ b/irqbalance.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 16 12:38:40 UTC 2022 - Dirk Müller + +- build for x86_64 subarchs the same way like for baseline + ------------------------------------------------------------------- Fri Nov 11 09:44:17 UTC 2022 - Dirk Müller diff --git a/irqbalance.spec b/irqbalance.spec index 4b88489..6146bc3 100644 --- a/irqbalance.spec +++ b/irqbalance.spec @@ -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