[arch-commits] Commit in virtualbox/trunk (008-fix-asm-barrier.patch PKGBUILD)

2015-12-19 Thread Sébastien Luttringer
Date: Saturday, December 19, 2015 @ 23:57:12
  Author: seblu
Revision: 153734

upgpkg: virtualbox 5.0.12-1

Modified:
  virtualbox/trunk/PKGBUILD
Deleted:
  virtualbox/trunk/008-fix-asm-barrier.patch

---+
 008-fix-asm-barrier.patch |   52 
 PKGBUILD  |   17 ++
 2 files changed, 8 insertions(+), 61 deletions(-)

Deleted: 008-fix-asm-barrier.patch
===
--- 008-fix-asm-barrier.patch   2015-12-19 22:53:16 UTC (rev 153733)
+++ 008-fix-asm-barrier.patch   2015-12-19 22:57:12 UTC (rev 153734)
@@ -1,52 +0,0 @@
-Index: src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp
-===
 a/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp   
(revision 59178)
-+++ b/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp   
(revision 59179)
-@@ -1514,6 +1514,8 @@
- static int vboxWddmVdmaSubmitHgsmi(PVBOXMP_DEVEXT pDevExt, PVBOXVDMAINFO 
pInfo, HGSMIOFFSET offDr)
- {
- 
VBoxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, 
offDr);
-+/* Make the compiler aware that the host has changed memory. */
-+ASMCompilerBarrier();
- return VINF_SUCCESS;
- }
- #define vboxWddmVdmaSubmit vboxWddmVdmaSubmitHgsmi
-Index: src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
-===
 a/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp   
(revision 59178)
-+++ b/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp   
(revision 59179)
-@@ -1806,6 +1806,8 @@
- if (offCmd != HGSMIOFFSET_VOID)
- {
- 
VBoxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, 
offCmd);
-+/* Make the compiler aware that the host has changed 
memory. */
-+ASMCompilerBarrier();
- rc = 
VBoxSHGSMICommandDoneSynch((pDevExt)->guestCtx.heapCtx, 
pHdr);
- AssertRC(rc);
- if (RT_SUCCESS(rc))
-Index: src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp
-===
 a/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp   
(revision 59178)
-+++ b/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp   
(revision 59179)
-@@ -117,6 +117,8 @@
- static int vboxCmdVbvaSubmitHgsmi(PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, 
HGSMIOFFSET offDr)
- {
- VBoxVideoCmnPortWriteUlong(pHGSMICtx->port, offDr);
-+/* Make the compiler aware that the host has changed memory. */
-+ASMCompilerBarrier();
- return VINF_SUCCESS;
- }
- #define vboxCmdVbvaSubmit vboxCmdVbvaSubmitHgsmi
-Index: src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
-===
 a/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp(revision 59178)
-+++ b/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp(revision 59179)
-@@ -169,6 +169,8 @@
- {
- /* Submit the buffer to the host. */
- VBoxVideoCmnPortWriteUlong(pCtx->port, offBuffer);
-+/* Make the compiler aware that the host has changed memory. */
-+ASMCompilerBarrier();
- return VINF_SUCCESS;
- }
- 

Modified: PKGBUILD
===
--- PKGBUILD2015-12-19 22:53:16 UTC (rev 153733)
+++ PKGBUILD2015-12-19 22:57:12 UTC (rev 153734)
@@ -10,8 +10,8 @@
  'virtualbox-guest-utils'
  'virtualbox-guest-utils-nox'
  'virtualbox-ext-vnc')
-pkgver=5.0.10
-pkgrel=3
+pkgver=5.0.12
+pkgrel=1
 arch=('i686' 'x86_64')
 url='http://virtualbox.org'
 license=('GPL' 'custom')
@@ -64,10 +64,9 @@
 '005-gsoap-build.patch'
 '006-rdesktop-vrdp-keymap-path.patch'
 '007-python2-path.patch'
-'008-fix-asm-barrier.patch'
 '010-no-update.patch'
 )
