← Back to team overview

ubuntu-phone team mailing list archive

Re: build debian package in paralle.

 

On martes 15 de julio de 2014 06h'14:04 ART, YC Cheng wrote:
Hi, As doing debugging, I try to rebuild
https://launchpad.net/ubuntu-system-settings

for arm, which use cmake to generate Makefile. On my host to build, I use "ptest -p utopic" (ptest from pbuilder-scripts which are scripts wrapper for pbuild) and run debian/rule binary there.

Since it's C++, the compile takes long time if not compile in parallel.

I try several method like

export DEB_BUILD_OPTIONS="parallel=2"
debin/rule binary

or

add parallel=4 to debian/rules (https://www.debian.org/doc/debian-policy/ch-source.html)

Both not make it build in -j 4 as compiling.

Anyone who know how to make it works, thanks.

My guess is that you need to add --parallel to dh here [1]. That said, it may not be enabled for a reason.

If you are building for armhf on x86, I suggest setting up sbuild and to cross compile[2].

Cheers
Sergio

[1] http://bazaar.launchpad.net/~system-settings-touch/ubuntu-system-settings/trunk/view/head:/debian/rules#L27
[2] https://wiki.ubuntu.com/Touch/CrossCompile


References