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.
Bug 1212963 - java version string breaks jpackage-utils
Summary: java version string breaks jpackage-utils
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: java-1.8.0-openjdk
Version: 6.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Omair Majid
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-17 19:28 UTC by Eric Helms
Modified: 2015-05-25 18:10 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-20 14:48:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Eric Helms 2015-04-17 19:28:50 UTC
With the recent update of java-1.8.0-openjdk, the expectations of the jpackage-utils tool are broken.

1) /usr/share/java-1.8.0 does not exist
2) /var/lib/java-1.8.0 does not exist
3) version string from 'java -v' has changed from 'java' to 'openjdk' in first line of output (and jpackage-utils parses expecting java):

$ java -version
openjdk version "1.8.0_45"
OpenJDK Runtime Environment (build 1.8.0_45-b13)
OpenJDK 64-Bit Server VM (build 25.45-b02, mixed mode)



RPMS:

java-1.5.0-gcj.x86_64                 1.5.0.0-29.1.el6       
java-1.8.0-openjdk.x86_64             1:1.8.0.45-28.b13.el6_6           
java-1.8.0-openjdk-headless.x86_64    1:1.8.0.45-28.b13.el6_6

Comment 1 Omair Majid 2015-04-17 19:40:11 UTC
CC'ing Mikolaj who maintains the Fedora counterpart of jpackage-utils (javapackages-tools).

Mikolaj, do you know which patches added support for OpenJDK 8 to jpackages-tools? Are those safe to port to RHEL 6's jpackage-utils?

Comment 3 Andrew John Hughes 2015-04-17 19:48:30 UTC
#3 isn't going to change; we discussed this upstream and they mentioned legal issues with using 'java' there. If anything, there's a stronger case for changing 1.6 & 1.7.

Comment 4 Omair Majid 2015-04-17 19:53:28 UTC
Looks like the fix is documented completely in bug 982683.

Comment 5 Omair Majid 2015-04-17 20:13:49 UTC
(In reply to Eric Helms from comment #0)
> With the recent update of java-1.8.0-openjdk, the expectations of the
> jpackage-utils tool are broken.

Any suggestions on how to confirm if a fix is working?

Comment 6 Omair Majid 2015-04-17 22:06:10 UTC
This was already fixed for RHEL 6.7: bug 1149605.

Comment 7 Andrew John Hughes 2015-04-18 00:10:48 UTC
IN that case, this should be closed as a duplicate. If the fix is needed sooner, a z-stream bug needs to be cloned from bug 1149605.

Comment 9 Omair Majid 2015-04-20 14:48:36 UTC
As a feature, this is not eligible for a fix in RHEL 6.6. Please use 6.7 instead.


Note You need to log in before you can comment on or make changes to this bug.