From 0bd55cb8ce6350d8049023e4dc2c7cb68a77e443 Mon Sep 17 00:00:00 2001 From: George Hartzell Date: Sun, 6 Aug 2017 13:23:13 -0700 Subject: Limit make_jobs for boost < 1.59 (#4984) Earlier versions of boost had a fixed maximum number of jobs. 1.54 was 64, it bumped once or twice afterwards and in 1.59 [this commit][commit] it became dynamic. I need 1.54 for as a prereq for bcl2fastq but I can't build 1.54 on my 144 core build box. This fixes that. [commit]: https://github.com/boostorg/build/commit/316e26ca718afc65d6170029284521392524e4f8 --- var/spack/repos/builtin/packages/boost/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py index 77538cf000..fc3b967fd1 100644 --- a/var/spack/repos/builtin/packages/boost/package.py +++ b/var/spack/repos/builtin/packages/boost/package.py @@ -341,7 +341,11 @@ class Boost(Package): b2name = './b2' if spec.satisfies('@1.47:') else './bjam' b2 = Executable(b2name) - b2_options = ['-j', '%s' % make_jobs] + jobs = make_jobs + # in 1.59 max jobs became dynamic + if jobs > 64 and spec.satisfies('@:1.58'): + jobs = 64 + b2_options = ['-j', '%s' % jobs] threadingOpts = self.determine_b2_options(spec, b2_options) -- cgit v1.2.3-70-g09d2