Sandbox libxml2 and switch clang to zstd compression
When trying to execute clang on a very very fresh Debian image, it can't
find libxml2. Sandbox that too.
While we are here, zstd images extract faster than xz. Switch over.
Change-Id: Ia196ae49223b488f5eabe28b67e6f274b3072795
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/debian/BUILD b/debian/BUILD
index 72ce799..a7b3b97 100644
--- a/debian/BUILD
+++ b/debian/BUILD
@@ -70,6 +70,10 @@
":xvfb_amd64.bzl",
xvfb_amd64_debs = "files",
)
+load(
+ ":clang_amd64.bzl",
+ clang_amd64_debs = "files",
+)
load(":packages.bzl", "download_packages", "generate_deb_tarball")
package(default_visibility = ["//visibility:public"])
@@ -154,23 +158,19 @@
download_packages(
name = "download_clang_deps",
- excludes = [
- "lib32stdc++6",
- "libstdc++6",
- ],
- force_includes = [
- "libc6",
- "libc6-dev",
- ],
packages = [
- "clang-6.0",
- "clang-format-6.0",
- "gcc",
- "gfortran",
+ "libtinfo5",
+ "libxml2",
],
target_compatible_with = ["@platforms//os:linux"],
)
+generate_deb_tarball(
+ name = "clang_amd64",
+ files = clang_amd64_debs,
+ target_compatible_with = ["@platforms//os:linux"],
+)
+
download_packages(
name = "download_postgresql_deps",
excludes = [