Download patch instead of requiring it to be installed
Part of work to make the code build on a clean Stretch machine.
Change-Id: I1f7b9b51a84a98bc178b05e575ae4b314cf69c1c
diff --git a/debian/BUILD b/debian/BUILD
index 9b5ce9e..e9d3823 100644
--- a/debian/BUILD
+++ b/debian/BUILD
@@ -8,6 +8,10 @@
"//debian:clang.bzl",
clang_debs = "files",
)
+load(
+ ":patch.bzl",
+ patch_debs = "files",
+)
load("//debian:packages.bzl", "download_packages", "generate_deb_tarball")
py_binary(
@@ -51,6 +55,13 @@
],
)
+download_packages(
+ name = "download_patch_deps",
+ packages = [
+ "patch",
+ ],
+)
+
generate_deb_tarball(
name = "python",
files = python_debs,
@@ -60,3 +71,8 @@
name = "clang_3p6",
files = clang_debs,
)
+
+generate_deb_tarball(
+ name = "patch",
+ files = patch_debs,
+)