History

kbuild: rpm-pkg: Add (elfutils-devel or libdw-devel) to BuildRequires

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> | ^~~~~~~~~

WangYuli committed 1 year ago

Commit 5bd6bdd1 parent 657f96c1 file · +1 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/package/kernel.spec+1−0
@@ -16,6 +16,7 @@ Source1: config · 15 unmodified lines
1616 Source2: diff.patch
1717 Provides: kernel-%{KERNELRELEASE}
1818 BuildRequires: bc binutils bison dwarves
19+BuildRequires: (elfutils-devel or libdw-devel)
1920 BuildRequires: (elfutils-libelf-devel or libelf-devel) flex
2021 BuildRequires: gcc make openssl openssl-devel perl python3 rsync
2122