updatecenter2
  1. updatecenter2
  2. UPDATECENTER2-341

java -jar ucbootstrap.jar does not remove remaining wrappers

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: B41
    • Component/s: bootstrap
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Other

      Description

      running java -jar ucbootstrap.jar" directly to do pkg/updatetool bootstrapping
      does not remove bin/pkg.bat, bin/updatetool.bat wrappers

      see also issue 199.

        Activity

        Hide
        Tom Mueller added a comment -

        As explained in the beginning of issue 199, one possible solution for this issue
        is to put the stub scripts into a version 0 of the pkg and updatetool packages,
        and then have ucbootstrap program just upgrade those packages to more recent
        versions. The newer versions would not have the stub scripts in them, so those
        files would be removed as part of doing the upgrade. The ucbootstrap program
        wouldn't need to know about the stub scripts at all.

        To implement this would require the Java-based pkg(5) client to have full update
        functionality, not just an initial install as it does now.

        The hack of having ucbootstrap know about the stubs is not recommended.

        Show
        Tom Mueller added a comment - As explained in the beginning of issue 199, one possible solution for this issue is to put the stub scripts into a version 0 of the pkg and updatetool packages, and then have ucbootstrap program just upgrade those packages to more recent versions. The newer versions would not have the stub scripts in them, so those files would be removed as part of doing the upgrade. The ucbootstrap program wouldn't need to know about the stub scripts at all. To implement this would require the Java-based pkg(5) client to have full update functionality, not just an initial install as it does now. The hack of having ucbootstrap know about the stubs is not recommended.
        Hide
        Snjezana Sevo-Zenzerovic added a comment -

        Another variant of this issue:

        https://glassfish.dev.java.net/issues/show_bug.cgi?id=7572

        In this case updatetool.bat is left behind if pkg.bat is used for initial
        bootstrap and then updatetool packages installed using 'pkg install' command.
        Proposed packaging solution would cover this scenario, too.

        Show
        Snjezana Sevo-Zenzerovic added a comment - Another variant of this issue: https://glassfish.dev.java.net/issues/show_bug.cgi?id=7572 In this case updatetool.bat is left behind if pkg.bat is used for initial bootstrap and then updatetool packages installed using 'pkg install' command. Proposed packaging solution would cover this scenario, too.
        Hide
        Tom Mueller added a comment -

        Note that the pkg-java API does have the necessary functionality to perform the
        update.

        Show
        Tom Mueller added a comment - Note that the pkg-java API does have the necessary functionality to perform the update.
        Hide
        Tom Mueller added a comment -

        The plan for fixing this will be to move the functionality of removing remaining
        wrappers from the scripts to the Bootstrap.java file.

        Ckamps expressed reluctance to implement the 0 version package "innovation"
        because it would be difficult to explain to users, it is unconventional in that
        it is not used with other packaging systems, it would require maintaining older
        versions of the packages, and the solution would not extend to helping teams
        remove other unwanted wrappers such as asadmin.bat on a Unix target.

        Show
        Tom Mueller added a comment - The plan for fixing this will be to move the functionality of removing remaining wrappers from the scripts to the Bootstrap.java file. Ckamps expressed reluctance to implement the 0 version package "innovation" because it would be difficult to explain to users, it is unconventional in that it is not used with other packaging systems, it would require maintaining older versions of the packages, and the solution would not extend to helping teams remove other unwanted wrappers such as asadmin.bat on a Unix target.
        Hide
        Tom Mueller added a comment -

        Fix integrated in revision 2520.

        Show
        Tom Mueller added a comment - Fix integrated in revision 2520.
        Hide
        lalithasaroja added a comment -

        Verified on Solaris 10FCS + Patches and Windows XP using B41. Running the
        bootstrap removes the remaining pkg wrapper

        On Solaris 10FCS + Patches :

        bash-3.00# cd pkg-toolkit
        bash-3.00# ls
        README.txt bin pkg
        bash-3.00# java -jar pkg/lib/pkg-bootstrap.jar
        Proxy: Using direct connection.
        Install image: /341/pkg-toolkit
        Installing pkg packages.
        Initialization complete.
        bash-3.00# ls
        README.txt bin pkg
        bash-3.00# cd bin/
        bash-3.00# ls
        pkg
        bash-3.00#

        On Windows XP :

        C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bin>dir
        Volume in drive C has no label.
        Volume Serial Number is 909F-24B8

        Directory of C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bi
        n

        11/10/2009 04:08 PM <DIR> .
        11/10/2009 04:08 PM <DIR> ..
        11/10/2009 04:08 PM 7,634 pkg
        11/10/2009 04:08 PM 8,907 pkg.bat
        2 File(s) 16,541 bytes
        2 Dir(s) 22,091,907,072 bytes free

        C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bin>cd ..

        C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit>ls
        README.txt bin pkg

        C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit>java -jar pkg\li
        b\pkg-bootstrap.jar
        Proxy: Using direct connection.
        Install image: C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit
        Installing pkg packages.
        Initialization complete.

        C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit>cd bin

        C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bin>dir
        Volume in drive C has no label.
        Volume Serial Number is 909F-24B8

        Directory of C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bi
        n

        11/19/2009 03:16 PM <DIR> .
        11/19/2009 03:16 PM <DIR> ..
        11/19/2009 03:16 PM 2,359 pkg.bat
        1 File(s) 2,359 bytes
        2 Dir(s) 22,079,320,064 bytes free

        C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bin>

        Show
        lalithasaroja added a comment - Verified on Solaris 10FCS + Patches and Windows XP using B41. Running the bootstrap removes the remaining pkg wrapper On Solaris 10FCS + Patches : bash-3.00# cd pkg-toolkit bash-3.00# ls README.txt bin pkg bash-3.00# java -jar pkg/lib/pkg-bootstrap.jar Proxy: Using direct connection. Install image: /341/pkg-toolkit Installing pkg packages. Initialization complete. bash-3.00# ls README.txt bin pkg bash-3.00# cd bin/ bash-3.00# ls pkg bash-3.00# On Windows XP : C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bin>dir Volume in drive C has no label. Volume Serial Number is 909F-24B8 Directory of C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bi n 11/10/2009 04:08 PM <DIR> . 11/10/2009 04:08 PM <DIR> .. 11/10/2009 04:08 PM 7,634 pkg 11/10/2009 04:08 PM 8,907 pkg.bat 2 File(s) 16,541 bytes 2 Dir(s) 22,091,907,072 bytes free C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bin>cd .. C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit>ls README.txt bin pkg C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit>java -jar pkg\li b\pkg-bootstrap.jar Proxy: Using direct connection. Install image: C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit Installing pkg packages. Initialization complete. C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit>cd bin C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bin>dir Volume in drive C has no label. Volume Serial Number is 909F-24B8 Directory of C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bi n 11/19/2009 03:16 PM <DIR> . 11/19/2009 03:16 PM <DIR> .. 11/19/2009 03:16 PM 2,359 pkg.bat 1 File(s) 2,359 bytes 2 Dir(s) 22,079,320,064 bytes free C:\Documents and Settings\Administrator\Desktop\B41\pkg-toolkit\bin>

          People

          • Assignee:
            Tom Mueller
            Reporter:
            nouar38
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: