Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 843185 - dev-java/woodstox-core-6.2.8 - Need at least JDK 9 to compile module-info.java in src_compile.
Summary: dev-java/woodstox-core-6.2.8 - Need at least JDK 9 to compile module-info.jav...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on: 843683
Blocks: 796875
  Show dependency tree
 
Reported: 2022-05-07 18:02 UTC by Toralf Förster
Modified: 2022-11-03 18:10 UTC (History)
0 users

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


Attachments
dev-java:woodstox-core-6.2.8:20220507-172938.log (dev-java:woodstox-core-6.2.8:20220507-172938.log,2.81 KB, text/plain)
2022-05-07 18:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,32.78 KB, text/plain)
2022-05-07 18:02 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,8.45 KB, application/x-bzip)
2022-05-07 18:02 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-05-07 18:02:36 UTC
 * Need at least JDK 9 to compile module-info.java in src_compile.

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20220507-120005

  -------------------------------------------------------------------

  The log matches a QA pattern or a pattern requested by a Gentoo developer.
Comment 1 Toralf Förster gentoo-dev 2022-05-07 18:02:37 UTC
Created attachment 777320 [details]
dev-java:woodstox-core-6.2.8:20220507-172938.log
Comment 2 Toralf Förster gentoo-dev 2022-05-07 18:02:39 UTC
Created attachment 777323 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-05-07 18:02:40 UTC
Created attachment 777326 [details]
etc.portage.tar.bz2
Comment 4 Larry the Git Cow gentoo-dev 2022-05-10 06:37:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b6ac60816f1486d8d581f847cfeed17d4f1d3c4

commit 8b6ac60816f1486d8d581f847cfeed17d4f1d3c4
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2022-05-09 09:13:18 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-05-10 06:33:59 +0000

    dev-java/woodstox-core: virtual/jdk-1.8:*" -> -11.*
    
    Bug: https://bugs.gentoo.org/843185
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../woodstox-core/woodstox-core-6.2.8-r1.ebuild    | 102 +++++++++++++++++++++
 1 file changed, 102 insertions(+)
Comment 5 Petr Pisar 2022-05-10 17:53:07 UTC
This still does not build because of missing org.codehaus.stax2:

>>> Compiling source in /var/tmp/portage/dev-java/woodstox-core-6.2.8-r1/work/woodstox-woodstox-core-6.2.8 ...
javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /usr/share/osgi-core-api/lib/osgi-core-api.jar:/usr/share/msv/lib/msv.jar:/usr/share/relaxng-datatype/lib/relaxng-datatype.jar:/usr/share/stax2-api/lib/stax2-api.jar:/usr/share/xsdlib/lib/xsdlib.jar:/usr/share/xerces-2/lib/xerces.jar:/usr/share/xml-commons-external-1.4/lib/xml-commons-external.jar:/usr/share/xml-commons-resolver/lib/xml-commons-resolver.jar:/usr/share/iso-relax/lib/iso-relax.jar:/usr/share/ant-core/lib/ant.jar:/usr/share/ant-core/lib/ant-bootstrap.jar:/usr/share/ant-core/lib/ant-launcher.jar @sources.lst
warning: [options] bootstrap class path not set in conjunction with -source 8
Note: src/main/java/com/ctc/wstx/osgi/WstxBundleActivator.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
javac -source 9 -target 9 -d target/classes -encoding UTF-8 --module-path /usr/share/osgi-core-api/lib/osgi-core-api.jar:/usr/share/msv/lib/msv.jar:/usr/share/relaxng-datatype/lib/relaxng-datatype.jar:/usr/share/stax2-api/lib/stax2-api.jar:/usr/share/xsdlib/lib/xsdlib.jar:/usr/share/xerces-2/lib/xerces.jar:/usr/share/xml-commons-external-1.4/lib/xml-commons-external.jar:/usr/share/xml-commons-resolver/lib/xml-commons-resolver.jar:/usr/share/iso-relax/lib/iso-relax.jar:/usr/share/ant-core/lib/ant.jar:/usr/share/ant-core/lib/ant-bootstrap.jar:/usr/share/ant-core/lib/ant-launcher.jar --module-version 6.2.8 src/moditect/module-info.java
warning: [options] bootstrap class path not set in conjunction with -source 9
src/moditect/module-info.java:10: error: module not found: org.codehaus.stax2
    requires transitive org.codehaus.stax2;
                                    ^
