jre/jdk's should probably not install libs linking with X when using -X
Not all JRE/JDKs even have USE=X. Additionally, while fixing this bug, it would be worthwhile to add modular-xorg dependencies in. I believe that sun-jdk can be used as a template for those deps.
What about also adding "alsa" and "odbc" to that list (I'm referring to sun-jdk-1.5.0.08)
Created attachment 98020 [details, diff] sun-jdk-respect-some-deps.patch Would you guys consider something like this patch? It removes some files that are linked against alsa, odbc or X libs. It also adds a RDEPEND to net-libs/libnet (needed by libnio.so, so guessing it would only be needed for >=jdk-1.5)
The solution we choose is bug 177925 *** This bug has been marked as a duplicate of bug 177925 ***