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