VirtualBox

Changeset 59018 in vbox for trunk/src/VBox/Additions/solaris


Ignore:
Timestamp:
Dec 7, 2015 12:10:10 PM (9 years ago)
Author:
vboxsync
Message:

bugref:8153: vboxvideo: ABI issues / software rendering on Linux guest: try using the built-in Solaris OpenGL selection mechanism to put our OpenGL pass-through library in place. We rely on Mesa support being installed. At system start time, when asked to identify ourselves, we check whether pass-through is currently enabled, and if so claim support for the console type as reported by the constype command. To install ourselves, we first run Mesa selection then replace the user library component. On Additions removal we simply re-run Solaris OpenGL automatic selection to restore the system state.

Location:
trunk/src/VBox/Additions/solaris
Files:
1 added
3 edited

Legend:

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

    r59017 r59018  
    335335groupadd vboxsf >/dev/null 2>&1
    336336
    337 # install openGL extensions for X.Org
    338 if test ! -z "$xorgbin"; then
    339     # 32-bit crogl opengl library replacement
    340     if test -f "/usr/lib/VBoxOGL.so"; then
    341         cp -f /usr/X11/lib/mesa/libGL.so.1 /usr/X11/lib/mesa/libGL_original_.so.1
    342         ln -sf /usr/lib/VBoxOGL.so /usr/X11/lib/mesa/libGL.so.1
    343     fi
    344 
    345     # 64-bit crogl opengl library replacement
    346     if test -f "/usr/lib/amd64/VBoxOGL.so"; then
    347         cp -f /usr/X11/lib/mesa/amd64/libGL.so.1 /usr/X11/lib/mesa/amd64/libGL_original_.so.1
    348         ln -sf /usr/lib/amd64/VBoxOGL.so /usr/X11/lib/mesa/amd64/libGL.so.1
    349     fi
    350 fi
     337# Set up our OpenGL pass-through library.
     338ln -sf $vboxadditions_path/vbox_vendor_select /lib/opengl/ogl_select
     339/lib/svc/method/ogl-select start
    351340
    352341# Move the pointer integration module to kernel/drv & remove the unused module name from pkg and file from disk
  • trunk/src/VBox/Additions/solaris/Installer/preremove.sh

    r59017 r59018  
    6565/opt/VirtualBoxAdditions/x11restore.pl
    6666
    67 # Restore crogl symlink mess
    68 # 32-bit crogl opengl library replacement
    69 if test -f "/usr/lib/VBoxOGL.so" && test -f "/usr/X11/lib/mesa/libGL_original_.so.1"; then
    70     mv -f /usr/X11/lib/mesa/libGL_original_.so.1 /usr/X11/lib/mesa/libGL.so.1
    71 fi
    72 
    73 # 64-bit crogl opengl library replacement
    74 if test -f "/usr/lib/amd64/VBoxOGL.so" && test -f "/usr/X11/lib/mesa/amd64/libGL_original_.so.1"; then
    75     mv -f /usr/X11/lib/mesa/amd64/libGL_original_.so.1 /usr/X11/lib/mesa/amd64/libGL.so.1
    76 fi
     67# Revert set-up of our OpenGL library.
     68rm -f /lib/opengl/ogl_select/vbox_vendor_select
     69/lib/svc/method/ogl-select start
    7770
    7871
  • trunk/src/VBox/Additions/solaris/Makefile.kmk

    r59017 r59018  
    121121        $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
    122122        $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf \
     123        $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vbox_vendor_select \
    123124        $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/VBox.sh
    124125
     
    208209        VBox.sh \
    209210        1099.vboxclient \
     211        vbox_vendor_select \
    210212        VBoxISAExec
    211213
     
    287289                $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg.conf \
    288290                $(VBOX_PATH_X11_ADDITION_INSTALLER)/solaris_xorg_modeless.conf \
     291                $(VBOX_PATH_SOLARIS_ADDITION_INSTALLER)/vbox_vendor_select \
    289292                $(VBOX_BRAND_LICENSE_TXT) \
    290293                $(PATH_ROOT)/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.conf \
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