Avoid double include of cpuid.h + ExclusiveArch
This commit is contained in:
parent
62230f5ad4
commit
9cbc76faa1
36
fix_cpuid_double_include.patch
Normal file
36
fix_cpuid_double_include.patch
Normal file
@ -0,0 +1,36 @@
|
||||
Index: intel-lpmd-0.0.8/src/lpmd_hfi.c
|
||||
===================================================================
|
||||
--- intel-lpmd-0.0.8.orig/src/lpmd_hfi.c
|
||||
+++ intel-lpmd-0.0.8/src/lpmd_hfi.c
|
||||
@@ -37,7 +37,6 @@
|
||||
#include <sys/un.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
-#include <cpuid.h>
|
||||
#include <sched.h>
|
||||
#include <dirent.h>
|
||||
#include <ctype.h>
|
||||
Index: intel-lpmd-0.0.8/src/lpmd_irq.c
|
||||
===================================================================
|
||||
--- intel-lpmd-0.0.8.orig/src/lpmd_irq.c
|
||||
+++ intel-lpmd-0.0.8/src/lpmd_irq.c
|
||||
@@ -33,7 +33,6 @@
|
||||
#include <sys/un.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
-#include <cpuid.h>
|
||||
#include <sched.h>
|
||||
#include <dirent.h>
|
||||
#include <ctype.h>
|
||||
Index: intel-lpmd-0.0.8/src/lpmd_socket.c
|
||||
===================================================================
|
||||
--- intel-lpmd-0.0.8.orig/src/lpmd_socket.c
|
||||
+++ intel-lpmd-0.0.8/src/lpmd_socket.c
|
||||
@@ -36,7 +36,6 @@
|
||||
#include <sys/un.h>
|
||||
#include <errno.h>
|
||||
#include <getopt.h>
|
||||
-#include <cpuid.h>
|
||||
#include <sched.h>
|
||||
#include <dirent.h>
|
||||
#include <ctype.h>
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 27 10:12:23 UTC 2024 - Thomas Renninger <trenn@suse.de>
|
||||
|
||||
- Avoid double include of cpuid.h and fix older distro builds
|
||||
(could be a gcc7 vs gcc14 issue).
|
||||
A fix_cpuid_double_include.patch
|
||||
- Only builds for x86 and as it's an Intel tool, it's probably only
|
||||
intended to run and work on x86 machines, add:
|
||||
ExclusiveArch: %ix86 x86_64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 17 00:15:04 UTC 2024 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
|
@ -24,6 +24,7 @@ License: GPL-2.0-or-later
|
||||
Group: Hardware/Other
|
||||
URL: https://github.com/intel/intel-lpmd
|
||||
Source: https://github.com/intel/intel-lpmd/archive/refs/tags/v%version.tar.gz
|
||||
Patch0: fix_cpuid_double_include.patch
|
||||
BuildRequires: automake
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: gtk-doc >= 1.11
|
||||
@ -36,6 +37,7 @@ BuildRequires: pkgconfig(libnl-genl-3.0)
|
||||
BuildRequires: pkgconfig(libsystemd)
|
||||
BuildRequires: pkgconfig(upower-glib)
|
||||
BuildRequires: pkgconfig(libxml-2.0) >= 2.4
|
||||
ExclusiveArch: %ix86 x86_64
|
||||
|
||||
%description
|
||||
A daemon used to optimize active idle power. It selects a set of most
|
||||
|
Loading…
Reference in New Issue
Block a user