From 703a953e7c7fafbca1fdde72f4d597c5fad2ae8b Mon Sep 17 00:00:00 2001
From: Jose V Beneyto <sepen@users.sourceforge.net>
Date: Thu, 22 Jan 2009 16:06:04 +0100
Subject: [PATCH] virtualbox: updated to 2.1.2

---
 virtualbox/.footprint | 139 +++++++++++++++++++++---------------------
 virtualbox/.md5sum    |   2 +-
 virtualbox/Pkgfile    |  15 +++--
 3 files changed, 79 insertions(+), 77 deletions(-)

diff --git a/virtualbox/.footprint b/virtualbox/.footprint
index 4163a5f3b..c2e10013a 100644
--- a/virtualbox/.footprint
+++ b/virtualbox/.footprint
@@ -21,34 +21,34 @@ drwxr-xr-x	root/root	usr/share/pixmaps/
 drwxr-xr-x	root/root	usr/share/virtualbox/
 drwxr-xr-x	root/root	usr/share/virtualbox/bin/
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxBFE
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxDD.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxDD2.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxDD2GC.gc
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxDD2R0.r0
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxDDGC.gc
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxDDR0.r0
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxDDU.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxGuestPropSvc.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxDD.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxDD2.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxDD2GC.gc
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxDD2R0.r0
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxDDGC.gc
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxDDR0.r0
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxDDU.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxGuestPropSvc.so
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxHeadless
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxKeyboard.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxKeyboard.so
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxManage
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxPython.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxREM.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxREM32.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxREM64.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxRT.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxPython.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxREM.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxREM32.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxREM64.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxRT.so
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxSDL
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxSVC
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxSettings.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxSharedClipboard.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxSharedFolders.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxSettings.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxSharedClipboard.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxSharedFolders.so
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxSysInfo.sh
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxTunctl
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxVMM.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/VBoxXPCOM.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxVMM.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxXPCOM.so
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/VBoxXPCOMIPCD
--rw-r--r--	root/root	usr/share/virtualbox/bin/VMMGC.gc
--rw-r--r--	root/root	usr/share/virtualbox/bin/VMMR0.r0
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VMMGC.gc
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/VMMR0.r0
 -rwsr-sr-x	root/root	usr/share/virtualbox/bin/VirtualBox
 -rw-r--r--	root/root	usr/share/virtualbox/bin/VirtualBox.desktop
 drwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/
@@ -56,6 +56,7 @@ drwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/VBoxControl
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/mountvboxsf
 drwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/src/
+-rw-r--r--	root/root	usr/share/virtualbox/bin/additions/src/Makefile
 drwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/src/vboxadd/
 -rw-r--r--	root/root	usr/share/virtualbox/bin/additions/src/vboxadd/GenericRequest.c
 -rw-r--r--	root/root	usr/share/virtualbox/bin/additions/src/vboxadd/HGCMInternal.c
@@ -220,22 +221,24 @@ drwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/src/vboxvfs/r0drv/linux/
 -rw-r--r--	root/root	usr/share/virtualbox/bin/additions/src/vboxvfs/vfsmod.c
 -rw-r--r--	root/root	usr/share/virtualbox/bin/additions/src/vboxvfs/vfsmod.h
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxadd-timesync
--rw-r--r--	root/root	usr/share/virtualbox/bin/additions/vboxmouse_drv.o
--rw-r--r--	root/root	usr/share/virtualbox/bin/additions/vboxmouse_drv_14.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/additions/vboxmouse_drv_15.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/additions/vboxmouse_drv_70.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/additions/vboxmouse_drv_71.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv.o
--rw-r--r--	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv_13.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv_14.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv_15.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv_70.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv_71.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxmouse_drv.o
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxmouse_drv_14.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxmouse_drv_15.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxmouse_drv_16.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxmouse_drv_70.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxmouse_drv_71.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv.o
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv_13.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv_14.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv_15.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv_16.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv_70.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/additions/vboxvideo_drv_71.so
 drwxr-xr-x	root/root	usr/share/virtualbox/bin/components/
