JDK-6979721 : Solaris: JDK7 b106 can't be uninstalled completely if JDK7 b105 is installed first on Solaris 10 x64
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2010-08-25
  • Updated: 2016-09-13
  • Resolved: 2011-03-15
Related Reports
Relates :  
Description
Config: Solaris 10 x64 64 bit
Spec: http://j2se.sfbay.sun.com/web/bin/view/JCG/UnixTestSpec   UNIX004-005

Steps to reproduce:

   1. Check preconditions
          * VERIFY No JRE or JDK is installed on the system 
   2. Install JDK7 b105 (the pkg version of JDK of the previous update of tested JDK) to default location
   3. Install JDK7 b106 (the pkg version of JDK) to default location
   4. Uninstall just installed JDK with 'pkgrm' command
   5. Accept the default prompts
          * VERIFY JDK is correctly and completely removed from the system 

Actual result:

   1. JDK  is not uninstalled completely, /usr/jdk/instances/jdk1.7.0 folder remains.

Expected result:

   1. JDK is correctly and completely removed from the system.

Note:
When they are installed to non-default location, /usr/local/jdk folder remains.

Comments
WORK AROUND This request can be solved with a work around and release notes. If a user wants to hae multiple versions of Java installed within a release say n versions in the 1.7.0 release, where each of the new releases is a nw build within the release. One can achive this by using the following command. Documentation in the Release Notes should cover this. This is a not a frequent use case for production users, developers should be able to handle the additional scripting. pkgadd -G -d . SUNWj7dev pkgadd -R /usr/jdk/instances/106 -G -d . SUNWj7dev pigiron # ls /usr/jdk/instances/ 106 jdk1.5.0 jdk1.6.0 jdk1.7.0 pigiron # 105 and 106 are both available
15-03-2011

EVALUATION The SVR4 Package Solution does not support multiple installs of the same release with different build numbers. The directory that is created in /usr/jdk/instances uses the main release as a base so b105 and b016 share the same release if the default location is not changed. Multiple releases are support 1.7.0, 1.7.1 .... The SVR4 packaging scheme was not desinged to support multiple installs of builds within a release. We could modify the SVR4 packaging system to support this have we had many complaints anbout this issue? SVR4 is not the primary pacakging system going forward. I do not recommend support for this ability.
15-03-2011