1 |
commit: dca844ed582e369708a7769d4e84abf6e9b5fb0d |
2 |
Author: Georgy Yakovlev <ya <AT> sysdump <DOT> net> |
3 |
AuthorDate: Tue Jan 30 04:54:54 2018 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 31 09:56:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dca844ed |
7 |
|
8 |
dev-lang/rust: fix MAKEOPTS -l/--load-average build |
9 |
|
10 |
Upstream build system does not like -l/--load-average, |
11 |
So we cannot use MAKEOPTS as-is. The only relevant option is -j<num>. |
12 |
This commit changes to using multiprocessing.eclass makeopts_jobs() |
13 |
|
14 |
Closes: https://bugs.gentoo.org/646092 |
15 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
16 |
Closes: https://github.com/gentoo/gentoo/pull/7000 |
17 |
|
18 |
dev-lang/rust/rust-1.23.0-r1.ebuild | 4 ++-- |
19 |
1 file changed, 2 insertions(+), 2 deletions(-) |
20 |
|
21 |
diff --git a/dev-lang/rust/rust-1.23.0-r1.ebuild b/dev-lang/rust/rust-1.23.0-r1.ebuild |
22 |
index a8057d5b644..59fee5ba417 100644 |
23 |
--- a/dev-lang/rust/rust-1.23.0-r1.ebuild |
24 |
+++ b/dev-lang/rust/rust-1.23.0-r1.ebuild |
25 |
@@ -5,7 +5,7 @@ EAPI=6 |
26 |
|
27 |
PYTHON_COMPAT=( python2_7 ) |
28 |
|
29 |
-inherit python-any-r1 versionator toolchain-funcs |
30 |
+inherit multiprocessing python-any-r1 versionator toolchain-funcs |
31 |
|
32 |
if [[ ${PV} = *beta* ]]; then |
33 |
betaver=${PV//*beta} |
34 |
@@ -119,7 +119,7 @@ src_configure() { |
35 |
} |
36 |
|
37 |
src_compile() { |
38 |
- ./x.py build --verbose --config="${S}"/config.toml "${MAKEOPTS}" || die |
39 |
+ ./x.py build --verbose --config="${S}"/config.toml -j$(makeopts_jobs) || die |
40 |
} |
41 |
|
42 |
src_install() { |