The emerge of tomcat-5.5 appears to be forcing -source 1.6 -targe 1.6 when compiling tomcat-apr is the java5 use flag is set, even if the system vm is 1.5, and even if JDK 1.6 is not installed. If jdk 1.6 is installed it compiles using the 1.6 javac, however I have not been able to get to to work correctly compiled with that. The tomcat server would not respond and I got no logs except an empty catalina.log. Reproducible: Always Steps to Reproduce: 1. Enable java5 use flag 2. Emerge tomcat-5.5 Actual Results: See errors in 'Additional Information' build-tomcatapr: [echo] ========== Building: tomcat-apr compile-only: [javac] Compiling 33 source files to /var/tmp/portage/www-servers/tomcat-5.5.23/work/apache-tomcat-5.5.23-src/build/build/classes [javac] javac: invalid target release: 1.6 <snip> !!! When you file a bug report, please include the following information: GENTOO_VM=sun-jdk-1.5 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.10" JAVACFLAGS="-source 1.6 -target 1.6" COMPILER="javac"
Seems the dependencies for the virtuals were quite off. That should be why you are getting -source/-target 1.6. Since it's not explicitly set to 1.6 anywhere. Please sync tree in a bit, and re-emerge tomcat. If the problem remains please comment on bug and I will re-open. Otherwise closing as fixed for now.
You're absolutely correct. After re-sync everythings fine. Sorry for the bogus bug, and thanks!
Well it wasn't really a bogus bug, dependencies were not correct with regard to the virtual jdk/jre dependencies. So could have caused the problem you ran into. Looks like it since corrected deps, and a sync fixed your problem. Thank you for reporting.