VirtualBox

Changeset 38998 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Oct 14, 2011 2:59:01 PM (13 years ago)
Author:
vboxsync
Message:

Solaris/Installer: Manual dependency checking since IPS dropped old SVR4 package names.

Location:
trunk/src/VBox/Installer/solaris
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/Makefile.kmk

    r38831 r38998  
    545545                $(VBOX_PATH_SOL_INST_SRC)/vbox.pkginfo \
    546546                $(VBOX_PATH_SOL_INST_SRC)/vbox.space \
    547                 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend \
    548547                $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse \
    549548                $(PATH_ROOT)/src/VBox/Installer/common/virtualbox.desktop.in \
     
    671670        $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.pkgresponse                                   $(SOLARIS_BASEINST_DIR)/autoresponse
    672671        $(QUIET)$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.space                                         $(SOLARIS_BASEINST_DIR)/vbox.space
    673         @# Warning!! If we add NON-PYTHON dependencies to vbox.depend, remove the VBOX_WITH_PYTHON setting
    674         $(QUIET)$(if $(VBOX_WITH_PYTHON),$(INSTALL) -m 0644 $(VBOX_PATH_SOL_INST_SRC)/vbox.depend               $(SOLARIS_BASEINST_DIR)/vbox.depend,)
    675672        $(QUIET)$(SED) \
    676673                -e "s/@VBOX_PRODUCT@/$(VBOX_PRODUCT)/g" \
  • trunk/src/VBox/Installer/solaris/checkinstall.sh

    r32702 r38998  
    3030{
    3131    errorprint "Please close all VirtualBox processes and re-run this installer."
    32     errorprint "Note: It can take up to 10 seconds for all VirtualBox & related processes to close."
    3332    exit 1
    3433}
    3534
     35checkdep_svr4()
     36{
     37    if test -z "$1"; then
     38        errorprint "Missing argument to checkdep_svr4"
     39        return 1
     40    fi
     41    $BIN_PKGINFO $BASEDIR_OPT "$1" >/dev/null 2>&1
     42    if test $? -eq 0; then
     43        return 0
     44    fi
     45    PKG_MISSING_SVR4="$PKG_MISSING_SVR4 $1"
     46    return 1
     47}
     48
     49checkdep_ips()
     50{
     51    if test -z "$1"; then
     52        errorprint "Missing argument to checkdep_svr4"
     53        return 1
     54    fi
     55    # using "list" without "-a" only lists installed pkgs which is what we need
     56    $BIN_PKG $BASEDIR_OPT list "$1" >/dev/null 2>&1
     57    if test $? -eq 0; then
     58        return 0
     59    fi
     60    PKG_MISSING_IPS="$PKG_MISSING_IPS $1"
     61    return 1
     62
     63}
     64
    3665# nothing to check for remote install
     66REMOTE_INST=0
    3767if test "x${PKG_INSTALL_ROOT:=/}" != "x/"; then
     68    BASEDIR_OPT="-R \"$PKG_INSTALL_ROOT\""
     69    REMOTE_INST=1
     70fi
     71
     72infoprint "Checking package dependencies..."
     73
     74PKG_MISSING_IPS=""
     75PKG_MISSING_SVR4=""
     76BIN_PKGINFO=`which pkginfo 2> /dev/null`
     77BIN_PKG=`which pkg 2> /dev/null`
     78
     79if test -x "$BIN_PKG"; then
     80    checkdep_ips "runtime/python-26"
     81    checkdep_ips "system/library/iconv/utf-8"
     82else
     83    PKG_MISSING_IPS="runtime/python-26 system/library/iconv/utf-8"
     84fi
     85if test -x "$BIN_PKGINFO"; then
     86    checkdep_svr4 "SUNWPython"
     87    checkdep_svr4 "SUNWPython-devel"
     88    checkdep_svr4 "SUNWuiu8"
     89else
     90    PKG_MISSING_SVR4="SUNWPython SUNWPython-devel SUNWuiu8"
     91fi
     92
     93if test "$PKG_MISSING_IPS" != "" && test "$PKG_MISSING_SVR4" != ""; then
     94    if test ! -x "$BIN_PKG" && test ! -x "$BIN_PKGINFO"; then
     95        errorprint "Missing or non-executable binaries: pkg ($BIN_PKG) and pkginfo ($BIN_PKGINFO)."
     96        errorprint "Cannot check for dependencies."
     97        errorprint ""
     98        errorprint "Please install one of the required packaging system."
     99        exit 1
     100    fi
     101    errorprint "Missing packages: "
     102    errorprint "IPS : $PKG_MISSING_IPS"
     103    errorprint "SVr4: $PKG_MISSING_SVR4"
     104    errorprint ""
     105    errorprint "Please install either the IPS or SVr4 packages before installing VirtualBox."
     106    exit 1
     107else
     108    infoprint "Done."
     109fi
     110
     111# nothing more to do for remote installs
     112if test "$REMOTE_INST" -eq 1; then
    38113    exit 0
    39114fi
  • trunk/src/VBox/Installer/solaris/makepackage.sh

    r37328 r38998  
    107107if test -f "./vbox.copyright"; then
    108108    echo 'i copyright=./vbox.copyright' >> prototype
    109 fi
    110 if test -f "./vbox.depend"; then
    111     echo 'i depend=./vbox.depend' >> prototype
    112109fi
    113110
Note: See TracChangeset for help on using the changeset viewer.

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