[feel++] 04/04: debian/rules: limit the max parallel to 4

Mattia Rizzolo mattia at debian.org
Wed Apr 20 06:54:19 UTC 2016


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository feel++.

commit 3b4406237a128265d6df971adae34c563574cc47
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Wed Apr 20 06:51:33 2016 +0000

    debian/rules: limit the max parallel to 4
    
    for the sake of whoever builds this...
    
    Gbp-Dch: Short
---
 debian/rules | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 31711fa..d6aa728 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,12 @@
 export DH_VERBOSE=1
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
+# this package requires an insane amount of memory to build, averaging
+# to more than 7 GB per thread.  This means that an hypothetical build
+# with parallel=4 can require even 30 GB of RAM!  Not to say, when this
+# starts swapping things get ugly...
 %:
-	dh $@ --parallel --buildsystem=cmake
+	dh $@ --parallel --max-parallel=4 --buildsystem=cmake
 
 # disable DOXYGEN, https://github.com/feelpp/feelpp/issues/738
 override_dh_auto_configure:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/feel++.git



More information about the debian-science-commits mailing list