Summary: | dev-java/bcutil fails with src/main/jdk1.9/module-info.java:3: error: module not found: org.bouncycastle.provider | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Attila Tóth <atoth> |
Component: | Current packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PullRequest |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/25766 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 847592 | ||
Bug Blocks: |
Description
Attila Tóth
2022-05-25 15:37:04 UTC
This happens when dev-java/bcprov was compiled with system-vm 1.8. To avoid this, set system-vm to 11 or 17. ("eselect java-vm set system openjdk-11") (In reply to Volkmar W. Pogatzki from comment #1) > This happens when dev-java/bcprov was compiled with system-vm 1.8. > To avoid this, set system-vm to 11 or 17. > ("eselect java-vm set system openjdk-11") If I set system-vm to either 11 or 17, I get this while trying to merge bcprov-1.71: >>> Emerging (1 of 5) dev-java/bcprov-1.71::gentoo * bc-java-r1rv71.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking bc-java-r1rv71.tar.gz to /var/tmp/portage/dev-java/bcprov-1.71/work >>> Source unpacked in /var/tmp/portage/dev-java/bcprov-1.71/work >>> Preparing source in /var/tmp/portage/dev-java/bcprov-1.71/work/bc-java-r1rv71/prov ... ../test/libs/jna-platform-4.3.0.jar ../test/libs/jna-4.3.0.jar ../libs/mail.jar ../libs/junit.jar ../libs/jakarta.activation-api-2.0.0.jar ../libs/activation.jar ../libs/jakarta.mail-2.0.1.jar ../config/checkstyle/lib/methodchecker.jar >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-java/bcprov-1.71/work/bc-java-r1rv71/prov ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-java/bcprov-1.71/work/bc-java-r1rv71/prov ... javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 @sources.lst Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. javac -source 9 -target 9 -d target/classes -encoding UTF-8 --module-version 1.71 src/main/jdk1.9/module-info.java javac: invalid source release: 9 Usage: javac <options> <source files> Despite the system-vm is set to 11 or 17, it starts compiling with 1.8. And than bails out with invalid source release: 9. I may have to temporary unmerge icedtea, to make it work? What do you think? (In reply to Attila Tóth from comment #2) > [...] > If I set system-vm to either 11 or 17, I get this while trying to merge > bcprov-1.71: > [...] For bcprov see https://bugs.gentoo.org/847592#c5 (Set JAVA_PKG_DEBUG=true in /etc/portage/make.conf) (In reply to Volkmar W. Pogatzki from comment #3) > (In reply to Attila Tóth from comment #2) > > [...] > > If I set system-vm to either 11 or 17, I get this while trying to merge > > bcprov-1.71: > > [...] > > For bcprov see https://bugs.gentoo.org/847592#c5 > (Set JAVA_PKG_DEBUG=true in /etc/portage/make.conf) Thank you for pointing this out! Temporary unmerging icedtea let the ebuild and its dependecies compile. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75c1d546674404faca44134967e34837ce2b40d1 commit 75c1d546674404faca44134967e34837ce2b40d1 Author: Volkmar W. Pogatzki <gentoo@pogatzki.net> AuthorDate: 2022-06-05 11:46:52 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2022-06-06 07:42:23 +0000 dev-java/bcprov: add java-pkg-2_pkg_setup Bug: https://bugs.gentoo.org/847592 Closes: https://bugs.gentoo.org/849299 Closes: https://bugs.gentoo.org/847454 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Florian Schmaus <flow@gentoo.org> dev-java/bcprov/bcprov-1.71-r1.ebuild | 111 ++++++++++++++++++++++++++++++++++ 1 file changed, 111 insertions(+) |