Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170661 - www-servers/tomcat-5.5.23 tomcat-apr compile is using -source 1.6 -target 1.6 is java5 use flag set
Summary: www-servers/tomcat-5.5.23 tomcat-apr compile is using -source 1.6 -target 1.6...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: William L. Thomson Jr. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-12 22:15 UTC by Tom Dexter
Modified: 2007-03-13 15:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Dexter 2007-03-12 22:15:51 UTC
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"
Comment 1 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-03-13 00:13:17 UTC
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.
Comment 2 Tom Dexter 2007-03-13 11:54:41 UTC
You're absolutely correct.  After re-sync everythings fine.  Sorry for the bogus bug, and thanks!
Comment 3 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-03-13 15:34:06 UTC
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.