Skip to content

Commit 4d40c63

Browse files
cblichmanncopybara-github
authored andcommitted
Sandboxed API: Update BCR modules for external dependencies
This change migrates `libcap` to be fetched as `bazel_dep` from the Bazel Central Registry, removing the need for custom `http_archive` rules and local BUILD files. Also updated module versions and Bazel compatibility to the current 8.0.0 release. PiperOrigin-RevId: 805773480 Change-Id: Icedf5bc616099b85230519c88abf195fd60678b0
1 parent 5aaef11 commit 4d40c63

6 files changed

Lines changed: 9 additions & 325 deletions

File tree

MODULE.bazel

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
module(
1616
name = "sandboxed_api",
17-
version = "20241101.0",
18-
bazel_compatibility = [">=7.1.1"],
17+
version = "20250910.0",
18+
bazel_compatibility = [">=8.0.0"],
1919
)
2020

2121
# Load additional repo rules.
@@ -24,13 +24,14 @@ http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "ht
2424
# Bazel Central Registry (BCR) Modules:
2525
bazel_dep(name = "abseil-cpp", version = "20250814.0")
2626
bazel_dep(name = "abseil-py", version = "2.1.0")
27-
bazel_dep(name = "bazel_skylib", version = "1.7.1")
27+
bazel_dep(name = "bazel_skylib", version = "1.8.1")
2828
bazel_dep(name = "google_benchmark", version = "1.8.5")
2929
bazel_dep(name = "googletest", version = "1.17.0")
3030
bazel_dep(name = "protobuf", version = "31.0", repo_name = "com_google_protobuf")
3131
bazel_dep(name = "rules_proto", version = "7.0.2")
3232
bazel_dep(name = "rules_python", version = "1.0.0")
33-
bazel_dep(name = "rules_cc", version = "0.1.2")
33+
bazel_dep(name = "rules_cc", version = "0.2.0")
34+
bazel_dep(name = "libcap", version = "2.27")
3435
bazel_dep(name = "libunwind", version = "1.8.1")
3536
bazel_dep(name = "libffi", version = "3.4.7")
3637
bazel_dep(name = "zlib", version = "1.3.1.bcr.7") # Only needed for examples
@@ -43,11 +44,3 @@ llvm.disable_llvm_zlib()
4344
llvm.disable_llvm_terminfo()
4445
use_repo(llvm, "llvm-project")
4546

46-
# libcap
47-
http_archive(
48-
name = "org_kernel_libcap",
49-
build_file = "//sandboxed_api:bazel/external/libcap.BUILD",
50-
sha256 = "260b549c154b07c3cdc16b9ccc93c04633c39f4fb6a4a3b8d1fa5b8a9c3f5fe8", # 2019-04-16
51-
strip_prefix = "libcap-2.27",
52-
urls = ["https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.27.tar.gz"],
53-
)

MODULE.bazel.lock

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sandboxed_api/bazel/external/libcap.BUILD

Lines changed: 0 additions & 87 deletions
This file was deleted.

sandboxed_api/bazel/external/libffi.BUILD

Lines changed: 0 additions & 72 deletions
This file was deleted.

sandboxed_api/bazel/external/libunwind.BUILD

Lines changed: 0 additions & 151 deletions
This file was deleted.

sandboxed_api/sandbox2/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ cc_library(
646646
"@abseil-cpp//absl/status",
647647
"@abseil-cpp//absl/status:statusor",
648648
"@abseil-cpp//absl/strings",
649-
"@org_kernel_libcap//:libcap",
649+
"@libcap",
650650
],
651651
)
652652

0 commit comments

Comments
 (0)