[sheepdog] [PATCH stable-0.6 1/2] debian: speedup 'make deb'

Hitoshi Mitake mitake.hitoshi at gmail.com
Thu Aug 15 08:36:31 CEST 2013


From: Liu Yuan <namei.unix at gmail.com>

Use 'timesize' instead of md5 will speed up the packaging a lot.
Alsl add --parallel for dh_auto_build so that we can specify
DEB_BUILD_OPTIONS=parallel=number to parallelize buliding as following:

$ DEB_BUILD_OPTIONS=parallel=8 make deb

Signed-off-by: Liu Yuan <namei.unix at gmail.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 debian/rules | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/rules b/debian/rules
index b3ca769..3d45de4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,6 +14,12 @@ GIT_TAG         ?= $(shell echo v'$(VERSION)' | sed -e 's/~/_/')
 override_dh_builddeb:
 	dh_builddeb --destdir=. -- -Zxz -z9
 
+override_dh_autoreconf:
+	dh_autoreconf --mode=timesize
+
+override_dh_auto_build:
+	dh_auto_build --parallel
+
 UNAME := $(shell uname)
 ifeq ($(UNAME),Linux)
 	ZOOKEEPER=--enable-zookeeper
-- 
1.8.1.2




More information about the sheepdog mailing list