Summary: | dev-java/junit-4.12 - javadoc: error - invalid flag: -Xdoclint:accessibility | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ave |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Juergen Rose
2015-07-11 10:39:29 UTC
'USE=-doc emerge -v1 junit' fails too, with: ... BUILD SUCCESSFUL Total time: 4 seconds >>> Source compiled. >>> Test phase [not enabled]: dev-java/junit-4.12 >>> Install junit-4.12 into /var/tmp/portage/dev-java/junit-4.12/image/ category dev-java * ERROR: dev-java/junit-4.12::gentoo failed (install phase): * target/junit-4.12.jar does not exist or is not a file! Just guessing but that's probably a Java 8 flag. I don't want a package as important as junit requiring Java 8 to build at this point so stripping out this flag would be best. It has no value for end users anyway. I confirm failure at installation stage:
>>> Install junit-4.12 into /var/tmp/portage/dev-java/junit-4.12/image/ category dev-java
* ERROR: dev-java/junit-4.12 failed (install phase):
* target/junit-4.12.jar does not exist or is not a file!
*
* Call stack:
* ebuild.sh, line 93: Called src_install
* environment, line 3891: Called java-pkg_newjar 'target/junit-4.12.jar'
* environment, line 2858: Called die
* The specific snippet of code:
* [[ ! -f ${original_jar} ]] && die "${original_jar} does not exist or is not a file!";
Index: files/junit-4.12-build.xml =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-java/junit/files/junit-4.12-build.xml,v retrieving revision 1.1 diff -u -B -r1.1 junit-4.12-build.xml --- files/junit-4.12-build.xml 10 Jul 2015 12:48:21 -0000 1.1 +++ files/junit-4.12-build.xml 11 Jul 2015 13:14:53 -0000 @@ -222,8 +222,7 @@ charset="ISO-8859-1" linksource="true" breakiterator="false" - maxmemory="128m" - additionalparam="-Xdoclint:accessibility -Xdoclint:reference"/> + maxmemory="128m" /> </target> Compiled using the following settings: $ eselect java-vm show Current system-vm icedtea-7 Current user-vm icedtea-7 Outcome: BUILD SUCCESSFUL Total time: 2 minutes 32 seconds >>> Completed testing dev-java/junit-4.12 + 11 Jul 2015; Patrice Clement <monsieurp@gentoo.org> + files/junit-4.12-build.xml: + Remove additionalparam flags from javadoc target for the javadoc to compile + smoothly with Java 7. Fix bug 554486. + Try again and let us know. Thanks for the heads up. (In reply to Patrice Clement from comment #4) > Index: files/junit-4.12-build.xml > =================================================================== > RCS file: /var/cvsroot/gentoo-x86/dev-java/junit/files/junit-4.12-build.xml,v > retrieving revision 1.1 > diff -u -B -r1.1 junit-4.12-build.xml > --- files/junit-4.12-build.xml 10 Jul 2015 12:48:21 -0000 1.1 > +++ files/junit-4.12-build.xml 11 Jul 2015 13:14:53 -0000 > @@ -222,8 +222,7 @@ > charset="ISO-8859-1" > linksource="true" > breakiterator="false" > - maxmemory="128m" > - additionalparam="-Xdoclint:accessibility -Xdoclint:reference"/> > + maxmemory="128m" /> > </target> I do not have such an additionalparam line in my junit-4.12-build.xml: root@impala:/usr/local/portage/dev-java/junit(67)# grep -U3 maxmemory= /usr/portage/dev-java/junit/files/junit-4.12-build.xml charset="ISO-8859-1" linksource="true" breakiterator="false" maxmemory="128m" /> </target> <!-- ====================================================================== --> But neverthess I get the error. So the bug is neither resolved nor fixed for me. (In reply to Juergen Rose from comment #5) > (In reply to Patrice Clement from comment #4) ... > root@impala:/usr/local/portage/dev-java/junit(67)# grep -U3 maxmemory= > /usr/portage/dev-java/junit/files/junit-4.12-build.xml > charset="ISO-8859-1" > linksource="true" > breakiterator="false" > maxmemory="128m" /> > </target> > > <!-- > ====================================================================== --> > > > But neverthess I get the error. So the bug is neither resolved nor fixed for > me. To correct myself, 'MAKEOPTS=-j1 emerge -1 junit' fails new with a different error: ... [javadoc] javadoc: warning - Class Factory not found. [javadoc] /var/tmp/portage/dev-java/junit-4.12/work/junit-r4.12/src/main/java/org/junit/internal/matchers/TypeSafeMatcher.java:16: warning - Tag @link: reference not found: org.hamcrest.TypeSafeMatcher [javadoc] /var/tmp/portage/dev-java/junit-4.12/work/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:81: warning - Tag @link: reference not found: CoreMatchers#both(Matcher) [javadoc] /var/tmp/portage/dev-java/junit-4.12/work/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:68: warning - Tag @link: reference not found: CoreMatchers#containsString(String) [javadoc] /var/tmp/portage/dev-java/junit-4.12/work/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:94: warning - Tag @link: reference not found: CoreMatchers#either(Matcher) [javadoc] /var/tmp/portage/dev-java/junit-4.12/work/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:59: warning - Tag @link: reference not found: CoreMatchers#everyItem(Matcher) [javadoc] /var/tmp/portage/dev-java/junit-4.12/work/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:30: warning - Tag @link: reference not found: CoreMatchers#hasItem(Matcher) [javadoc] /var/tmp/portage/dev-java/junit-4.12/work/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:21: warning - Tag @link: reference not found: CoreMatchers#hasItem(Object) [javadoc] /var/tmp/portage/dev-java/junit-4.12/work/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:50: warning - Tag @link: reference not found: CoreMatchers#hasItems(Matcher...) [javadoc] /var/tmp/portage/dev-java/junit-4.12/work/junit-r4.12/src/main/java/org/junit/matchers/JUnitMatchers.java:39: warning - Tag @link: reference not found: CoreMatchers#hasItems(Object...) [javadoc] /var/tmp/portage/dev-java/junit-4.12/work/junit-r4.12/src/main/java/org/junit/matchers/package-info.java:9: warning - Tag @link: reference not found: org.hamcrest.Matcher BUILD SUCCESSFUL Total time: 10 seconds >>> Source compiled. >>> Test phase [not enabled]: dev-java/junit-4.12 >>> Install junit-4.12 into /var/tmp/portage/dev-java/junit-4.12/image/ category dev-java * ERROR: dev-java/junit-4.12::gentoo failed (install phase): * target/junit-4.12.jar does not exist or is not a file! BTW., should I file a new bug for the last issue? I have the fix already. Hold on a sec. Somebody filed a bug already actually. See bug 554584. |