dev-java/oracle-jdk-bin: Delete Oracle's evil usage tracker
authorJames Le Cuirot <chewi@gentoo.org>
Sun, 6 Sep 2015 20:58:10 +0000 (21:58 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Sun, 6 Sep 2015 21:00:26 +0000 (22:00 +0100)
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

dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.60-r1.ebuild [moved from dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.60.ebuild with 97% similarity]

similarity index 97%
rename from dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.60.ebuild
rename to dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.60-r1.ebuild
index 21c8c97aec3a41dcafec55fac1cca62d87998c05..ee9ca0d97c93377298a36bf8fae9b0dd9a12ef3b 100644 (file)
@@ -108,7 +108,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 )
        examples? ( x64-macos? ( app-arch/unzip ) )
        pax_kernel? ( sys-apps/paxctl )"
 
@@ -181,6 +182,11 @@ src_prepare() {
        if use jce ; then
                mv "${WORKDIR}"/${JCE_DIR} jre/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 jre/lib/rt.jar sun/usagetracker/\* || die
 }
 
 src_install() {