Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 847592

Summary: dev-java/bcprov-1.71 - Need at least JDK 9 to compile module-info.java in src_compile.
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: atoth, flow, fordfrog
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/25766
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 796875, 847454, 849299    
Attachments: dev-java:bcprov-1.71:20220526-134815.log
emerge-history.txt
etc.portage.tar.bz2

Description Toralf Förster gentoo-dev 2022-05-26 14:10:25 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_no_multilib_hardened-j4-20220525-190012

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

  The log matches a QA pattern or a pattern requested by a Gentoo developer.
Comment 1 Toralf Förster gentoo-dev 2022-05-26 14:10:26 UTC
Created attachment 780917 [details]
dev-java:bcprov-1.71:20220526-134815.log
Comment 2 Toralf Förster gentoo-dev 2022-05-26 14:10:27 UTC
Created attachment 780920 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-05-26 14:10:28 UTC
Created attachment 780923 [details]
etc.portage.tar.bz2
Comment 4 Volkmar W. Pogatzki 2022-06-02 20:36:40 UTC
Obviously having DEPEND=">=virtual/jdk-11:*" in the ebuild is not sufficient in this case.
Comment 5 Volkmar W. Pogatzki 2022-06-03 09:17:59 UTC
Here something seems really weird.  With system-vm set to openjdk-8 packages are detecting different jdk versions.

$ ebuild bcprov/bcprov-1.71.ebuild clean compile | grep -A1 -B1 java-pkg_get-vm-version
debug: java-pkg_is-vm-version-ge: entering function, parameters: 9
debug: java-pkg_get-vm-version: entering function, parameters: 
debug: Detected a JDK(1.8) < 9

For comparison:

$ ebuild jackson-annotations/jackson-annotations-2.13.3.ebuild clean compile | grep -A1 -B1 java-pkg_get-vm-version
debug: java-pkg_is-vm-version-ge: entering function, parameters: 9
debug: java-pkg_get-vm-version: entering function, parameters: 
debug: Detected a JDK(17) >= 9

Both bcprov-1.71 and jackson-annotations-2.13.3 are having DEPEND=">=virtual/jdk-11:*" in the ebuild.
Comment 6 Larry the Git Cow gentoo-dev 2022-06-06 07:42:30 UTC
The bug has been referenced in 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(+)