VirtualBox

Changeset 43938 in vbox


Ignore:
Timestamp:
Nov 22, 2012 1:50:07 PM (12 years ago)
Author:
vboxsync
Message:

Installer/Solaris: check if a particular python install is usable, otherwise skip over it and hope that the user won't use exactly this one

File:
1 edited

Legend:

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

    r43800 r43938  
    55# VirtualBox Configuration Script, Solaris host.
    66#
    7 # Copyright (C) 2009-2010 Oracle Corporation
     7# Copyright (C) 2009-2012 Oracle Corporation
    88#
    99# This file is part of VirtualBox Open Source Edition (OSE), as
     
    4141BIN_SVCADM=/usr/sbin/svcadm
    4242BIN_SVCCFG=/usr/sbin/svccfg
    43 BIN_SVCS=/usr/bin/svcs 
     43BIN_SVCS=/usr/bin/svcs
    4444BIN_IFCONFIG=/sbin/ifconfig
    4545BIN_SVCS=/usr/bin/svcs
     
    775775    pythondesc=$2
    776776    if test -x "$pythonbin"; then
     777        # check if python has working distutils
     778        $pythonbin -c "from distutils.core import setup" > /dev/null 2>&1
     779        if test "$?" -ne 0; then
     780            subprint "Skipped: $pythondesc install is unusable"
     781            return 0
     782        fi
     783
    777784        VBOX_INSTALL_PATH="$DIR_VBOXBASE"
    778785        export VBOX_INSTALL_PATH
     
    10421049
    10431050                        if test $recreatelink -eq 1; then
    1044                             # Check after removing our settings if /etc/netmasks is identifcal to /etc/inet/netmasks 
     1051                            # Check after removing our settings if /etc/netmasks is identifcal to /etc/inet/netmasks
    10451052                            anydiff=`diff $nmaskbackupfile "$PKG_INSTALL_ROOT/etc/inet/netmasks"`
    10461053                            if test ! -z "$anydiff"; then
     
    10481055                                recreatelink=2
    10491056                            fi
    1050                         fi                       
     1057                        fi
    10511058
    10521059                        echo "#VirtualBox_SectionStart" >> $nmaskbackupfile
     
    11241131                    fi
    11251132                    PYTHONBIN=`which python2.5 2>/dev/null`
    1126                     install_python_bindings "$PYTHONBIN"  "Python 2.5"
     1133                    install_python_bindings "$PYTHONBIN" "Python 2.5"
    11271134                    if test "$?" -eq 0; then
    11281135                        INSTALLEDIT=0
     
    11501157
    11511158        update_boot_archive
    1152    
     1159
    11531160        return 0
    11541161    else
     
    11641171{
    11651172    fatal=$1
    1166    
     1173
    11671174    cleanup_install "$fatal"
    11681175
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