JDK-6196130 : Java default selection not robust on Micro release
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: solaris_10,5.0u1
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris,solaris_10,solaris_11
  • CPU: generic,sparc
  • Submitted: 2004-11-16
  • Updated: 2013-06-04
  • Resolved: 2004-12-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u1 b07Fixed 6Fixed
Related Reports
Duplicate :  
Description
The code present in the postinstall and preremove scripts to determine the underlying Solaris release isn't robust in all cases.  In particular, it gets
confused by Micro release nomenclature (since we haven't done a Micro release
in 8 years).  We still probably won't be releasing a Micro release of Solaris,
but the development environment for the next Solaris release currently
identifies itself as VERSION=10.1 (uname -r = 5.10.1).
###@###.### 2004-11-16 20:00:28 GMT

Comments
WORK AROUND Execute the following command after installation: # rm /usr/java; ln -s jdk/jdk1.5.0_01 /usr/java All will be well. ###@###.### 2004-12-07 18:14:00 GMT
07-12-2004

EVALUATION As per description. Improve the parsing code in SUNWj[56]rt/postcommon. ###@###.### 2004-11-16 20:00:28 GMT
16-11-2004

SUGGESTED FIX Change: GetHostRelease() { if [ -f $PKG_INSTALL_ROOT/var/sadm/system/admin/INST_RELEASE ]; then ver=`grep '^VERSION=' \ $PKG_INSTALL_ROOT/var/sadm/system/admin/INST_RELEASE` else ver=`uname -r` fi ver=`echo $ver | sed -e "s/[^0-9]*//" -e "s/[^0-9\.].*//"` echo $ver | grep -s "[0-9]*\.[0-9]*" > /dev/null if [ $? = 0 ]; then ver=`echo $ver | sed -e "s/[0-9]*\.//"` fi echo $ver } To: # # GetHostRelease () # # The use of /var/sadm/system/admin/INST_RELEASE is allowed by PSARC/2001/472. # We fallback to the use of uname should this file not exist, but that may # give the wrong answer for diskless server installations. Fortunately, the # absence of the INST_RELEASE file is a "should never happen" situation, # except for internal development where it happens all the time, but then # uname does yield the right answer. # # Unfortunately, the format of the VERSION identifier has changed over time # as "Solaris 2.X" became marketed as simply "Solaris X". Hence we need # to allow for both the "2.X" and simply "X" forms. uname is consistant in # providing a "Major.Minor[.Micro]" format. # # This returns the simple "X" that is the Minor release by the taxonomy. # GetHostRelease() { if [ -f $PKG_INSTALL_ROOT/var/sadm/system/admin/INST_RELEASE ]; then ver=`grep '^VERSION=' \ $PKG_INSTALL_ROOT/var/sadm/system/admin/INST_RELEASE` ver=`echo $ver | sed -e "s/[^0-9]*//" -e "s/^2\.//" -e "s/\..*//"` else ver=`uname -r | sed -e "s/[0-9]*\.//" -e "s/\..*//"` fi echo $ver } ###@###.### 2004-11-16 20:00:28 GMT
16-11-2004