-md5sums=('b978c28a021d637489beb23f7b1380e2'
+md5sums=('5912835882ef547e0559c7e73bc85828'
  '984412a63aa9c07ddc3cfd970381d5df'
  '4833c8e0524fd2272b24ba0d94aef006'
  '6e2722bfd7013c1b0174382626ac1b8d'
@@ -82,16 +81,16 @@
  'ecfd13297d7753ebe7b8763ca5b792d9'
  'd82a6f19be739341ed7f1cf4ee8070ca'
  '188ea65918309f737ce28216c2b07c3b'
- '55e63dadb2269a262d93b544f2d25de1'
  'dfa08dc682c7668c8a6f0ffc3f44fece')
 
 prepare() {
 cd "VirtualBox-$pkgver"
 
-for _p in "$srcdir"/*.patch; do
-[[ -e $_p ]] || continue
-msg2 "Appy patch ${_p##*/}"
-patch -Np1 -i "$_p"
+for _f in "${source[@]}"; do
+[[ "$_f" =~ \.patch$ ]] && {
+msg2 "Applying patch $_f"
+patch -p1 -i "$srcdir/$_f"
+}
 done
 
 msg2 'Applying local config'


[arch-commits] Commit in virtualbox/trunk (008-fix-asm-barrier.patch PKGBUILD)

2015-12-18 Thread Sébastien Luttringer
Date: Friday, December 18, 2015 @ 20:21:43
  Author: seblu
Revision: 153690

upgpkg: virtualbox 5.0.10-3

- fix FS#45748

Added:
  virtualbox/trunk/008-fix-asm-barrier.patch
Modified:
  virtualbox/trunk/PKGBUILD

---+
 008-fix-asm-barrier.patch |   52 
 PKGBUILD  |4 ++-
 2 files changed, 55 insertions(+), 1 deletion(-)

Added: 008-fix-asm-barrier.patch
===
--- 008-fix-asm-barrier.patch   (rev 0)
+++ 008-fix-asm-barrier.patch   2015-12-18 19:21:43 UTC (rev 153690)
@@ -0,0 +1,52 @@
+Index: src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp
+===
+--- a/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp   
(revision 59178)
 b/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVdma.cpp   
(revision 59179)
+@@ -1514,6 +1514,8 @@
+ static int vboxWddmVdmaSubmitHgsmi(PVBOXMP_DEVEXT pDevExt, PVBOXVDMAINFO 
pInfo, HGSMIOFFSET offDr)
+ {
+ 
VBoxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, 
offDr);
++/* Make the compiler aware that the host has changed memory. */
++ASMCompilerBarrier();
+ return VINF_SUCCESS;
+ }
+ #define vboxWddmVdmaSubmit vboxWddmVdmaSubmitHgsmi
+Index: src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp
+===
+--- a/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp   
(revision 59178)
 b/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPMisc.cpp   
(revision 59179)
+@@ -1806,6 +1806,8 @@
+ if (offCmd != HGSMIOFFSET_VOID)
+ {
+ 
VBoxVideoCmnPortWriteUlong(VBoxCommonFromDeviceExt(pDevExt)->guestCtx.port, 
offCmd);
++/* Make the compiler aware that the host has changed 
memory. */
++ASMCompilerBarrier();
+ rc = 
VBoxSHGSMICommandDoneSynch((pDevExt)->guestCtx.heapCtx, 
pHdr);
+ AssertRC(rc);
+ if (RT_SUCCESS(rc))
+Index: src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp
+===
+--- a/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp   
(revision 59178)
 b/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPVbva.cpp   
(revision 59179)
+@@ -117,6 +117,8 @@
+ static int vboxCmdVbvaSubmitHgsmi(PHGSMIGUESTCOMMANDCONTEXT pHGSMICtx, 
HGSMIOFFSET offDr)
+ {
+ VBoxVideoCmnPortWriteUlong(pHGSMICtx->port, offDr);
++/* Make the compiler aware that the host has changed memory. */
++ASMCompilerBarrier();
+ return VINF_SUCCESS;
+ }
+ #define vboxCmdVbvaSubmit vboxCmdVbvaSubmitHgsmi
+Index: src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
+===
+--- a/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp(revision 59178)
 b/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp(revision 59179)
+@@ -169,6 +169,8 @@
+ {
+ /* Submit the buffer to the host. */
+ VBoxVideoCmnPortWriteUlong(pCtx->port, offBuffer);
++/* Make the compiler aware that the host has changed memory. */
++ASMCompilerBarrier();
+ return VINF_SUCCESS;
+ }
+ 

Modified: PKGBUILD
===
--- PKGBUILD2015-12-18 18:56:34 UTC (rev 153689)
+++ PKGBUILD2015-12-18 19:21:43 UTC (rev 153690)
@@ -11,7 +11,7 @@
  'virtualbox-guest-utils-nox'
  'virtualbox-ext-vnc')
 pkgver=5.0.10
-pkgrel=2
+pkgrel=3
 arch=('i686' 'x86_64')
 url='http://virtualbox.org'
 license=('GPL' 'custom')
@@ -64,6 +64,7 @@
 '005-gsoap-build.patch'
 '006-rdesktop-vrdp-keymap-path.patch'
 '007-python2-path.patch'
+'008-fix-asm-barrier.patch'
 '010-no-update.patch'
 )
 md5sums=('b978c28a021d637489beb23f7b1380e2'
@@ -81,6 +82,7 @@
  'ecfd13297d7753ebe7b8763ca5b792d9'
  'd82a6f19be739341ed7f1cf4ee8070ca'
  '188ea65918309f737ce28216c2b07c3b'
+ '55e63dadb2269a262d93b544f2d25de1'
  'dfa08dc682c7668c8a6f0ffc3f44fece')
 
 prepare() {