diff --git a/fixes-for-5.15.patch b/fixes-for-5.15.patch new file mode 100644 index 0000000..67c0f08 --- /dev/null +++ b/fixes-for-5.15.patch @@ -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 ++# include ++# if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0) ++# include ++# else ++# include ++# endif + # endif + #endif + diff --git a/virtualbox.changes b/virtualbox.changes index 283edaa..730e08f 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 8 04:54:25 UTC 2021 - Larry Finger + +- Add file "fixes-for-5.15.patch" to fix builds on kernel 5.15. + ------------------------------------------------------------------- Mon Aug 23 16:12:57 UTC 2021 - Larry Finger diff --git a/virtualbox.spec b/virtualbox.spec index 62c05ad..2b9646d 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -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