dev-java/oracle-jdk-bin: Fix hardened + JAVA_PKG_STRICT breakage
authorJames Le Cuirot <chewi@gentoo.org>
Sat, 12 Sep 2015 13:56:35 +0000 (14:56 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Sat, 12 Sep 2015 13:57:14 +0000 (14:57 +0100)
We need to PaX mark javap before we run it on hardened systems.

Package-Manager: portage-2.2.20.1

dev-java/oracle-jdk-bin/oracle-jdk-bin-1.8.0.60-r2.ebuild

index 5c7418a14f6e0c4390923a781af6c789b2e3b759..20a8a31d6d680f9696951cb82a13362b82b94fb9 100644 (file)
@@ -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)"