Accepting request 1068549 from home:lwfinger:branches:Virtualization
- Add file "fixes_for_gcc13.patch" to fix builds with GCC13. boo#1207468 OBS-URL: https://build.opensuse.org/request/show/1068549 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=679
This commit is contained in:
parent
5ea7ca373d
commit
bb90ee6504
47
fixes_for_gcc13.patch
Normal file
47
fixes_for_gcc13.patch
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
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
|
||||||
|
+++ VirtualBox-7.0.6/src/libs/dxvk-native-1.9.2a/src/util/util_bit.h
|
||||||
|
@@ -13,6 +13,7 @@
|
||||||
|
#include <intrin.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#include <cstdint>
|
||||||
|
#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
|
||||||
|
===================================================================
|
||||||
|
--- 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"
|
||||||
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 1 16:13:24 UTC 2023 - Larry Finger <Larry.Finger@gmail.com>
|
||||||
|
|
||||||
|
- Add file "fixes_for_gcc13.patch" to fix builds with GCC13.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 13 12:03:41 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
|
Mon Feb 13 12:03:41 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
@ -158,6 +158,8 @@ Patch33: fixes_for_leap15.3.patch
|
|||||||
Patch34: fix_kmp_build.patch
|
Patch34: fix_kmp_build.patch
|
||||||
# Fix for backports to 15.5
|
# Fix for backports to 15.5
|
||||||
Patch35: fixes_for_leap15.5.patch
|
Patch35: fixes_for_leap15.5.patch
|
||||||
|
# Fix for GCC13
|
||||||
|
Patch36: fixes_for_gcc13.patch
|
||||||
#
|
#
|
||||||
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
# Common BuildRequires for both virtualbox and virtualbox-kmp
|
||||||
BuildRequires: %{kernel_module_package_buildreqs}
|
BuildRequires: %{kernel_module_package_buildreqs}
|
||||||
@ -299,7 +301,12 @@ the terms of the GNU Public License (GPL).
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
##########################################
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#-#########################################
|
||||||
|
|
||||||
%package qt
|
%package qt
|
||||||
Summary: Qt GUI part for %{name}
|
Summary: Qt GUI part for %{name}
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
@ -319,7 +326,12 @@ This package contains the code for the GUI used to control VMs.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#########################################
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#-########################################
|
||||||
|
|
||||||
%package websrv
|
%package websrv
|
||||||
Summary: WebService GUI part for %{name}
|
Summary: WebService GUI part for %{name}
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
@ -332,8 +344,13 @@ The VirtualBox web server is used to control headless VMs using a browser.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
###########################################
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#-##########################################
|
||||||
%package guest-tools
|
%package guest-tools
|
||||||
Summary: VirtualBox guest tools
|
Summary: VirtualBox guest tools
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
@ -357,7 +374,12 @@ VirtualBox guest addition tools.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
###########################################
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#-##########################################
|
||||||
|
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: Python bindings for %{name}
|
Summary: Python bindings for %{name}
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
@ -378,7 +400,12 @@ Python XPCOM bindings to %{name}. Used e.g. by vboxgtk package.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
###########################################
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#-##########################################
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Devel files for %{name}
|
Summary: Devel files for %{name}
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
@ -394,7 +421,12 @@ Development file for %{name}
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
###########################################
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#-##########################################
|
||||||
|
|
||||||
%package host-source
|
%package host-source
|
||||||
Summary: Source files for %{name} host kernel modules
|
Summary: Source files for %{name} host kernel modules
|
||||||
Group: Development/Sources
|
Group: Development/Sources
|
||||||
@ -427,7 +459,12 @@ sudo %{_sbindir}/vboxguestconfig
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
###########################################
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#-##########################################
|
||||||
|
|
||||||
%package guest-desktop-icons
|
%package guest-desktop-icons
|
||||||
Summary: Icons for guest desktop files
|
Summary: Icons for guest desktop files
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
@ -441,7 +478,12 @@ This package contains icons for guest desktop files that were created on the des
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
###########################################
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#-##########################################
|
||||||
|
|
||||||
%package vnc
|
%package vnc
|
||||||
Summary: VNC desktop sharing
|
Summary: VNC desktop sharing
|
||||||
Group: System/Emulators/PC
|
Group: System/Emulators/PC
|
||||||
@ -506,6 +548,9 @@ This package contains the kernel-modules that VirtualBox uses to create or run v
|
|||||||
%if 0%{?sle_version} == 150500 && 0%{?is_opensuse}
|
%if 0%{?sle_version} == 150500 && 0%{?is_opensuse}
|
||||||
%patch35 -p1
|
%patch35 -p1
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{gcc_version} >= 13
|
||||||
|
%patch36 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
### Documents for virtualbox main package ###
|
### Documents for virtualbox main package ###
|
||||||
%if %{main_package}
|
%if %{main_package}
|
||||||
|
Loading…
Reference in New Issue
Block a user