--rw-r--r--	root/root	usr/share/virtualbox/bin/components/VBoxC.so
--rw-r--r--	root/root	usr/share/virtualbox/bin/components/VBoxSVCM.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/components/VBoxC.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/components/VBoxSVCM.so
 -rw-r--r--	root/root	usr/share/virtualbox/bin/components/VBoxXPCOMBase.xpt
--rw-r--r--	root/root	usr/share/virtualbox/bin/components/VBoxXPCOMIPCC.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/bin/components/VBoxXPCOMIPCC.so
 -rw-r--r--	root/root	usr/share/virtualbox/bin/components/VirtualBox_XPCOM.xpt
 drwxr-xr-x	root/root	usr/share/virtualbox/bin/sdk/
 drwxr-xr-x	root/root	usr/share/virtualbox/bin/sdk/bindings/
@@ -1145,37 +1148,37 @@ drwxr-xr-x	root/root	usr/share/virtualbox/bin/src/vboxnetflt/r0drv/linux/
 -rw-r--r--	root/root	usr/share/virtualbox/bin/vboxkeyboard.tar.gz
 -rwxr-xr-x	root/root	usr/share/virtualbox/bin/xpidl
 drwxr-xr-x	root/root	usr/share/virtualbox/lib/
--rw-r--r--	root/root	usr/share/virtualbox/lib/DevicesR3.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/DisasmCoreR3.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/DisasmGC.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/DisasmR0.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/DisasmR3.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/Drivers.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/NetBiosBin.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/PcBiosBin.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/RuntimeEFCPP.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/RuntimeGC.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/RuntimeR0.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/RuntimeR0Drv.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/RuntimeR3.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/RuntimeR3NoCRTGCC.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/SUPR0IdcClient.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/SUPR3.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/SUPR3HardenedStatic.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/ServicesR0.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/VBox-liblzf.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/VBoxCOM.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/VBoxREM.so
--rw-r--r--	root/root	usr/share/virtualbox/lib/VBoxXPCOMGlue.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/VMMR3.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/VgaBiosBin.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/VgaDefBiosLogo.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/DevicesR3.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/DisasmCoreR3.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/DisasmGC.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/DisasmR0.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/DisasmR3.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/Drivers.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/NetBiosBin.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/PcBiosBin.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/RuntimeEFCPP.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/RuntimeGC.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/RuntimeR0.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/RuntimeR0Drv.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/RuntimeR3.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/RuntimeR3NoCRTGCC.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/SUPR0IdcClient.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/SUPR3.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/SUPR3HardenedStatic.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/ServicesR0.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/VBox-liblzf.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/VBoxCOM.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/VBoxREM.so
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/VBoxXPCOMGlue.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/VMMR3.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/VgaBiosBin.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/VgaDefBiosLogo.a
 drwxr-xr-x	root/root	usr/share/virtualbox/lib/additions/
--rw-r--r--	root/root	usr/share/virtualbox/lib/additions/RuntimeGuestR0.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/additions/RuntimeGuestR3.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/additions/RuntimeGuestR3Mini.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/additions/VBoxGuestR0Lib.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/additions/VBoxGuestR0LibBase.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/additions/VBoxGuestR3Lib.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/additions/VBoxGuestR3LibShared.a
--rw-r--r--	root/root	usr/share/virtualbox/lib/additions/VBoxGuestR3LibXFree86.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/additions/RuntimeGuestR0.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/additions/RuntimeGuestR3.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/additions/RuntimeGuestR3Mini.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/additions/VBoxGuestR0Lib.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/additions/VBoxGuestR0LibBase.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/additions/VBoxGuestR3Lib.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/additions/VBoxGuestR3LibShared.a
+-rwxr-xr-x	root/root	usr/share/virtualbox/lib/additions/VBoxGuestR3LibXFree86.a
diff --git a/virtualbox/.md5sum b/virtualbox/.md5sum
index 307c7ed78..23bde1590 100644
--- a/virtualbox/.md5sum
+++ b/virtualbox/.md5sum
@@ -1,4 +1,4 @@
 2a2724088f65d0a373a689209bb4d938  60-vboxdrv.rules
