VirtualBox

Changeset 43427 in vbox


Ignore:
Timestamp:
Sep 25, 2012 11:56:06 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80926
Message:

Solaris/installer: Try handle the proposed PSARC versioning scheme for Solaris 12 kernel packages. This is not yet being used in the transitional period.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/vboxconfig.sh

    r43420 r43427  
    239239            #            or "pkg://solaris/system/[email protected],5.11-5.12.0.0.0.4.1:20120908T030246Z"
    240240            #            or "pkg://solaris/system/[email protected],5.11-0.175.0.0.0.1.0:20111012T032837Z"
     241            #            or "pkg://solaris/system/[email protected]:20121012T032837Z"
    241242            STR_KERN_MAJOR=`echo "$PKGFMRI" | sed 's/^.*\@//;s/\,.*//'`
    242243            if test ! -z "$STR_KERN_MAJOR"; then
     
    250251                    HOST_OS_MAJORVERSION="11"
    251252                else
    252                     errorprint "Failed to parse the Solaris kernel major version."
    253                     exit 1
     253                    # This could be the PSARC/2012/240 naming scheme for S12.
     254                    # The format is "pkg://solaris/system/[email protected]:20121012T032837Z"
     255                    # The "5.12" following the "@" is the nominal version which we ignore for now as it is
     256                    # not set by most pkg(5) tools...
     257                    # STR_KERN_MAJOR is now of the format "5.12-5.12.0.0.0.9.1.3.0:20121012T032837Z" with '9' representing
     258                    # the build number.
     259                    BRANCH_VERSION=STR_KERN_MAJOR
     260                    HOST_OS_MAJORVERSION=`echo "$BRANCH_VERSION" | cut -f2 -d'-' | cut -f1,2 -d'.'`
     261                    if test "HOST_OS_MAJORVERSION" = "5.12"; then
     262                        HOST_OS_MINORVERSION=`echo "$BRANCH_VERSION" | cut -f2 -d'-' | cut -f6 -d'.'`
     263                        return 0
     264                    else
     265                        errorprint "Failed to parse the Solaris kernel major version."
     266                        exit 1
     267                    fi
    254268                fi
    255269
     270                # This applies only to S11 and S12 where the transitional "@5.12," component version is
     271                # still part of the pkg(5) package FMRI. The regular S12 will follow the PSARC/2012/240 naming scheme above.
    256272                STR_KERN_MINOR=`echo "$PKGFMRI" | sed 's/^.*\@//;s/\:.*//;s/.*,//'`
    257273                if test ! -z "$STR_KERN_MINOR"; then
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette