Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715366 - virtual/jre: prefer openjdk-jre-bin over virtual/jre
Summary: virtual/jre: prefer openjdk-jre-bin over virtual/jre
Status: RESOLVED WONTFIX
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:
Depends on:
Blocks:
 
Reported: 2020-03-29 22:41 UTC by Alex Xu (Hello71)
Modified: 2020-08-06 06:24 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Xu (Hello71) 2020-03-29 22:41:46 UTC
many packages now require jre but not jdk. notably, chromium requires jre if USE=closure-compile (on by default). if jdk is required in the same emerge command (example: DEPEND=jdk, RDEPEND=jre), it will automatically be pulled in and openjdk-jre-bin will not be installed. moreover, if you install something requiring virtual/jre, and then install virtual/jdk, then openjdk-jre-bin will automatically be removed with depclean. this also does not cause unnecessary flip-flopping: if virtual/jdk is already installed, then portage will not additionally install openjdk-jre-bin.

therefore, I think it is in most users' interest to use openjdk-jre-bin by default.
Comment 1 Georgy Yakovlev archtester gentoo-dev 2020-08-04 21:51:04 UTC
no.

most users prefer non-bin jdk instead of binary jre.
jre does not make a lot of sense honestly.

and if you don't clean bdeps it will not be removed by depclean.
closing.
Comment 2 Alex Xu (Hello71) 2020-08-05 21:09:32 UTC
*your* explanation "does not make a lot of sense". if users prefer non-bin jdk, then why the hell does virtual/jdk (*not jre!*) prefer bin?

and don't be so high and mighty. if you want to talk about "not making sense", then why the hell does openjdk ebuild have this nonsense:

    einfo "Creating the Class Data Sharing archives and disabling usage tracking"
    "${ddest}/bin/java" -server -Xshare:dump -Djdk.disableLastUsageTracking

this jdk.disableLastUsageTracking parameter controls oracle java usage tracker, which is not implemented in openjdk. it also doesn't work, because it would need to be set on every java invocation. furthermore, java usage tracker also needs to be explicitly installed and enabled by the administrator, so even if this worked, it would contradict the administrator's explicit request. *that's* nonsense.
Comment 3 Tomáš Mózes 2020-08-06 06:24:58 UTC
I, as a regular user, prefer binary jre if jdk is not necessary.