Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Prior to this update, the java-1.8.0-openjdk packages incorrectly provided "java-devel", which could lead to their inclusion in inappropriate builds. As a consequence, the "yum install java-devel" command in some cases installed java-1.8.0-openjdk-devel instead of the intended Java package. This update removes the providing configuration, and java-1.8.0-openjdk-devel can now be installed only by using the "yum install java-1.8.0-openjdk-devel" command.
The current OpenJDK8 RPMs in RHEL provide java* instead of java8*. This is causing them to get pulled into brew builds when they shouldn't be.
We should fix the packages asap to make them provide java8* much like OpenJDK7 RPMs provide java7*.
On second thought, rather than replacing with java8*, we should just remove them altogether to prevent customers from depending on the provides that may end up getting removed in the future. Thanks to Omair for pointing this out.
Hi!
The packages are not providing java8 but have epoch set to 0. Actually the change from provides javaX to whatever was requested, so we (me, Omair and Lukas) have come out with epoch 0. This change was heavily tested and behaved correctly.
The brew-root is *not* (as far as I'm aware, and I tried a lot) pulling jdk8 unless java-1.8.0-openjdk* or java >= 1.8.0 is explicitly requested.
If you have found some case when openjdk8 was pulled instead of 6 or 7, then it would really mean devel x qa failure and I'm terribly sorry for that and will fix immediately. Otherwise this should be closed->not a bug
>
> We should fix the packages asap to make them provide java8* much like
> OpenJDK7 RPMs provide java7*.
This java7* was causing a lot of problems, and once we swithced to java = 1.7.0... there was couple of bugs requesting it back. At the end we ended up with dual provides java7* and java* = 1.7.0...
For 8 better solution was about to be found. And this was an epoch.
Changing bug description as bug 1189853 requested to have "java" provides in java-1.8.0-openjdk.
Only java-devel is excluded intentionally, so it does not pollute mock build root.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2015-1427.html