Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847592 - dev-java/bcprov-1.71 - Need at least JDK 9 to compile module-info.java in src_compile.
Summary: dev-java/bcprov-1.71 - Need at least JDK 9 to compile module-info.java in src...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 796875 847454 849299
  Show dependency tree
 
Reported: 2022-05-26 14:10 UTC by Toralf Förster
Modified: 2022-06-06 08:08 UTC (History)
3 users (show)

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


Attachments
dev-java:bcprov-1.71:20220526-134815.log (dev-java:bcprov-1.71:20220526-134815.log,5.93 KB, text/plain)
2022-05-26 14:10 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,100.40 KB, text/plain)
2022-05-26 14:10 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,11.40 KB, application/x-bzip)
2022-05-26 14:10 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-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(+)