kmodtool, macros.kmp: update list of build requirements

The following packages are added:
 - kernel-abi-stablelists is used by find-requires.ksym in order to
   provide information regarding kABI symbol usage. It's purely
   informational and optional, however.
 - redhat-rpm-config and kernel-rpm-macros are added since the generted
   spec files use macros from these packages.
 - elfutils-libelf-devel is used during kmod build for ORC metadata
   generation (used by kernel for stack unwinding).
 - kmod programs are used by find-requires.ksyms and find-proivides.ksyms
   for parsing *.ko files during dependency generation.

* kmodtool (get_rpm_template): Update the list of generated
BuildRequires.
* macros.kmp (%kernel_module_package_buildreqs): Update the list of
default BuildRequires.

Resolves: #2002887
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
This commit is contained in:
Eugene Syromiatnikov 2019-01-24 20:01:41 +01:00
parent 0e8d1900c9
commit b3f88632de
2 changed files with 7 additions and 2 deletions

View File

@ -139,7 +139,12 @@ EOF
if [ "yes" != "$nobuildreqs" ] if [ "yes" != "$nobuildreqs" ]
then then
echo "BuildRequires: kernel${dashvariant}-devel" cat <<EOF
BuildRequires: kernel${dashvariant}-devel
BuildRequires: kernel-abi-stablelists
BuildRequires: redhat-rpm-config kernel-rpm-macros
BuildRequires: elfutils-libelf-devel kmod
EOF
fi fi
if [ "" != "$override_preamble" ] if [ "" != "$override_preamble" ]

View File

@ -9,7 +9,7 @@ kernel_module_package_release 1
# [ -f filelist] [ -x ] [ -p preamble ] flavor flavor ... # [ -f filelist] [ -x ] [ -p preamble ] flavor flavor ...
%kernel_module_package_buildreqs %global kmodtool_generate_buildreqs 1 \ %kernel_module_package_buildreqs %global kmodtool_generate_buildreqs 1 \
kernel-devel kernel-devel kernel-abi-stablelists redhat-rpm-config kernel-rpm-macros elfutils-libelf-devel kmod
%kernel_module_package(n:v:r:s:f:xp:) %{expand:%( \ %kernel_module_package(n:v:r:s:f:xp:) %{expand:%( \
%global kmodtool %{-s*}%{!-s:/usr/lib/rpm/redhat/kmodtool} \ %global kmodtool %{-s*}%{!-s:/usr/lib/rpm/redhat/kmodtool} \