Source: gearmand Version: 1.0.6-1 Severity: minor Tags: patch Hi,
it seems gearmand has its own way to do a parallel building, i.e. it detects (only on Mac OS X and Linux, otherwise failling back to 1) the number of CPUs, and then it appends -jN+1 to the build flags. This, however, gives few of issues: - sometimes the machine/hardware/whatever could not stand more build jobs than the CPU count - it is unconditional, and you have no way to disable it in a Debian build - it is not possible to actually tune the number of wanted jobs (e.g. you could use just some of the available CPUs, because of others used for something else) - conflicts with debhelper's parallel building facilities Luckly, there is a configure option to disable such behaviour. The attached patch fixes the parallel build in Debian builds: - disable the gearmand-provided -jN addition - make use of debhelper's parallel facilities (which can be configured adding parallel=N in DEB_BUILD_OPTIONS, see also Policy ยง4.9.1) Thanks, -- Pino
--- a/debian/rules +++ b/debian/rules @@ -1,7 +1,10 @@ #!/usr/bin/make -f %: - dh $@ --with autoreconf,systemd + dh $@ --parallel --with autoreconf,systemd + +override_dh_auto_configure: + dh_auto_configure -- --enable-jobserver=no override_dh_auto_test: