When building tomcat-7.0.52 as part of normal updates the build fails when USE=doc is set on the build. Reproducible: Always Steps to Reproduce: 1. USE=doc emerge -v1 \=www-servers/tomcat-7.0.52 2. build failure 3. Actual Results: Failed Build Expected Results: Successful Build Without the doc flag set the build is successful but not with the doc flag.
Created attachment 371470 [details] environment
Created attachment 371472 [details] build.log
Created attachment 371474 [details] emerge -pqv '=www-servers/tomcat-7.0.52::gentoo'
Created attachment 371476 [details] emerge --info '=www-servers/tomcat-7.0.52::gentoo'
here's the change upstream: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/build.xml?r1=1536089&r2=1536183&diff_format=h
Fixed in tomcat-7.0.56.
Re comment #6: How is it fixed? I get BUILD FAILED /gentoo/tmp/portage/www-servers/tomcat-7.0.56/work/apache-tomcat-7.0.56-src/build.xml:1499: The java.7.home property must be set for javadoc build
Created attachment 390704 [details, diff] patched ebuild (In reply to Johann Schmitz (ercpe) from comment #6) > Fixed in tomcat-7.0.56. Not really. As you write in the ChangeLog Use new websocket use flag (requires java7) to build websocket as it won't work on java < 7. you fixed the problem if one activates the new websocket USE flag. And even in that fix I think the dependencies should be websockets? ( >=virtual/jre-1.7 ) !websockets? ( >=virtual/jre-1.6 ) instead of websockets? ( >=virtual/jre-1.6 ) !websockets? ( >=virtual/jre-1.6 ) in order to pull in the required java7. The error of Alex needs a similar fix for the doc USE flag since the build.xml requires java7 for the doc target, too (see my attached ebuild patch).
Created attachment 390720 [details, diff] corrected patch Arrg, sorry: buggy patch. This one works.
Sorry for the late reply. Of course, the 7.0.56 ebuild has wrong *DEPEND. I have bumped it to tomcat-7.0.57. + 14 Dec 2014; Johann Schmitz <ercpe@gentoo.org> + +files/tomcat-7.0.57-build.xml.patch, +tomcat-7.0.57.ebuild: + Version bump to 7.0.57 with fix for bug #503090 * JDK/JRE 1.7 is required for + +websockets. * JDK 1.7 restriction for javadocs removed from build.xml This + will open up CVE-2013-1571, but this is true for any other package in the tree + build with USE="doc" and an old JDK. Horst, thanks for your patch. Unfortunatly, it wouldn't work as intended: Once the java.7.home property is set, the build.xml script tries to build java-7 code which failes with jdk 1.6. I've decided to remove the jdk 1.7 restriction from the build.xml even it opens up CVE-2013-1571 (http://markmail.org/message/344mf45rhjfttuim?q=CVE-2013-1571%2C+VU%23225657+list:org%2Eapache%2Etomcat%2Edev/).
This bug is back in 7.0.59. Apparently because files/tomcat-7.0.59-build.xml.patch doesn't include the same java.7.home fix found in files/tomcat-7.0.57-build.xml.patch.