[DRBD-user] [PATCH] fix make srpm target in drbd-8.4.5

Greg Walton g at intivity.us
Tue Dec 23 23:22:46 CET 2014

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

On Centos 7 with drbd-8.4.5, .srpm files are successfully generated, but they
can't be used to build binary rpms because the preamble files are missing
 Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile b/Makefile
index 1117c34..c8443c9 100644
--- a/Makefile
+++ b/Makefile
@@ -222,6 +222,7 @@ kmp-rpm: tgz drbd-kernel.spec
 .PHONY: srpm
 srpm: tgz
 	cp drbd-$(FDIST_VERSION).tar.gz `rpm -E "%_sourcedir"`
+	cp preamble* `rpm -E "%_sourcedir"`
 	$(RPMBUILD) -bs \
 	    --define "kernelversion $(KVER)" \
 	    --define "kernel_version $(KVER)" \

More information about the drbd-user mailing list