United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4975867 : 1.4.2_03 (SUNWj3rt) incorrect becomes default java on S10 with 1.5.0 present.

Details
Type:
Bug
Submit Date:
2004-01-09
Status:
Closed
Updated Date:
2004-02-18
Project Name:
JDK
Resolved Date:
2004-01-15
Component:
install
OS:
solaris_10
Sub-Component:
install
CPU:
generic
Priority:
P1
Resolution:
Fixed
Affected Versions:
1.4.2_04
Fixed Versions:
1.4.2_04 (04)

Related Reports

Sub Tasks

Description
1.4.2_03 (SUNWj3rt) incorrect becomes default java on S10 with 1.5.0 present.

The /usr/java symlink should point to 1.5.x on a S10 system.  The
current postinstall script for 1.4.2_03 (SUNWj3rt) grabs control
of the /usr/java symlink even if 1.5.0 is present and already controls
the symlink.

This bug is actually present in all 1.3.x and 1.4.x releases, meaning
they will all disrupt S10 if installed there.  So while the first packages
to be fixed should be 1.4.2_04, any future releases of 1.3.1 and 1.4.1 should
also have this fix.


###@###.### 2004-01-08

                                    

Comments
SUGGESTED FIX

The current case statement in the SUNWj3rt postinstall script is
woefully out of date, and needs a specific case for both
9 and 10


I've modified a copy of 1.4.2_03, adding the following
to the first case statement, and confirmed that this
correctly installs 1.4.2 on S10, leaving 1.5.0 as the default.

                      8 )
                        if [ "$PKG_VERSION" = "1.2" ]; then
                          DEFAULT=TRUE;
                        else
                          CheckIfDefault
                          if [ $? -ne 0   ]; then
                            DEFAULT=FALSE
                          else
                            DEFAULT=TRUE
                          fi
                        fi
                        ;;

                      9 )
                        if [ "$PKG_VERSION" = "1.3" -o "$PKG_VERSION" = "1.4" ];
 then
                          DEFAULT=TRUE;
                        else
                          CheckIfDefault
                          if [ $? -ne 0   ]; then
                            DEFAULT=FALSE
                          else
                            DEFAULT=TRUE
                          fi
                        fi
                        ;;

                      10 )
                          CheckIfDefault
                          if [ $? -ne 0   ]; then
                            DEFAULT=FALSE
                          else
                            DEFAULT=TRUE
                          fi
                        ;;

    
                      * )
                          CheckIfDefault
                          if [ $? -ne 0   ]; then
                            DEFAULT=FALSE
                          else
                            DEFAULT=TRUE
                          fi
                        ;;
                                     
2004-06-11
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
1.4.2_04
generic

FIXED IN:
1.4.2_04

INTEGRATED IN:
1.4.2_04

VERIFIED IN:
1.4.2_04


                                     
2004-06-14
EVALUATION


###@###.### 2004-01-09

This bug encountered because postinstall script does the adjustment
to use the system default /usr/java symlink to point to latest java
on the system. Postinstall script has not been modified for some time
and is out of date.

Checks suggested will ensure that 1.4.2_X allows higher versions to
be system default.

###@###.### 2004-01-09

Fix applied only 1.4.2_X. Tiger does not require the fix as install
scripts are rewritten..
                                     
2004-01-09



Hardware and Software, Engineered to Work Together