From 03bb404b370db93e4760f9d5ac715c9e11c7376d6e70579aa82fb1b17f70f3d0 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 27 Nov 2024 11:59:38 +0100 Subject: [PATCH] Add some metadata for fix_cpuid_double_include.patch --- fix_cpuid_double_include.patch | 7 +++++++ intel-lpmd.changes | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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