VirtualBox

Changeset 61918 in vbox for trunk/src/VBox/Installer/solaris


Ignore:
Timestamp:
Jun 28, 2016 3:12:23 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108356
Message:

Installer: Solaris: Install legacy libraries links only for solaris10. Also install the links early so that when vbox services are invoked dependencies are already resolved.

File:
1 edited

Legend:

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

    r61880 r61918  
    11821182        fi
    11831183    fi
    1184 
    1185     # remove the S10 legacy library links
    1186     for l in `find /opt/VirtualBox -name "lib*" -type l`; do rm $l; done
    11871184}
    11881185
     
    11931190{
    11941191    infoprint "Detected Solaris $HOST_OS_MAJORVERSION Version $HOST_OS_MINORVERSION"
     1192
     1193    # Install the S10 legacy library links.
     1194    # We do this early so that when we invoke services or other VirtualBox processes, the dependent libraries are resolved.
     1195    if test -d "/opt/VirtualBox/legacy/"; then
     1196        if test "$HOST_OS_MAJORVERSION" -eq 10; then
     1197            for lib in `ls -1 /opt/VirtualBox/legacy/`; do
     1198               /usr/sbin/installf -c none $PKGINST /opt/VirtualBox/$lib=legacy/$lib s
     1199            done       
     1200            for lib in `ls -1 /opt/VirtualBox/amd64/legacy/`; do
     1201                /usr/sbin/installf -c none $PKGINST /opt/VirtualBox/amd64/$lib=legacy/$lib s
     1202            done
     1203        fi
     1204    fi
     1205
    11951206    infoprint "Loading VirtualBox kernel modules..."
    11961207    install_drivers
     
    12501261            else
    12511262                subprint "Skipped for targetted installs."
    1252             fi
    1253         fi
    1254 
    1255         # Install the S10 legacy library links if necessary
    1256         if test -d /opt/VirtualBox/legacy/; then
    1257             if ldd /opt/VirtualBox/amd64/VBoxRT-x86.so | grep "not found" > /dev/null; then
    1258                 for lib in `ls -1 /opt/VirtualBox/legacy/`; do
    1259                     ln -sf legacy/$lib /opt/VirtualBox/$lib
    1260                 done
    1261             fi
    1262             if ldd /opt/VirtualBox/amd64/VBoxRT.so | grep "not found" > /dev/null; then
    1263                 for lib in `ls -1 /opt/VirtualBox/amd64/legacy/`; do
    1264                     ln -sf legacy/$lib /opt/VirtualBox/amd64/$lib
    1265                 done
    12661263            fi
    12671264        fi
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