Skip to content

bazel_7: fix bazelDeps build on darwin under sandbox=true#457328

Open
boltzmannrain wants to merge 1 commit intoNixOS:masterfrom
boltzmannrain:bazel_7_darwin_sleep
Open

bazel_7: fix bazelDeps build on darwin under sandbox=true#457328
boltzmannrain wants to merge 1 commit intoNixOS:masterfrom
boltzmannrain:bazel_7_darwin_sleep

Conversation

@boltzmannrain
Copy link
Contributor

Fixes

Server crashed during startup. Now printing ..../server/jvm.out
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
FATAL: CHECK failed: (suspend_state.connect_port) != (0):

by overriding sleep&suspend prevention module in darwin bootstrap bazel binary

Initially had this code implemented for bazel_8, but in the end recent bazel_8 versions don't need binary bootstrap bazel and don't hit this issue anymore (#362414)

Now hit this again trying to update bazel_7, so making PR for bazel_7, separately from version bump as it is the same thing for 7.6.0 and 7.7.0

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

Fixes
```
Server crashed during startup. Now printing ..../server/jvm.out
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
FATAL: CHECK failed: (suspend_state.connect_port) != (0):
```
by overriding sleep&suspend prevention module in darwin bootstrap bazel binary

Initially had this code implemented for `bazel_8`, but in the end recent
`bazel_8` versions don't need binary bootstrap bazel and don't hit this
issue anymore (NixOS#362414)

Now hit this again trying to update `bazel_7`, so making PR for `bazel_7`,
separately from version bump as it is the same thing for 7.6.0 and 7.7.0
@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Oct 31, 2025
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant