summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2015-09-06 21:59:21 +0100
committerJames Le Cuirot <chewi@gentoo.org>2015-09-06 22:00:28 +0100
commitb898006ba069427dbe80e01c418bc2f5fc97f53b (patch)
tree70ec7fdaf027c56a305abf75408845bcc3cfa8c0
parentdev-java/oracle-jdk-bin: Delete Oracle's evil usage tracker (diff)
downloadgentoo-b898006ba069427dbe80e01c418bc2f5fc97f53b.tar.gz
gentoo-b898006ba069427dbe80e01c418bc2f5fc97f53b.tar.bz2
gentoo-b898006ba069427dbe80e01c418bc2f5fc97f53b.zip
dev-java/oracle-jre-bin: Delete Oracle's evil usage tracker
Fixes bug #559478. Their site says it's disabled by default but that doesn't appear to be the case any more. Package-Manager: portage-2.2.20.1
-rw-r--r--dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.60-r1.ebuild (renamed from dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.60.ebuild)8
1 files changed, 7 insertions, 1 deletions
diff --git a/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.60.ebuild b/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.60-r1.ebuild
index b6ecedea21da..970db2e47027 100644
--- a/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.60.ebuild
+++ b/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.60-r1.ebuild
@@ -80,7 +80,8 @@ RDEPEND="!x64-macos? (
# A PaX header isn't created by scanelf so depend on paxctl to avoid
# fallback marking. See bug #427642.
-DEPEND="jce? ( app-arch/unzip )
+DEPEND="app-arch/zip
+ jce? ( app-arch/unzip )
pax_kernel? ( sys-apps/paxctl )"
S="${WORKDIR}/jre"
@@ -121,6 +122,11 @@ src_prepare() {
if use jce ; then
mv "${WORKDIR}"/${JCE_DIR} lib/security/ || die
fi
+
+ # Delete Oracle's evil usage tracker. Not just because it's evil but
+ # because it breaks the sandbox during builds and we can't find any
+ # other feasible way to disable it or make it write somewhere else.
+ zip -d lib/rt.jar sun/usagetracker/\* || die
}
src_install() {