diff --git a/fix_cpuid_double_include.patch b/fix_cpuid_double_include.patch index e2aac14..5ea15e1 100644 --- a/fix_cpuid_double_include.patch +++ b/fix_cpuid_double_include.patch @@ -1,3 +1,10 @@ +From: trenn@suse.com +Date: 2024-11-27 10:23:38 +0000 + +gcc7's cpuid.h is missing an include guard, and since the file does get included +at least twice, compilation fails under Leap-15 gcc7. Work around it by removing +some includes locally. + Index: intel-lpmd-0.0.8/src/lpmd_hfi.c =================================================================== --- intel-lpmd-0.0.8.orig/src/lpmd_hfi.c diff --git a/intel-lpmd.changes b/intel-lpmd.changes index a90a200..b28866a 100644 --- a/intel-lpmd.changes +++ b/intel-lpmd.changes @@ -3,8 +3,8 @@ Wed Nov 27 10:12:23 UTC 2024 - Thomas Renninger - 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 + Add fix_cpuid_double_include.patch. +- Only build 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