1
0
forked from pool/virtualbox

Accepting request 917602 from home:lwfinger:branches:Virtualization

- Add file "fixes-for-5.15.patch" to fix builds on kernel 5.15.

OBS-URL: https://build.opensuse.org/request/show/917602
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=615
This commit is contained in:
Larry Finger 2021-09-08 14:53:19 +00:00 committed by Git OBS Bridge
parent 5e9a79fab9
commit 8693c4ad06
3 changed files with 44 additions and 0 deletions

19
fixes-for-5.15.patch Normal file
View File

@ -0,0 +1,19 @@
Index: VirtualBox-6.1.26/include/iprt/stdarg.h
===================================================================
--- VirtualBox-6.1.26.orig/include/iprt/stdarg.h
+++ VirtualBox-6.1.26/include/iprt/stdarg.h
@@ -44,7 +44,12 @@
# define __builtin_stdarg_start __builtin_va_start
# endif
# else
-# include <stdarg.h>
+# include <linux/version.h>
+# if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)
+# include <stdarg.h>
+# else
+# include <linux/stdarg.h>
+# endif
# endif
#endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 8 04:54:25 UTC 2021 - Larry Finger <Larry.Finger@gmail.com>
- Add file "fixes-for-5.15.patch" to fix builds on kernel 5.15.
-------------------------------------------------------------------
Mon Aug 23 16:12:57 UTC 2021 - Larry Finger <Larry.Finger@gmail.com>

View File

@ -178,6 +178,7 @@ Patch141: vb-6.1.16-modal-dialog-parent.patch
Patch142: fixes_for_5.14.patch
Patch143: fix_ordering_of_qt_includes.patch
Patch144: fixes_for_leap15.4.patch
Patch145: fixes-for-5.15.patch
Patch999: virtualbox-fix-ui-background-color.patch
#
# Common BuildRequires for both virtualbox and virtualbox-kmp
@ -308,7 +309,9 @@ the terms of the GNU Public License (GPL).
##########################################
%package qt
Summary: Qt GUI part for %{name}
Group: System/Emulators/PC
@ -331,7 +334,9 @@ This package contains the code for the GUI used to control VMs.
#########################################
%package websrv
Summary: WebService GUI part for %{name}
Group: System/Emulators/PC
@ -348,7 +353,9 @@ The VirtualBox web server is used to control headless VMs using a browser.
#########################################
%package guest-x11
Summary: VirtualBox X11 drivers for mouse and video
Group: System/X11/Servers/XF86_4
@ -367,7 +374,9 @@ This package contains X11 guest utilities and X11 guest mouse and video drivers
###########################################
%package guest-tools
Summary: VirtualBox guest tools
Group: System/Emulators/PC
@ -391,7 +400,9 @@ VirtualBox guest addition tools.
###########################################
%package -n python3-%{name}
Summary: Python bindings for %{name}
Group: Development/Libraries/Python
@ -415,7 +426,9 @@ Python XPCOM bindings to %{name}. Used e.g. by vboxgtk package.
###########################################
%package devel
Summary: Devel files for %{name}
Group: Development/Libraries/Other
@ -434,7 +447,9 @@ Development file for %{name}
###########################################
%package host-source
Summary: Source files for %{name} host kernel modules
Group: Development/Sources
@ -470,7 +485,9 @@ sudo /sbin/vboxguestconfig
###########################################
%package guest-desktop-icons
Summary: Icons for guest desktop files
Group: System/Emulators/PC
@ -487,7 +504,9 @@ This package contains icons for guest desktop files that were created on the des
###########################################
%package vnc
Summary: VNC desktop sharing
Group: System/Emulators/PC
@ -565,6 +584,7 @@ This package contains the kernel-modules that VirtualBox uses to create or run v
# Patch for Leap 15.4
%patch144 -p1
%endif
%patch145 -p1
# make VB UI background colors look sane again
%patch999 -p1