[Devel] [PATCH RH76] fix for make rpm-pkg

Vasily Averin vvs at virtuozzo.com
Fri Jan 11 15:53:44 MSK 2019


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

Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
-------------- next part --------------
diff --git a/.scmversion b/.scmversion
deleted file mode 100644
index e69de29..0000000
diff --git a/scripts/package/Makefile b/scripts/package/Makefile
index c5d4733..46703e2 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