]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rpm: limit build jobs by system memory on SUSE
authorNathan Cutler <ncutler@suse.com>
Tue, 2 Mar 2021 16:00:53 +0000 (17:00 +0100)
committerNathan Cutler <ncutler@suse.com>
Wed, 3 Mar 2021 14:52:04 +0000 (15:52 +0100)
commit7efcc72483543cdbeae268b42ff33491a258626c
treeace94df327ea8affdca99d9f7906d1ddb11437d9
parentbfde964cf0400f19b7ae46122039982198a0f4db
rpm: limit build jobs by system memory on SUSE

43b441f9a3bc907c17d52385251001ffcd5d3ff9 removed a bunch of code which the SUSE
builds were relying on to avoid OOM. This commit brings back that code in
a much-streamlined form: the SUSE-specific %limit_build macro.

This also has the advantage of not breaking the build on older RPMs which only
know about %_smp_mflags, and not the newer %_smp_build_ncpus etc. macros.

Fixes: 43b441f9a3bc907c17d52385251001ffcd5d3ff9
Fixes: https://tracker.ceph.com/issues/49556
Signed-off-by: Nathan Cutler <ncutler@suse.com>
ceph.spec.in