Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/package/ebuild/
Date: Fri, 30 Jan 2015 20:48:43
Message-Id: 1422650838.6c054da0c47119fa233f74139d72cdf9f19c1058.dolsen@gentoo
1 commit: 6c054da0c47119fa233f74139d72cdf9f19c1058
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 30 20:47:18 2015 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 30 20:47:18 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=6c054da0
7
8 portage/package/ebuild/doebuild.py: Change (nproc + 1) to (nproc)
9
10 As pointed out in late review emails, nproc can sometimes outperform nproc + 1
11 Commit: 5a1e6c9710becab384b684ad6ba55e025d63a60e
12 Author: Michał Górny <mgorny <AT> gentoo.org> (Sat 17 Jan 2015 02:36:18 AM PST)
13 Subject: Default MAKEOPTS to -j(ncpus+1) when unset
14
15 ---
16 pym/portage/package/ebuild/doebuild.py | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py
20 index 791b5c3..1ac5359 100644
21 --- a/pym/portage/package/ebuild/doebuild.py
22 +++ b/pym/portage/package/ebuild/doebuild.py
23 @@ -467,7 +467,7 @@ def doebuild_environment(myebuild, mydo, myroot=None, settings=None,
24 if 'MAKEOPTS' not in mysettings:
25 nproc = get_cpu_count()
26 if nproc:
27 - mysettings['MAKEOPTS'] = '-j%d' % (nproc + 1)
28 + mysettings['MAKEOPTS'] = '-j%d' % (nproc)
29
30 if not eapi_exports_KV(eapi):
31 # Discard KV for EAPIs that don't support it. Cached KV is restored