summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim MacArthur <jim.macarthur@codethink.co.uk>2015-05-28 16:33:50 (GMT)
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-12 10:27:34 (GMT)
commit6c9cc189cc1470283a146d359bd817061cc5a747 (patch)
treec76762ea6a2282417e7916fb90fca70c75cc06c2
parenta96cba233e16adc9382db0049edbad31a10fdccf (diff)
downloaddefinitions-6c9cc189cc1470283a146d359bd817061cc5a747.tar.gz
Add --no-same-owner when unpacking JDK
This is necessary because of the build sandboxing we do using 'linux-user-chroot', which drops the privileges necessary for changing ownership permissions inside the staging area. Change-Id: If56f7eb6bb8ba10de319cc616b43c3022237c385
-rw-r--r--strata/zookeeper/java-binary.morph2
1 files changed, 1 insertions, 1 deletions
diff --git a/strata/zookeeper/java-binary.morph b/strata/zookeeper/java-binary.morph
index a6c11f9..ba0c28a 100644
--- a/strata/zookeeper/java-binary.morph
+++ b/strata/zookeeper/java-binary.morph
@@ -6,6 +6,6 @@ build-commands:
install-commands:
- mkdir -p "$DESTDIR$PREFIX"/bin
- mkdir -p "$DESTDIR$PREFIX"/lib
-- tar zxf jdk-8u20-linux-x64.tar.gz -C "$DESTDIR$PREFIX"/lib
+- tar zxf jdk-8u20-linux-x64.tar.gz -C "$DESTDIR$PREFIX"/lib --no-same-owner
- unzip jce_policy-8.zip -d "$DESTDIR$PREFIX"/lib/jdk1.8.0_20/jre/lib/security
- ln -sfn "$PREFIX"/lib/jdk1.8.0_20/jre/bin/java "$DESTDIR$PREFIX"/bin/