From: James Le Cuirot Date: Sat, 12 Sep 2015 13:56:35 +0000 (+0100) Subject: dev-java/oracle-jdk-bin: Fix hardened + JAVA_PKG_STRICT breakage X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e4a5f04b1e20509c20f6b1ee24961fefc043cd02;p=gentoo.git dev-java/oracle-jdk-bin: Fix hardened + JAVA_PKG_STRICT breakage We need to PaX mark javap before we run it on hardened systems. Package-Manager: portage-2.2.20.1 --- diff --git a/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.60-r2.ebuild b/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.60-r2.ebuild index 5c7418a14f6e..20a8a31d6d68 100644 --- a/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.60-r2.ebuild +++ b/dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.60-r2.ebuild @@ -184,6 +184,9 @@ src_prepare() { fi if [[ -n ${JAVA_PKG_STRICT} ]] ; then + # Mark this binary early to run it now. + pax-mark Cm ./bin/javap + eqawarn "Ensure that this only calls trackJavaUsage(). If not, see bug #559936." eqawarn eqawarn "$(./bin/javap -J-Duser.home=${T} -c sun.misc.PostVMInitHook || die)"