While building kernel rpm packagerpmbuild
does it's slow "Checking for unpackaged file(s)" check:
$ make -j$(nproc) binrpm-pkg
...
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/user/rpmbuild/BUI
LDROOT/kernel-4.17.0_rc5_next_20180517_3.gd86d9e8_default+-98.x86_64
For kernel even on powerful machine it takes 30 mins. How to avoid that?
I've tried to to avoid it with _unpackaged_files_terminate_build
, but it didn't help:
echo "%_unpackaged_files_terminate_build 0" >> ~/.rpmmacros
Also adding --nocheck
to rpmbuild
call to binrpm-pkg
target in scripts/package/Makefile
didn't help.
But maybe it's something else wrong. When I build with configuration make allyesconfig
rpm file has 168MB. RPM file builded with openSUSE Tumbleweed config has 647MB.