Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 652776

Summary: dev-util/bazel: does not respect MAKEOPTS=-j1
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Jason Zaman <perfinion>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 654178    
Attachments: 26.20180408-021256

Description Toralf Förster gentoo-dev 2018-04-08 10:19:26 UTC
pstree attached
Comment 1 Toralf Förster gentoo-dev 2018-04-08 10:20:24 UTC
Created attachment 526842 [details]

Comment 2 Zac Medico gentoo-dev 2018-04-08 18:29:46 UTC
It looks like scripts/bootstrap/ supports a EXTRA_BAZEL_ARGS variable which be might be able to add a --local_resources argument.
Comment 3 Toralf Förster gentoo-dev 2018-04-14 13:53:13 UTC
Created attachment 527352 [details]

seems, that ninja ignores the -j1 whereas make has it set
Comment 4 Jason Zaman gentoo-dev 2018-05-21 09:52:49 UTC
Created attachment 532542 [details, diff]

This fixes it mostly on my machine. there is a short bit in the beginning when its extracting that uses more than one core but after that its only one at a time for everything else.
Comment 5 Larry the Git Cow gentoo-dev 2018-05-21 18:10:51 UTC
The bug has been referenced in the following commit(s):

commit 441d853f5076a066ca9d6901a01158191a3208a2
Author:     Jason Zaman <>
AuthorDate: 2018-05-21 17:57:24 +0000
Commit:     Zac Medico <>
CommitDate: 2018-05-21 18:10:44 +0000

    dev-util/bazel: make build respect MAKEOPTS
    Package-Manager: Portage-2.3.38, Repoman-2.3.9

 dev-util/bazel/bazel-0.10.1.ebuild | 5 +++--
 dev-util/bazel/bazel-0.13.0.ebuild | 5 +++--
 dev-util/bazel/bazel-0.7.0.ebuild  | 7 ++++---
 3 files changed, 10 insertions(+), 7 deletions(-)