WARN: prerm It appears you are removing your system-vm! Please run java-config -L to list available VMs, then use java-config -S to set a new system-vm! I re-emerged the same versions with different USE flags. You guys need a check to see if there still is a version installed and not display this. This error message will come up for upgrades too and it'll be invalid as well.
So, is there any non-hacky and PMS/EAPI supported way of determining if I'm upgrading, remerging or unmerging? I know the order of phases can be different for each scenario...
EAPI 4 added REPLACED_BY_VERSION and REPLACING_VERSIONS. Now that all JVM ebuilds are EAPI 4 this should no longer be an issue.