VirtualBox

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


Ignore:
Timestamp:
Jun 19, 2015 3:17:45 PM (10 years ago)
Author:
vboxsync
Message:

Solaris/Installer: Fix for Solaris 12 renaming iconv/utf-8 package.

File:
1 edited

Legend:

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

    r56314 r56564  
    5151{
    5252    if test -z "$1"; then
    53         errorprint "Missing argument to checkdep_svr4"
     53        errorprint "Missing argument to checkdep_ips"
    5454        return 1
    5555    fi
     
    6161    PKG_MISSING_IPS="$PKG_MISSING_IPS $1"
    6262    return 1
    63 
     63}
     64
     65checkdep_ips_either()
     66{
     67    if test -z "$1" || test -z "$2"; then
     68        errorprint "Missing argument to checkdep_ips_either"
     69        return 1
     70    fi
     71    # using "list" without "-a" only lists installed pkgs which is what we need
     72    $BIN_PKG $BASEDIR_OPT list "$1" >/dev/null 2>&1
     73    if test $? -eq 0; then
     74        return 0
     75    fi
     76    $BIN_PKG $BASEDIR_OPT list "$2" >/dev/null 2>&1
     77    if test $? -eq 0; then
     78        return 0
     79    fi
     80    PKG_MISSING_IPS="$PKG_MISSING_IPS $1 or $2"
     81    return 1
    6482}
    6583
     
    117135if test -x "$BIN_PKG"; then
    118136    checkdep_ips "runtime/python-26"
    119     checkdep_ips "system/library/iconv/utf-8"
     137    checkdep_ips_either "system/library/iconv/utf-8" "system/library/iconv/iconv-core"
    120138else
    121139    PKG_MISSING_IPS="runtime/python-26 system/library/iconv/utf-8"
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