Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package virtualbox for openSUSE:Factory checked in at 2023-03-08 14:51:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/virtualbox (Old) and /work/SRC/openSUSE:Factory/.virtualbox.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "virtualbox" Wed Mar 8 14:51:08 2023 rev:253 rq:1069752 version:7.0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/virtualbox/virtualbox.changes 2023-03-02 23:02:02.162765878 +0100 +++ /work/SRC/openSUSE:Factory/.virtualbox.new.31432/virtualbox.changes 2023-03-08 14:51:10.302218342 +0100 @@ -1,0 +2,6 @@ +Mon Mar 6 21:14:12 UTC 2023 - Larry Finger <larry.fin...@gmail.com> + +- Added file "fixes_for_kernel_6.3.patch" to handle API change. +- File "fixes_for_gcc13.patch" updated for additional changes in GCC 13 boo#1207468 + +------------------------------------------------------------------- New: ---- fixes_for_kernel_6.3.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ virtualbox.spec ++++++ --- /var/tmp/diff_new_pack.pRyTGx/_old 2023-03-08 14:51:12.358229538 +0100 +++ /var/tmp/diff_new_pack.pRyTGx/_new 2023-03-08 14:51:12.362229560 +0100 @@ -160,6 +160,8 @@ Patch35: fixes_for_leap15.5.patch # Fix for GCC13 Patch36: fixes_for_gcc13.patch +# Fix for kernel 6.3 +Patch37: fixes_for_kernel_6.3.patch # # Common BuildRequires for both virtualbox and virtualbox-kmp BuildRequires: %{kernel_module_package_buildreqs} @@ -298,13 +300,6 @@ hardware. VirtualBox is freely available as Open Source Software under the terms of the GNU Public License (GPL). - - - - - - - #-######################################### %package qt @@ -323,13 +318,6 @@ %description qt This package contains the code for the GUI used to control VMs. - - - - - - - #-######################################## %package websrv @@ -343,13 +331,6 @@ The VirtualBox web server is used to control headless VMs using a browser. - - - - - - - #-########################################## %package guest-tools Summary: VirtualBox guest tools @@ -371,13 +352,6 @@ %description guest-tools VirtualBox guest addition tools. - - - - - - - #-########################################## %package -n python3-%{name} @@ -397,13 +371,6 @@ %description -n python3-%{name} Python XPCOM bindings to %{name}. Used e.g. by vboxgtk package. - - - - - - - #-########################################## %package devel @@ -418,13 +385,6 @@ %description devel Development file for %{name} - - - - - - - #-########################################## %package host-source @@ -456,13 +416,6 @@ These can be built for custom kernels using sudo %{_sbindir}/vboxguestconfig - - - - - - - #-########################################## %package guest-desktop-icons @@ -475,13 +428,6 @@ %description guest-desktop-icons This package contains icons for guest desktop files that were created on the desktop. - - - - - - - #-########################################## %package vnc @@ -551,6 +497,7 @@ %if 0%{gcc_version} >= 13 %patch36 -p1 %endif +%patch37 -p1 ### Documents for virtualbox main package ### %if %{main_package} ++++++ fixes_for_gcc13.patch ++++++ --- /var/tmp/diff_new_pack.pRyTGx/_old 2023-03-08 14:51:12.470230148 +0100 +++ /var/tmp/diff_new_pack.pRyTGx/_new 2023-03-08 14:51:12.470230148 +0100 @@ -1,26 +1,3 @@ -Index: VirtualBox-7.0.6/include/iprt/types.h -=================================================================== ---- VirtualBox-7.0.6.orig/include/iprt/types.h -+++ VirtualBox-7.0.6/include/iprt/types.h -@@ -170,6 +170,7 @@ RT_C_DECLS_END - # undef __inline - # define __inline __inline - # endif -+# include <csdint> - # include <linux/types.h> - # include <linux/stddef.h> - /* -Index: VirtualBox-7.0.6/src/libs/dxvk-native-1.9.2a/src/util/util_matrix.cpp -=================================================================== ---- VirtualBox-7.0.6.orig/src/libs/dxvk-native-1.9.2a/src/util/util_matrix.cpp -+++ VirtualBox-7.0.6/src/libs/dxvk-native-1.9.2a/src/util/util_matrix.cpp -@@ -229,4 +229,4 @@ namespace dxvk { - return os; - } - --} -\ No newline at end of file -+} Index: VirtualBox-7.0.6/src/libs/dxvk-native-1.9.2a/src/util/util_bit.h =================================================================== --- VirtualBox-7.0.6.orig/src/libs/dxvk-native-1.9.2a/src/util/util_bit.h @@ -33,16 +10,18 @@ #include "util_likely.h" #include "util_math.h" -Index: VirtualBox-7.0.6/src/VBox/Additions/3D/mesa/mesa-21.3.8/include/c99_math.h +Index: VirtualBox-7.0.6/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/misc.h =================================================================== ---- VirtualBox-7.0.6.orig/src/VBox/Additions/3D/mesa/mesa-21.3.8/include/c99_math.h -+++ VirtualBox-7.0.6/src/VBox/Additions/3D/mesa/mesa-21.3.8/include/c99_math.h -@@ -34,6 +34,7 @@ - #ifndef _C99_MATH_H_ - #define _C99_MATH_H_ - -+#define _GLIBCXX_HOSTED 1 - #include <math.h> - #include "c99_compat.h" +--- VirtualBox-7.0.6.orig/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/misc.h ++++ VirtualBox-7.0.6/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/misc.h +@@ -66,6 +66,9 @@ TORTIOUS ACTION, ARISING OUT OF OR IN CO + OF THIS SOFTWARE. + ******************************************************************/ ++ ++#define __STDC_HOSTED__ 1 ++ + /* $Xorg: misc.h,v 1.5 2001/02/09 02:05:15 xorgcvs Exp $ */ + #ifndef MISC_H + #define MISC_H 1 ++++++ fixes_for_kernel_6.3.patch ++++++ Patch to fix VirtualBox builds on kernel 6.3.0 and newer Beginning with 6.3, a user is no loncer to write directly info the vm_flags member of struct vm_area_struct. It is now necessary to use the vm_flags_set() wrapper. Two locations in memobj-r0drv-linux.c are affected. Signed-off-by: Larry Finger <larry.fin...@lwfinger.net> Index: VirtualBox-7.0.6/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c =================================================================== --- VirtualBox-7.0.6.orig/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c +++ VirtualBox-7.0.6/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c @@ -1401,8 +1401,12 @@ DECLHIDDEN(int) rtR0MemObjNativeLockUser while (rc-- > 0) { flush_dcache_page(pMemLnx->apPages[rc]); - papVMAs[rc]->vm_flags |= VM_DONTCOPY | VM_LOCKED; - } +# if RTLNX_VER_MIN(6, 3, 0) + vm_flags_set(papVMAs[rc], VM_DONTCOPY | VM_LOCKED); +#else + papVMAs[rc]->vm_flags |= VM_DONTCOPY | VM_LOCKED; +#endif + } LNX_MM_UP_READ(pTask->mm); @@ -1873,7 +1877,11 @@ DECLHIDDEN(int) rtR0MemObjNativeMapUser( /* Thes flags help making 100% sure some bad stuff wont happen (swap, core, ++). * See remap_pfn_range() in mm/memory.c */ #if RTLNX_VER_MIN(3,7,0) +# if RTLNX_VER_MIN(6, 3, 0) + vm_flags_set(vma, VM_DONTEXPAND | VM_DONTDUMP); +#else vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP; +#endif #else vma->vm_flags |= VM_RESERVED; #endif