]> git.pld-linux.org Git - packages/VirtualBox.git/commitdiff
bring back "DECLCALLBACK generates incorrect code on ix86, remove it" as 32bit.patch
authorJan Palus <atler@pld-linux.org>
Thu, 21 Jan 2021 22:16:30 +0000 (23:16 +0100)
committerJan Palus <atler@pld-linux.org>
Thu, 21 Jan 2021 22:16:30 +0000 (23:16 +0100)
32bit.patch [new file with mode: 0644]
VirtualBox.spec

diff --git a/32bit.patch b/32bit.patch
new file mode 100644 (file)
index 0000000..c1ab2c0
--- /dev/null
@@ -0,0 +1,12 @@
+diff --color -ur VirtualBox-6.1.18.orig/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c VirtualBox-6.1.18/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
+--- VirtualBox-6.1.18.orig/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c   2021-01-07 16:42:09.000000000 +0100
++++ VirtualBox-6.1.18/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c        2021-01-21 23:13:58.808360771 +0100
+@@ -536,7 +536,7 @@
+  * @param   uAddr               The address to apply the new protection to.
+  * @param   pvUser              The opaque user data.
+  */
+-static DECLCALLBACK(int) rtR0MemObjLinuxApplyPageRange(pte_t *pPte, unsigned long uAddr, void *pvUser)
++static int rtR0MemObjLinuxApplyPageRange(pte_t *pPte, unsigned long uAddr, void *pvUser)
+ {
+     PCLNXAPPLYPGRANGE pArgs = (PCLNXAPPLYPGRANGE)pvUser;
+     PRTR0MEMOBJLNX pMemLnx = pArgs->pMemLnx;
index c84d1e073a95963546f474206ed49e0083faea0d..713808782142abbe78a28dc5a8b6e3a181f1ffa9 100644 (file)
@@ -87,6 +87,7 @@ Patch14:      %{pname}-multipython.patch
 Patch15:       %{pname}-lightdm-1.19.2.patch
 Patch16:       %{pname}-no-vboxvideo.patch
 Patch17:       qt5-gl.patch
+Patch18:       32bit.patch
 URL:           http://www.virtualbox.org/
 %if %{with userspace}
 %ifarch %{x8664}
@@ -547,6 +548,7 @@ echo override vboxsf %{_kernel_ver} misc >> kernel/installed/etc/depmod.d/%{_ker
 %patch15 -p0
 %patch16 -p0
 %patch17 -p1
+%patch18 -p1
 
 %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \
        -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in
This page took 0.045151 seconds and 4 git commands to generate.