[Devel] [PATCH RH76] fix for make rpm-pkg
Alexander Atanasov
alexander.atanasov at virtuozzo.com
Thu Jul 28 20:32:28 MSK 2022
Patch fixes 'make rpm-pkg' broken in rh76-based OpenVz kernels
+ cd kernel-3.10.0_957.1.3.ovz.83.4+
+ make clean
Makefile:914: Makefile.qlock: No such file or directory
make[2]: *** No rule to make target `Makefile.qlock'. Stop.
+ exit 0
Link: https://lists.openvz.org/pipermail/devel/2019-January/073049.html
Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
---
I removed the .scmversion deletion which hinted at already applied
patch.
diff --git a/scripts/package/Makefile b/scripts/package/Makefile
index c5d473393816..46703e21c698 100644
--- a/scripts/package/Makefile
+++ b/scripts/package/Makefile
@@ -28,7 +28,7 @@ RPM := $(shell if [ -x "/usr/bin/rpmbuild" ]; then echo rpmbuild; \
# Remove hyphens since they have special meaning in RPM filenames
KERNELPATH := kernel-$(subst -,_,$(KERNELRELEASE))
# Include only those top-level files that are needed by make, plus the GPL copy
-TAR_CONTENT := $(KBUILD_ALLDIRS) kernel.spec .config .scmversion Makefile \
+TAR_CONTENT := $(KBUILD_ALLDIRS) kernel.spec .config .scmversion Makefile Makefile.qlock\
Kbuild Kconfig COPYING $(wildcard localversion*)
TAR_CONTENT := $(addprefix $(KERNELPATH)/,$(TAR_CONTENT))
MKSPEC := $(srctree)/scripts/package/mkspec
More information about the Devel
mailing list