From 117e93cbde06e5a0391d9404686d450311c17562 Mon Sep 17 00:00:00 2001 From: Mikhail Novosyolov Date: Wed, 6 Feb 2019 23:21:43 +0300 Subject: [PATCH] Fix preloading custom libGL.so.1 and libEGL.so.1 (ALT#36035) --- virtualbox.spec | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/virtualbox.spec b/virtualbox.spec index 6a71670f5..07b244628 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -60,7 +60,7 @@ Name: virtualbox Version: 5.2.24 -Release: alt3 +Release: alt4 Summary: VM VirtualBox OSE - Virtual Machine for x86 hardware License: GPL @@ -565,13 +565,20 @@ cd additions >/dev/null install -d %buildroot%xdrv_pre_d cat >%buildroot%xdrv_pre_d/virtualbox < %ld_so_conf -else - rm -f %ld_so_conf +#!/bin/sh + +if [ -f /proc/bus/pci/devices ] && \ + [ -x "$(which VBoxClient)" ] && \ + VBoxClient --check3d && \ + grep -q 80eebeef /proc/bus/pci/devices; + then + mkdir -p %ld_so_confdir + echo %vboxadddir > %ld_so_conf + ldconfig + else + rm -f %ld_so_conf + # update /etc/ld.so.cache + ldconfig fi EOF @@ -805,6 +812,11 @@ mountpoint -q /dev || { %vboxdir/sdk/bindings/xpcom/include/VBox/com %changelog +* Wed Feb 06 2019 Mikhail Novosyolov 5.2.24-alt4 +- Propperly check if 3D acceleration is supported before preloading + VirtualBox's libGL.so.1 and libEGL.so.1 and update ldconfig cache + after changes to /etc/ld.so.conf.d/*.conf (Closes: 36035) + * Fri Jan 25 2019 Evgeny Sinelnikov 5.2.24-alt3 - Fix rEFInd 0.11.4 icons missing due to inaccessible files on ISO9660 partition (Closes: 34435) -- 2.19.2