Sync Debian package deps, and add a comment to prevent future desync.
Commit c8be465869fbcfaa00b75d241c67279324976e0b added the headless JDK
to `debian/control`, but this isn't propagating to published packages
because those use the deps list in `debian/BUILD`.
This commit adds the headless JDK to `debian/BUILD`, with comments so
future changes won't hit the same problem.
Closes #4686.
PiperOrigin-RevId: 187461399
diff --git a/scripts/packages/debian/BUILD b/scripts/packages/debian/BUILD
index 157b469..19e7f59 100644
--- a/scripts/packages/debian/BUILD
+++ b/scripts/packages/debian/BUILD
@@ -72,7 +72,8 @@
built_using = "bazel (HEAD)",
data = ":debian-data",
depends = [
- "google-jdk | java8-jdk | java8-sdk | oracle-java8-installer",
+ # Keep in sync with Depends section in ./control
+ "google-jdk | java8-sdk-headless | java8-jdk | java8-sdk | oracle-java8-installer",
"g++",
"zlib1g-dev",
"bash-completion",
diff --git a/scripts/packages/debian/control b/scripts/packages/debian/control
index fe428fc..a28c6a6 100644
--- a/scripts/packages/debian/control
+++ b/scripts/packages/debian/control
@@ -9,6 +9,7 @@
Section: contrib/devel
Priority: optional
Architecture: amd64
+# Keep in sync with :bazel-debian in ./BUILD
Depends: google-jdk | java8-sdk-headless | java8-jdk | java8-sdk | oracle-java8-installer, g++, zlib1g-dev, bash-completion
Description: Bazel is a tool that automates software builds and tests.
Supported build tasks include running compilers and linkers to produce