-4d8f857c9ead892607387656a9e895bb  VirtualBox-2.1.0-OSE.tar.bz2
+ce1360945d65a79dbea1bec997c25c00  VirtualBox-2.1.2-OSE.tar.bz2
 d365878a0f2f0a738a093a6bc48293be  virtualbox
 362e923d42651f370561b0f9095ea7a5  virtualbox.desktop
diff --git a/virtualbox/Pkgfile b/virtualbox/Pkgfile
index b3c139d31..45e9e8509 100644
--- a/virtualbox/Pkgfile
+++ b/virtualbox/Pkgfile
@@ -2,11 +2,11 @@
 # URL: http://www.virtualbox.org/
 # Maintainer: Jose V Beneyto, sepen at users dot sourceforge dot net
 # Packager: Jose V Beneyto, sepen at users dot sourceforge dot net
-# Depends on: bin86,dev86,hal,libsdl,libidl,qt4,xalan-c,iasl,xorg-libxmu,gcc34,libcap
+# Depends on: bin86,dev86,hal,libsdl,libidl,qt4,xalan-c,iasl,xorg-libxmu,libcap
 
 name=virtualbox
-version=2.1.0
-release=4
+version=2.1.2
+release=1
 source=(http://download.virtualbox.org/$name/$version/VirtualBox-$version-OSE.tar.bz2 \
         $name 60-vboxdrv.rules $name.desktop)
 
@@ -26,10 +26,9 @@ build() {
     QT4GUI="--disable-qt4"
   fi
 
-  cd VirtualBox-$version
+  cd VirtualBox-${version}_OSE
   # compile
   ./configure $QT3GUI $QT4GUI \
-              --with-gcc-compat=gcc-3.4 \
               --disable-hardening \
               --ose \
               --disable-pulse
@@ -42,13 +41,13 @@ build() {
   install -D -m 0644 vboxdrv.ko $PKG/lib/modules/$KVER/kernel/drivers/misc/vboxdrv.ko
   install -D -m 0644 vboxnetflt.ko $PKG/lib/modules/$KVER/kernel/drivers/misc/vboxnetflt.ko
   # remove superfluous files
-  rm -rf $SRC/VirtualBox-$version/out/linux.x86/release/bin/{sdk/samples,testcase,nls*}
-  find $SRC/VirtualBox-$version/out/linux.x86/release/bin -type f -name 'tst*' -exec rm -rf {} \;
+  rm -rf $SRC/VirtualBox-${version}_OSE/out/linux.x86/release/bin/{sdk/samples,testcase,nls*}
+  find $SRC/VirtualBox-${version}_OSE/out/linux.x86/release/bin -type f -name 'tst*' -exec rm -rf {} \;
   # do the rest
   install -D -m 0644 $SRC/60-vboxdrv.rules $PKG/etc/udev/rules.d/60-vboxdrv.rules
   install -d $PKG/usr/{bin,share/$name,share/pixmaps}
   install -m 0755 $SRC/$name $PKG/usr/bin/$name
-  mv $SRC/VirtualBox-$version/out/linux.x86/release/{bin,lib} $PKG/usr/share/$name
+  mv $SRC/VirtualBox-${version}_OSE/out/linux.x86/release/{bin,lib} $PKG/usr/share/$name
   chmod +s $PKG/usr/share/$name/bin/VirtualBox
   install -D -m 0644 $SRC/$name.desktop $PKG/usr/share/applications/$name.desktop
   mv $PKG/usr/share/$name/bin/VBox.png $PKG/usr/share/pixmaps/$name.png