Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652776 - dev-build/bazel: does not respect MAKEOPTS=-j1
Summary: dev-build/bazel: does not respect MAKEOPTS=-j1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL: https://github.com/bazelbuild/bazel/i...
Whiteboard:
Keywords:
Depends on:
Blocks: makeopts-ignored 922374
  Show dependency tree
 
Reported: 2018-04-08 10:19 UTC by Toralf Förster
Modified: 2024-02-24 12:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
26.20180408-021256 (26.20180408-021256,69.14 KB, text/plain)
2018-04-08 10:20 UTC, Toralf Förster
Details
24.20180414-110100 (24.20180414-110100,70.55 KB, text/plain)
2018-04-14 13:53 UTC, Toralf Förster
Details
0001-dev-util-bazel-make-build-respect-MAKEOPTS.patch (0001-dev-util-bazel-make-build-respect-MAKEOPTS.patch,1.38 KB, patch)
2018-05-21 09:52 UTC, Jason Zaman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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]
26.20180408-021256

pstree
Comment 2 Zac Medico gentoo-dev 2018-04-08 18:29:46 UTC
It looks like scripts/bootstrap/bootstrap.sh 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]
24.20180414-110100

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]
0001-dev-util-bazel-make-build-respect-MAKEOPTS.patch

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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=441d853f5076a066ca9d6901a01158191a3208a2

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

    dev-util/bazel: make build respect MAKEOPTS
    
    Bug: https://bugs.gentoo.org/652776
    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(-)
Comment 6 Larry the Git Cow gentoo-dev 2024-02-24 12:52:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=937bb2fe50b5f938cca85d4a3b2ba55dbf71e617

commit 937bb2fe50b5f938cca85d4a3b2ba55dbf71e617
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2024-02-24 12:50:14 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2024-02-24 12:50:14 +0000

    dev-build/bazel: treeclean
    
    Bug: https://bugs.gentoo.org/878501
    Closes: https://bugs.gentoo.org/906914
    Closes: https://bugs.gentoo.org/917689
    Closes: https://bugs.gentoo.org/918703
    Closes: https://bugs.gentoo.org/634046
    Closes: https://bugs.gentoo.org/652776
    Closes: https://bugs.gentoo.org/687538
    Closes: https://bugs.gentoo.org/747370
    Closes: https://bugs.gentoo.org/766243
    Closes: https://bugs.gentoo.org/790116
    Closes: https://bugs.gentoo.org/820179
    Closes: https://bugs.gentoo.org/820182
    Closes: https://bugs.gentoo.org/832935
    Closes: https://bugs.gentoo.org/837023
    Closes: https://bugs.gentoo.org/846464
    Closes: https://bugs.gentoo.org/858314
    Closes: https://bugs.gentoo.org/867292
    Closes: https://bugs.gentoo.org/872455
    Closes: https://bugs.gentoo.org/884477
    Closes: https://bugs.gentoo.org/895300
    Closes: https://bugs.gentoo.org/909434
    Closes: https://bugs.gentoo.org/917257
    Closes: https://bugs.gentoo.org/919798
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 dev-build/bazel/Manifest                           |   7 --
 dev-build/bazel/bazel-3.7.2-r1.ebuild              | 117 ---------------------
 dev-build/bazel/bazel-4.2.2.ebuild                 | 100 ------------------
 dev-build/bazel/bazel-5.0.0.ebuild                 |  96 -----------------
 dev-build/bazel/bazel-5.1.1.ebuild                 |  96 -----------------
 dev-build/bazel/bazel-5.3.0.ebuild                 | 102 ------------------
 dev-build/bazel/bazel-6.2.0.ebuild                 | 102 ------------------
 dev-build/bazel/bazel-6.4.0.ebuild                 | 102 ------------------
 .../bazel-3.2.0-include-limits-for-gcc-11.patch    |  25 -----
 .../bazel-3.7.2-musl-temp-failure-retry.patch      |  34 ------
 .../files/bazel-4.2.2-absl_numeric_limits.patch    |  41 --------
 dev-build/bazel/metadata.xml                       |  20 ----
 profiles/package.mask                              |  15 ---
 profiles/updates/1Q-2024                           |   1 -
 14 files changed, 858 deletions(-)