dev-lang/rust: fix MAKEOPTS -l/--load-average build
authorGeorgy Yakovlev <ya@sysdump.net>
Tue, 30 Jan 2018 04:54:54 +0000 (20:54 -0800)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 31 Jan 2018 09:56:11 +0000 (10:56 +0100)
Upstream build system does not like -l/--load-average,
So we cannot use MAKEOPTS as-is. The only relevant option is -j<num>.
This commit changes to using multiprocessing.eclass makeopts_jobs()

Closes: https://bugs.gentoo.org/646092
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Closes: https://github.com/gentoo/gentoo/pull/7000

dev-lang/rust/rust-1.23.0-r1.ebuild

index a8057d5b64400770a8f968268b8920f30ad6b9ec..59fee5ba417f0664e2f753eb90bd7c6e86f94252 100644 (file)
@@ -5,7 +5,7 @@ EAPI=6
 
 PYTHON_COMPAT=( python2_7 )
 
-inherit python-any-r1 versionator toolchain-funcs
+inherit multiprocessing python-any-r1 versionator toolchain-funcs
 
 if [[ ${PV} = *beta* ]]; then
        betaver=${PV//*beta}
@@ -119,7 +119,7 @@ src_configure() {
 }
 
 src_compile() {
-       ./x.py build --verbose --config="${S}"/config.toml "${MAKEOPTS}" || die
+       ./x.py build --verbose --config="${S}"/config.toml -j$(makeopts_jobs) || die
 }
 
 src_install() {