The dwarf.h header, which is included by scripts/gendwarfksyms/gendwarfksyms.h, resides within elfutils-devel or libdw-devel package. This portion of the code is compiled under the condition that CONFIG_GENDWARFKSYMS is enabled. Consequently, add (elfutils-devel or libdw-devel) to BuildRequires to prevent unforeseen compilation failures. Fix follow possible error: In file included from scripts/gendwarfksyms/cache.c:6: scripts/gendwarfksyms/gendwarfksyms.h:6:10: fatal error: 'dwarf.h' file not found 6 | #include <dwarf.h> | ^~~~~~~~~
Unified · Split
| @@ -16,6 +16,7 @@ Source1: config · 15 unmodified lines | |||
| 16 | Source2: diff.patch | 16 | Source2: diff.patch |
| 17 | Provides: kernel-%{KERNELRELEASE} | 17 | Provides: kernel-%{KERNELRELEASE} |
| 18 | BuildRequires: bc binutils bison dwarves | 18 | BuildRequires: bc binutils bison dwarves |
| 19 | BuildRequires: (elfutils-devel or libdw-devel) | ||
| 19 | BuildRequires: (elfutils-libelf-devel or libelf-devel) flex | 20 | BuildRequires: (elfutils-libelf-devel or libelf-devel) flex |
| 20 | BuildRequires: gcc make openssl openssl-devel perl python3 rsync | 21 | BuildRequires: gcc make openssl openssl-devel perl python3 rsync |
| 21 | 22 | ||