Hi,
With latest v6.2-rc1, I can't compile kernel rpm in openSUSE leap.
linux> make rpm-pkg -j16
SYNC include/config/auto.conf.cmd
HOSTCC scripts/kconfig/conf.o
HOSTLD scripts/kconfig/conf
UPD include/config/kernel.release
make clean
sh ./scripts/package/mkspec >./kernel.spec
TAR kernel-6.2.0_rc1_150400.24.38_default+.tar.gz
rpmbuild --target x86_64-linux -ta
kernel-6.2.0_rc1_150400.24.38_default+.tar.gz \
--define='_smp_mflags %{nil}'
Building target platforms: x86_64-linux
Building for target x86_64-linux
error: Failed build dependencies:
elfutils-libelf-devel is needed by
kernel-6.2.0_rc1_150400.24.38_default+-8.x86_64
make[1]: *** [scripts/Makefile.package:62: rpm-pkg] Error 1
make: *** [Makefile:1652: rpm-pkg] Error 2
Seems the below change in commit 8818039f959b("kbuild: add ability
to make source rpm buildable using koji") caused the issue.
@@ -49,6 +51,9 @@sed -e '/^DEL/d' -e 's/^\t*//' <<EOF
URL: https://www.kernel.org
$S Source: kernel-$__KERNELRELEASE.tar.gz
Provides: $PROVIDES
+$S BuildRequires: bc binutils bison dwarves elfutils-libelf-devel flex
+$S BuildRequires: gcc make openssl openssl-devel perl python3 rsync
Because the relevant package name in openSUSE is libelf-devel as
mentioned in ./tools/perf/Makefile.config
Please install libelf-dev, libelf-devel or elfutils-libelf-devel
Thanks,
Guoqing