Currently there are problems when users try to install tomcat with useflags +doc/+examples see #357437 and #283273 Reproducible: Always Steps to Reproduce: 1. emerge tomcat with +docs +examples 2. 3. Actual Results: 1, xml files instead of html files for docs are installed 2, examples aren't compiled, symlinks to needed links don't work Expected Results: docs and examples are usable See the added patches to solve both problems. To make the examples work i had to add a context.xml to examples/META-INF with allowLinking="true". The docu mentions: "NOTE: This flag MUST NOT be set to true on the Windows platform (or any other OS which does not have a case sensitive filesystem), as it will disable case sensitivity checks, allowing JSP source code disclosure, among other security problems." http://tomcat.apache.org/tomcat-6.0-doc/config/context.html So please doublecheck this solution. Another solution is to simply copy the jars instead of linking them. Btw. the ebuild still mentions CVE 2007-2449,2007-2450 which are both fixed since tomcat-6.0.14 according to http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.14 so you could remove those warning, too.
Created attachment 270275 [details, diff] patch for already existing build.xml patch
Created attachment 270277 [details, diff] patch for the ebuild of tomcat-7.0.12
Created attachment 270279 [details] context.xml needed to allow symlinking in examples webapp
Created attachment 270925 [details, diff] fixes reference to file in earlier patch
Still broken in 7.0.27. Here's another way to make /docs/ work: toolshed localhost # cat /etc/tomcat-7/Catalina/localhost/docs.xml <?xml version='1.0'?> <Context docBase='/usr/share/tomcat-7/webapps/docs'> </Context> I haven't wanted /examples/ but something similar might serve.
docs and examples are now properly built and installed with USE=extra-webapps set. See https://wiki.gentoo.org/wiki/Apache_Tomcat for more information. Thanks for the report.