1 error
1 warning
 * ERROR: dev-java/woodstox-core-6.2.8-r1::gentoo failed (compile phase):
 *   ejavac failed
 *
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2347:  Called java-pkg-simple_src_compile
 *   environment, line  857:  Called ejavac '-d' 'target/classes' '-encoding' 'UTF-8' '--module-path' '/usr/share/osgi-core-api/lib/osgi-core-api.jar:/usr/share/msv/lib/msv.jar:/usr/share/relaxng-datatype/lib/relaxng-datatype.jar:/usr/share/stax2-api/lib/stax2-api.jar:/usr/share/xsdlib/lib/xsdlib.jar:/usr/share/xerces-2/lib/xerces.jar:/usr/share/xml-commons-external-1.4/lib/xml-commons-external.jar:/usr/share/xml-commons-resolver/lib/xml-commons-resolver.jar:/usr/share/iso-relax/lib/iso-relax.jar:/usr/share/ant-core/lib/ant.jar:/usr/share/ant-core/lib/ant-bootstrap.jar:/usr/share/ant-core/lib/ant-launcher.jar' '--module-version' '6.2.8' 'src/moditect/module-info.java'
 *   environment, line  610:  Called die
 * The specific snippet of code:
 *       "${args[@]}" || die "ejavac failed"
 *
 * If you need support, post the output of `emerge --info '=dev-java/woodstox-core-6.2.8-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/woodstox-core-6.2.8-r1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-bin-11  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-11.0.14_p9"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =woodstox-core-6.2.8
 * The complete build log is located at '/var/tmp/portage/dev-java/woodstox-core-6.2.8-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/woodstox-core-6.2.8-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/woodstox-core-6.2.8-r1/work/woodstox-woodstox-core-6.2.8'
 * S: '/var/tmp/portage/dev-java/woodstox-core-6.2.8-r1/work/woodstox-woodstox-core-6.2.8'
Comment 6 Volkmar W. Pogatzki 2022-05-10 20:26:10 UTC
(In reply to Petr Pisar from comment #5)
> This still does not build because of missing org.codehaus.stax2:
> [...]

With dev-java/stax2-api-4.2.1-r1 it should work.
Comment 7 Ferdinand Kuhl 2022-05-11 09:25:55 UTC
(In reply to Volkmar W. Pogatzki from comment #6)
> (In reply to Petr Pisar from comment #5)
> > This still does not build because of missing org.codehaus.stax2:
> > [...]
> 
> With dev-java/stax2-api-4.2.1-r1 it should work.

It does for me
Comment 8 Petr Pisar 2022-05-13 18:02:13 UTC
I confirm that today when dev-java/stax2-api-4.2.1-r1 was stabilized and after updating to it, dev-java/woodstox-core-6.2.8-r1 builds fine.
Comment 9 Larry the Git Cow gentoo-dev 2022-11-03 18:10:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c05dd858693ef933ffddd905daf103629d005b71

commit c05dd858693ef933ffddd905daf103629d005b71
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2022-11-03 08:55:16 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2022-11-03 18:10:41 +0000

    dev-java/woodstox-core: drop 6.2.8-r1
    
    Closes: https://bugs.gentoo.org/843185
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/28120
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 dev-java/woodstox-core/Manifest                    |   1 -
 .../woodstox-core/woodstox-core-6.2.8-r1.ebuild    | 102 ---------------------
 2 files changed, 103 deletions(-)