[Pkg-virtualbox-commits] [virtualbox] 01/02: Try experimental GL build
Gianfranco Costamagna
locutusofborg at moszumanska.debian.org
Tue Sep 13 15:04:16 UTC 2016
This is an automated email from the git hooks/post-receive script.
locutusofborg pushed a commit to branch experimental
in repository virtualbox.
commit 612c905267a8203d7526f7e1fba3de5bc684145d
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date: Thu Sep 8 11:45:04 2016 +0200
Try experimental GL build
---
debian/virtualbox-guest-x11.dirs | 1 +
debian/virtualbox-guest-x11.files/00vboxvideo.conf | 1 +
debian/virtualbox-guest-x11.install | 2 ++
debian/virtualbox-guest-x11.links | 4 ++++
debian/virtualbox-guest-x11.postinst | 17 +++++++++++++++++
debian/virtualbox-guest-x11.prerm | 16 ++++++++++++++++
6 files changed, 41 insertions(+)
diff --git a/debian/virtualbox-guest-x11.dirs b/debian/virtualbox-guest-x11.dirs
new file mode 100644
index 0000000..0369ff7
--- /dev/null
+++ b/debian/virtualbox-guest-x11.dirs
@@ -0,0 +1 @@
+/usr/lib/virtualbox/additions
diff --git a/debian/virtualbox-guest-x11.files/00vboxvideo.conf b/debian/virtualbox-guest-x11.files/00vboxvideo.conf
new file mode 100644
index 0000000..0369ff7
--- /dev/null
+++ b/debian/virtualbox-guest-x11.files/00vboxvideo.conf
@@ -0,0 +1 @@
+/usr/lib/virtualbox/additions
diff --git a/debian/virtualbox-guest-x11.install b/debian/virtualbox-guest-x11.install
index 3b7aa74..fae5327 100644
--- a/debian/virtualbox-guest-x11.install
+++ b/debian/virtualbox-guest-x11.install
@@ -3,3 +3,5 @@ src/VBox/Additions/x11/Installer/x11config.pl /usr/share/virtualbox
src/VBox/Additions/x11/Installer/98vboxadd-xclient /etc/X11/Xsession.d
out/bin/additions/VBoxOGL*.so /usr/lib
out/bin/additions/VBoxEGL*.so /usr/lib
+
+debian/virtualbox-guest-x11.files/00vboxvideo.conf /usr/lib/virtualbox/additions
diff --git a/debian/virtualbox-guest-x11.links b/debian/virtualbox-guest-x11.links
new file mode 100644
index 0000000..4f5d321
--- /dev/null
+++ b/debian/virtualbox-guest-x11.links
@@ -0,0 +1,4 @@
+/usr/lib/VBoxOGL.so /usr/lib/virtualbox/additions/libGL.so.1
+/usr/lib/VBoxOGL.so /usr/lib/virtualbox/additions/libGL.so
+/usr/lib/VBoxEGL.so /usr/lib/virtualbox/additions/libEGL.so.1
+/usr/lib/VBoxEGL.so /usr/lib/virtualbox/additions/libEGL.so
diff --git a/debian/virtualbox-guest-x11.postinst b/debian/virtualbox-guest-x11.postinst
index 748d03a..2e3bcff 100644
--- a/debian/virtualbox-guest-x11.postinst
+++ b/debian/virtualbox-guest-x11.postinst
@@ -2,7 +2,24 @@
set -e
+ARCH=`dpkg --print-architecture`
+
if [ "$1" = "configure" ]; then
+
+ if [ "$ARCH" = "amd64" ]; then
+ update-alternatives --force \
+ --install /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf x86_64-linux-gnu_gl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf 8605
+
+ update-alternatives --force \
+ --install /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf x86_64-linux-gnu_egl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf 8605
+ else
+ update-alternatives --force \
+ --install /etc/ld.so.conf.d/i386-linux-gnu_GL.conf i386-linux-gnu_gl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf 8605
+
+ update-alternatives --force \
+ --install /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf i386-linux-gnu_egl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf 8605
+ fi
+
ldconfig
fi
diff --git a/debian/virtualbox-guest-x11.prerm b/debian/virtualbox-guest-x11.prerm
new file mode 100644
index 0000000..d1ec441
--- /dev/null
+++ b/debian/virtualbox-guest-x11.prerm
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+
+ARCH=`dpkg --print-architecture`
+
+case "$1" in
+ remove)
+ update-alternatives --remove x86_64-linux-gnu_gl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf
+ update-alternatives --remove x86_64-linux-gnu_egl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf
+ update-alternatives --remove i386-linux-gnu_gl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf
+ update-alternatives --remove i386-linux-gnu_egl_conf /usr/lib/virtualbox/additions/00vboxvideo.conf
+ ldconfig
+ ;;
+
+esac
+##DEBHELPER##
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-virtualbox/virtualbox.git
More information about the Pkg-virtualbox-commits
mailing list