mirror of https://github.com/dynup/kpatch
kpatch-build: Use rpmbuild --nodeps
The list of prerequsite RPMs which are needed to build the kernel RPM is constantly growing. But at least some of those RPMs aren't strictly necessary for building the kernel, at least for kpatch-build's purposes. Requiring them all to be installed is a bit overkill, and sometimes causes kpatch-build to fail when it doesn't need to. If the build does fail, we can always check the kpatch.log file and update the dependencies listed in the README as needed. Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
This commit is contained in:
parent
535e917679
commit
62e09ed3e3
|
@ -629,7 +629,7 @@ else
|
|||
echo "Unpacking kernel source"
|
||||
|
||||
rpm -D "_topdir $RPMTOPDIR" -ivh "$SRCRPM" 2>&1 | logger || die
|
||||
rpmbuild -D "_topdir $RPMTOPDIR" -bp "--target=$(uname -m)" "$RPMTOPDIR"/SPECS/kernel$ALT.spec 2>&1 | logger ||
|
||||
rpmbuild -D "_topdir $RPMTOPDIR" -bp --nodeps "--target=$(uname -m)" "$RPMTOPDIR"/SPECS/kernel$ALT.spec 2>&1 | logger ||
|
||||
die "rpmbuild -bp failed. you may need to run 'yum-builddep kernel' first."
|
||||
|
||||
mv "$RPMTOPDIR"/BUILD/kernel-*/linux-* "$SRCDIR" 2>&1 | logger || die
|
||||
|
|
Loading…
Reference in New Issue