Skip to content

Comments

Support building //cuttlefish/package:cvd with bazel 9#2164

Open
Databean wants to merge 6 commits intogoogle:mainfrom
Databean:bazel9-gemini
Open

Support building //cuttlefish/package:cvd with bazel 9#2164
Databean wants to merge 6 commits intogoogle:mainfrom
Databean:bazel9-gemini

Conversation

@Databean
Copy link
Member

#gemini

Bug: b/477396584

This updates the grpc and grpc-proto dependencies to their latest
upstream commits using git_override in build_external.

The newer grpc includes some changes for bazel 9:
https://www.github.com/grpc/grpc/issues/41438#issuecomment-3860024262

 #gemini

Bug: b/477396584
This adds explicit load() statements for proto_library, cc_proto_library,
cc_library, cc_binary, and sh_binary in various BUILD.bazel files where
they were previously built-in. This is required for Bazel 9 support while
maintaining Bazel 8 compatibility.

 #gemini

Bug: b/477396584
This applies numerous patches and configuration updates to enable building
//cuttlefish/package:cvd with Bazel 9. Key changes include:

- Adding load statements for cc_* and proto_* rules in multiple external repos
  (rootcanal, gflags, jsoncpp, libjpeg_turbo, c-ares, re2, rules_m4, curl,
  libuuid, swiftshader, bzip2, xz).
- Updating grpc to avoid native.objc_library (removed in Bazel 9).
- Patching gfxstream to resolve redundant include errors caused by stricter
  module/header checks.
- Fixing openssl_sys.bzl to correctly collect include directories.
- Adding necessary dependencies (rules_cc, protobuf) to patched module files.

 #gemini

Bug: b/477396584
This removes redundant version numbers from bazel_dep calls in the root
MODULE.bazel when a corresponding override exists in build_external/.
To satisfy Bazel's requirement, the version is now explicitly specified
within each single_version_override.

 #gemini

Bug: b/477396584
@Databean Databean requested a review from jmacnak February 20, 2026 03:14
@Databean
Copy link
Member Author

Thanks for reviewing!

@Databean Databean added this pull request to the merge queue Feb 21, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 21, 2026
@Databean Databean added this pull request to the merge queue Feb 21, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants