VirtualBox

Changeset 64788 in vbox


Ignore:
Timestamp:
Dec 6, 2016 11:39:49 AM (8 years ago)
Author:
vboxsync
Message:

bugref:8679: Additions/x11/graphics: ldconfig on Debian 7.11 guest not picking up VBoxOGL.so: old versions of Mesa contain a GNU ABI notes section which makes ldconfig always prefer them to available alternatives, regardless of the specified order of precedence. This was fixed for most current distributions in freedesktop.org bug 26663. Handle this un-invasively by detecting the problem and telling the user how to fix it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/install.sh.in

    r63889 r64788  
    528528test -n "$REMOVE_INSTALLATION_DIR" &&
    529529  echo "$INSTALLATION_DIR/" >> "$CONFIG_DIR/$CONFIG_FILES"
     530
     531# Test for a problem with old Mesa versions which stopped our 3D libraries
     532# from working.  Known to affect Debian 7.11, probably OL/RHEL 5.
     533# The problem was that the system Mesa library had an ABI note, which caused
     534# ldconfig to always prefer it to ours.
     535if ldconfig -p | grep -q "libGL.so.1.*Linux 2.4"; then
     536    gl_with_abi=`ldconfig -p | grep "libGL.so.1.*Linux 2.4" | sed 's/.*=> //'`
     537    cat >&2 << EOF
     538This system appears to be running a version of Mesa with a known problem
     539which will prevent VirtualBox 3D pass-through from working.  See
     540  https://bugs.freedesktop.org/show_bug.cgi?id=26663
     541The following, run as root should fix this, though you will have to run it
     542again if the system version of Mesa is updated:
     543EOF
     544    for i in ${gl_with_abi}; do
     545        echo >&2 "  strip -R .note.ABI-tag ${i}"
     546    done
     547    echo >&2 "  ldconfig"
     548fi
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