VirtualBox

vbox的更動 59199 路徑 trunk/src/VBox/Additions


忽略:
時間撮記:
2015-12-21 下午02:40:35 (9 年 以前)
作者:
vboxsync
訊息:

bugref:8087: Additions/x11: support non-root X server: when we load the system OpenGL library we should load the system EGL library too, as the X server uses EGL when the modesetting driver is in use.

位置:
trunk/src/VBox/Additions/linux/installer
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh

    r59197 r59199  
    3434CONFIG="config"
    3535SCRIPTNAME=vboxadd-x11.sh
     36MODPROBE=/sbin/modprobe
     37
     38if $MODPROBE -c 2>/dev/null | grep -q '^allow_unsupported_modules  *0'; then
     39  MODPROBE="$MODPROBE --allow-unsupported-modules"
     40fi
    3641
    3742# Check architecture
     
    254259    fi
    255260    case $x_version in
    256         1.17.99.902* )
    257             # special case for Fedora 23 :-/
    258             x_version_short="1.18"
    259             xserver_version="X.Org Server ${x_version_short}"
    260             vboxvideo_src=vboxvideo_drv_`echo ${x_version_short} | sed 's/\.//'`.so
    261             setupxorgconf=""
    262             test -f "${lib_dir}/${vboxvideo_src}" ||
    263             {
    264                 echo "Warning: unknown version of the X Window System installed.  Not installing"
    265                 echo "X Window System drivers."
    266                 dox11config=""
    267                 vboxvideo_src=""
    268             }
    269             ;;
    270261        1.*.99.* )
    271262            echo "Warning: unsupported pre-release version of X.Org Server installed.  Not"
     
    367358            esac
    368359            ;;
    369         * )
    370             # Anything else, including all X server versions as of 1.12.
     360        1.12.* | 1.13.* | 1.14.* | 1.15.* | 1.16.* )
    371361            xserver_version="X.Org Server ${x_version_short}"
    372362            vboxvideo_src=vboxvideo_drv_`echo ${x_version_short} | sed 's/\.//'`.so
     
    379369                vboxvideo_src=""
    380370            }
     371            ;;
     372        * )
     373            # For anything else, assume kernel drivers.
     374            dox11config=""
     375            $MODPROBE vboxvideo ||
     376                echo "Warning: failed to set up the X Window System display integration."
    381377            ;;
    382378    esac
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r59197 r59199  
    222222            case "${line}" in "libGL.so.1 ${ldconfig_arch} => "*)
    223223                ln -s "${line#libGL.so.1 ${ldconfig_arch} => }" /tmp/VBoxOGL/system/libGL.so.1
     224                break
     225            esac
     226        done
     227        ldconfig -p | while read -r line; do
     228            case "${line}" in "libEGL.so.1 ${ldconfig_arch} => "*)
     229                ln -s "${line#libEGL.so.1 ${ldconfig_arch} => }" /tmp/VBoxOGL/system/libEGL.so.1
    224230                break
    225231            esac
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette