aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Wilson <diegowilson@google.com>2018-01-30 17:19:37 -0800
committerDiego Wilson <diegowilson@google.com>2018-02-01 17:14:29 -0500
commit109f353fe9a63b146b9e74a08bbb10bfd3bf46b2 (patch)
treec03dba19d0e29e35b36bafcdd3acce962b2667c6
parent61ebe08ef0132f4df784be476c18dbcf76e16a2c (diff)
downloadguice-109f353fe9a63b146b9e74a08bbb10bfd3bf46b2.tar.gz
Avoid writing to source dir while building guice
One of the external/guice build rules uses zip. By default zip will create a temporary working directory next to the source archive. Instead of tainting the source directory let's make it use the standard /tmp directory. Test: make checkbuild dist tests Change-Id: I99ad49f12923be3a81f10f511091d8485f74c596
-rw-r--r--Android.bp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 1cd42f31..57f5e1cf 100644
--- a/Android.bp
+++ b/Android.bp
@@ -58,7 +58,7 @@ genrule {
name: "guice_munge_srcjar",
out: ["guice_munge.srcjar"],
srcs: ["lib/build/munge.jar"],
- cmd: "zip $(in) -O $(out) -d MungeTask.java",
+ cmd: "zip --temp-path $${TMPDIR:-/tmp} $(in) -O $(out) -d MungeTask.java",
}
genrule {