Created attachment 380812 [details, diff] use EROOT in java-vm-2_pkg_postinst As JAVA_VM_SYSTEM and JAVA_VM_DIR are relative to EPREFIX, pkg_postinst() should use EROOT instead of ROOT for them. Without this patch, installing java in Prefix on a Gentoo host (with configured java) leaves the Prefix java unconfigured, as the host-java symlinks are found. Thanks!
EROOT=$ROOT -> EROOT=${ROOT} for consitency. Other than that please go ahead.
Done, thanks!