Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 540696 - www-servers/tomcat-8.0.18.ebuild
Summary: www-servers/tomcat-8.0.18.ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-19 17:43 UTC by William L. Thomson Jr.
Modified: 2015-08-14 21:22 UTC (History)
0 users

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


Attachments
tomcat-8.0.18.ebuild (tomcat-8.0.18.ebuild,3.96 KB, text/plain)
2015-02-19 17:43 UTC, William L. Thomson Jr.
Details
tomcat-8.0.18-build.xml.patch (tomcat-8.0.18-build.xml.patch,3.90 KB, patch)
2015-02-19 17:44 UTC, William L. Thomson Jr.
Details | Diff
tomcat-8.0.18-build.xml.patch (tomcat-8.0.18-build.xml.patch,8.80 KB, patch)
2015-02-19 23:27 UTC, William L. Thomson Jr.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description William L. Thomson Jr. 2015-02-19 17:43:25 UTC
Created attachment 396982 [details]
tomcat-8.0.18.ebuild

www-servers/tomcat-8.0.18.ebuild please review for syntax EAPI issues before commit
Comment 1 William L. Thomson Jr. 2015-02-19 17:44:06 UTC
Created attachment 396984 [details, diff]
tomcat-8.0.18-build.xml.patch
Comment 2 Miroslav Šulc gentoo-dev 2015-02-19 21:46:00 UTC
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
...
Comment 3 William L. Thomson Jr. 2015-02-19 23:27:22 UTC
Created attachment 397016 [details, diff]
tomcat-8.0.18-build.xml.patch
Comment 4 William L. Thomson Jr. 2015-02-19 23:29:31 UTC
(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.
Comment 5 Miroslav Šulc gentoo-dev 2015-02-20 07:27:25 UTC
*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!
Comment 6 James Le Cuirot gentoo-dev 2015-08-14 21:22:52 UTC
@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.