Bug 1212963

Summary: java version string breaks jpackage-utils
Product: Red Hat Enterprise Linux 6 Reporter: Eric Helms <ehelms>
Component: java-1.8.0-openjdkAssignee: Omair Majid <omajid>
Status: CLOSED WONTFIX QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.6CC: ahughes, cwelton, dgoodwin, mizdebsk, omajid, sbaiduzh
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-20 14:48:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.