Bug#778751: asterisk: parallel building with dpkg-buildpackage [patch]
root
wjdoekes at osso.nl
Thu Feb 19 10:12:04 UTC 2015
Package: asterisk
Version: 1:13.1.0~dfsg-1
Severity: wishlist
Dear Maintainer,
this simple patch will speed up the build:
diff --git a/debian/rules b/debian/rules
index c338853..f68101c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -48,6 +48,13 @@ endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
+# You can now do this:
+# DEB_BUILD_OPTIONS=parallel=6 dpkg-buildpackage -us -uc
+# See: https://www.debian.org/doc/debian-policy/ch-source.html
+ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ BUILDFLAGS += -j$(NUMJOBS)
+endif
DEBVERSION:=$(shell dpkg-parsechangelog | sed -n -e 's/Version: //p')
DEB_NOEPOCH_VERSION:=$(shell echo $(DEBVERSION) | cut -d':' -f 2)
Thanks,
Walter Doekes
OSSO B.V.
-- System Information:
Debian Release: 7.8
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages asterisk depends on:
ii adduser 3.113+nmu3
ii asterisk-config 1:13.2.0-acos1+o0+2up
ii asterisk-core-sounds-en [asterisk-prompt-en] 1.4.22-1
ii asterisk-core-sounds-en-gsm 1.4.22-1
ii asterisk-modules 1:13.2.0-acos1+o0+2up
ii libc6 2.13-38+deb7u7
ii libcap2 1:2.22-1.2
ii libedit2 2.11-20080614-5
ii libgcc1 1:4.7.2-5
ii libjansson4 2.3.1-2
ii libpopt0 1.16-7
ii libsqlite3-0 3.7.13-1+deb7u1
ii libssl1.0.0 1.0.1e-2+deb7u14
ii libstdc++6 4.7.2-5
ii libtinfo5 5.9-10
ii libuuid1 2.20.1-5.3
ii libxml2 2.8.0+dfsg1-7+wheezy3
ii libxslt1.1 1.1.26-14.1
Versions of packages asterisk recommends:
ii asterisk-moh-opsound-gsm 2.03-1
ii asterisk-voicemail [asterisk-voicemail-storage] 1:13.2.0-acos1+o0+2up
ii sox 14.4.0-3+deb7u1
Versions of packages asterisk suggests:
pn asterisk-dahdi <none>
pn asterisk-dev <none>
pn asterisk-doc <none>
pn asterisk-ooh323 <none>
pn asterisk-vpb <none>
-- Configuration Files:
/etc/default/asterisk changed [not included]
/etc/init.d/asterisk changed [not included]
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: parallel.patch
Type: text/x-diff
Size: 670 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20150219/c17c1059/attachment-0001.patch>
More information about the Pkg-voip-maintainers
mailing list