Created attachment 396982 [details] tomcat-8.0.18.ebuild www-servers/tomcat-8.0.18.ebuild please review for syntax EAPI issues before commit
Created attachment 396984 [details, diff] tomcat-8.0.18-build.xml.patch
currently the ebuild fails in two cases: 1) when "doc" use flag is enabled, it fires following error: downloadfile: * ACCESS DENIED: mkdir: /usr/share/java * ACCESS DENIED: mkdir: /usr/share/java * ACCESS DENIED: mkdir: /usr/share/java * ACCESS DENIED: mkdir: /usr/share/java BUILD FAILED /var/tmp/portage/www-servers/tomcat-8.0.18/work/apache-tomcat-8.0.18-src/build.xml:1379: The following error occurred while executing this line: /var/tmp/portage/www-servers/tomcat-8.0.18/work/apache-tomcat-8.0.18-src/build.xml:2398: Directory /usr/share/java creation was not successful for an unknown reason 2) in all cases during merge phase there is following error: >>> Installing (1 of 1) www-servers/tomcat-8.0.18::gentoo * checking 99 files for package collisions >>> Merging www-servers/tomcat-8.0.18 to / Úno 19, 2015 10:33:00 ODP. javadepchecker.Main checkPkg SEVERE: null java.io.FileNotFoundException: /var/tmp/portage/www-servers/tomcat-8.0.18/image/usr/share/eclipse-ecj-4.4/lib/eclipse-ecj.jar (No such file or directory) at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:220) at java.util.zip.ZipFile.<init>(ZipFile.java:150) at java.util.jar.JarFile.<init>(JarFile.java:166) at java.util.jar.JarFile.<init>(JarFile.java:103) at javadepchecker.Main.checkPkg(Main.java:191) at javadepchecker.Main.main(Main.java:244) --- /usr/ --- /usr/share/ --- /usr/share/tomcat-8/ --- /usr/share/tomcat-8/bin/ >>> /usr/share/tomcat-8/bin/bootstrap.jar ...
Created attachment 397016 [details, diff] tomcat-8.0.18-build.xml.patch
(In reply to Miroslav Šulc from comment #2) > currently the ebuild fails in two cases: > > 1) when "doc" use flag is enabled, it fires following error: Patch addresses compile issues with all use flags enabled. I cannot speak to the state of the stuff installed. Likely need to test out the extra packages, etc. I am not sure I am interested in fixing that stuff, depends. > 2) in all cases during merge phase there is following error: > > >>> Installing (1 of 1) www-servers/tomcat-8.0.18::gentoo > * checking 99 files for package collisions > >>> Merging www-servers/tomcat-8.0.18 to / > Úno 19, 2015 10:33:00 ODP. javadepchecker.Main checkPkg I think this might be a bug in javadepchecker.Main, not sure. The package merges, and works. ecj is how jsp's are compiled not by javac. The dep is there in the ebuild and the package builds, pretty sure it would fail without. So not sure why the depchecker is complaining.
*tomcat-8.0.18 (20 Feb 2015) 20 Feb 2015; Miroslav Šulc <fordfrog@gentoo.org> +tomcat-8.0.18.ebuild, +files/tomcat-8.0.18-build.xml.patch: version bump (per bug #540696, ebuild by William L. Thomson Jr. <wlt@obsidian-studios.com>) thank you for the ebuild and for the fixes!
@fordfrog, don't suppose you can remember why you made this change here? - use doc && java-pkg_dojavadoc output/dist/webapps/docs/api + use doc && java-pkg_dohtml -r output/dist/webapps/docs/api If it was for the sandbox violation in #1, I can't reproduce it here. As for #2, I am fixing that as part of bug #453212.