Skip to content

Commit 5bd6bdd

Browse files
Avenger-285714masahir0y
authored andcommitted
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> | ^~~~~~~~~ Link: https://lore.kernel.org/all/[email protected]/ Fixes: f285688 ("tools: Add gendwarfksyms") Suggested-by: Petr Pavlu <[email protected]> Signed-off-by: WangYuli <[email protected]> Reviewed-by: Nicolas Schier <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 657f96c commit 5bd6bdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/package/kernel.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Source1: config
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

0 commit comments

Comments
 (0)