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.
Description of problem:
There is a packaging regression in java-1.7.0-openjdk-devel.
It does not provide the capability "java-devel = 1.7.0".
The "java-devel = 1.7.0" capability is provided by both
java-1.7.0-oracle-devel and java-1.7.0-ibm-devel. It should be
provided by java-1.7.0-openjdk-devel also.
The analogous "java-devel = 1.6.0" capability was provided by
java-1.6.0-openjdk-devel.
The absence of the "java-devel" capability in java-1.7.0-openjdk-devel
prevents yum from using an already-installed OpenJDK to satisfy a
capability-based BuildRequires statement like, "BuildRequires:
java-devel >= 1.7.0" when constructing RPM packages of Java programs.
Instead, yum will need to go get IBM Java or Oracle Java.
The "java-devel" capability is preferred over a specific package name,
e.g., java-1.7.0-openjdk-devel, in cases where all three devel
providers are equally suitable. Someone who already has an Oracle or IBM
JDK installed should not need to install yet another very large
java-devel package in order to compile a Java program.
Note: The java-1.7.0-openjdk-devel package provides another
capability, java7-devel. It is not a good substitute. First and most
importantly, it will not match "BuildRequires: java-devel >= 1.6.0".
Second, and less importantly, the IBM and Oracle packages do not
provide it, so it is no better than a specific package name.
Exhibits:
OpenJDK 1.6.0:
$ rpm -q --provides -p java-1.6.0-openjdk-devel-1.6.0.0-1.48.1.11.3.el6_2.x86_64.rpm | grep -wE 'java.?-devel '
java-devel = 1:1.6.0
Oracle JDK 1.7.0:
$ rpm -q --provides -p java-1.7.0-oracle-devel-1.7.0.5-1jpp.1.el6.x86_64.rpm | grep -wE 'java.?-devel '
java-devel = 1:1.7.0
IBM JDK 1.7.0:
$ rpm -q --provides -p java-1.7.0-ibm-devel-1.7.0.1.0-1jpp.2.el6.x86_64.rpm | grep -wE 'java.?-devel '
java-devel = 1:1.7.0
OpenJDK 1.7.0 (bad):
$ rpm -q --provides -p java-1.7.0-openjdk-devel-1.7.0.5-2.2.1.el6_3.x86_64.rpm | grep -wE 'java.?-devel '
java7-devel = 1:1.7.0
Expected results:
$ rpm -q --provides -p java-1.7.0-openjdk-devel-1.7.0.5-2.2.1.el6_3.x86_64.rpm | grep -wE 'java.?-devel '
java-devel = 1:1.7.0
This was done intentionally (as was done in Fedora 16) to prevent Java 7 from accidentally being pulled in by yum during build/install (Oracle/IBM JDK are different because they are not in Base channel).
We should be able to do proper provider for 6.4 however. Acking for 6.4.
Comment 3RHEL Program Management
2012-09-07 05:34:32 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.
Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.