1
0
forked from pool/virtualbox

Accepting request 1008893 from home:lwfinger:branches:Virtualization

Fix build breakage with kernel 6.0 due to variable-length array in middle of a struct. boo#1204151
  File "fix_error_in_USB_header.patch" is added.

OBS-URL: https://build.opensuse.org/request/show/1008893
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=659
This commit is contained in:
Larry Finger 2022-10-08 01:19:55 +00:00 committed by Git OBS Bridge
parent b3fcca9136
commit 6374f221da
3 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,20 @@
Index: a/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp
===================================================================
--- a/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp
+++ a/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp
@@ -90,7 +90,6 @@ typedef struct USBPROXYURBLNX
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wpedantic"
#endif
- struct usbdevfs_urb KUrb;
#if RT_GNUC_PREREQ(6, 0)
# pragma GCC diagnostic pop
#endif
@@ -110,6 +109,7 @@ typedef struct USBPROXYURBLNX
bool fDiscarded;
/** Size to transfer in remaining fragments of a split URB */
uint32_t cbSplitRemaining;
+ struct usbdevfs_urb KUrb; /* This entry MUST be last */
} USBPROXYURBLNX, *PUSBPROXYURBLNX;
/**

View File

@ -2,7 +2,7 @@
Sat Oct 8 00:49:59 UTC 2022 - Larry Finger <Larry.Finger@gmail.com>
- Fix build breakage with kernel 6.0 due to variable-length array in middle of a struct. boo#1204151
File "fix_error_in_USB_header.patch" is affed.
File "fix_error_in_USB_header.patch" is added.
-------------------------------------------------------------------
Wed Oct 5 17:28:00 UTC 2022 - Larry Finger <Larry.Finger@gmail.com>

View File

@ -303,6 +303,7 @@ the terms of the GNU Public License (GPL).
##########################################
%package qt
Summary: Qt GUI part for %{name}
Group: System/Emulators/PC
@ -335,6 +336,7 @@ The VirtualBox web server is used to control headless VMs using a browser.
###########################################
%package guest-tools
Summary: VirtualBox guest tools
Group: System/Emulators/PC
@ -361,6 +363,7 @@ VirtualBox guest addition tools.
###########################################
%package -n python3-%{name}
Summary: Python bindings for %{name}
Group: Development/Libraries/Python
@ -383,6 +386,7 @@ Python XPCOM bindings to %{name}. Used e.g. by vboxgtk package.
###########################################
%package devel
Summary: Devel files for %{name}
Group: Development/Libraries/Other
@ -400,6 +404,7 @@ Development file for %{name}
###########################################
%package host-source
Summary: Source files for %{name} host kernel modules
Group: Development/Sources
@ -434,6 +439,7 @@ sudo %{_sbindir}/vboxguestconfig
###########################################
%package guest-desktop-icons
Summary: Icons for guest desktop files
Group: System/Emulators/PC
@ -449,6 +455,7 @@ This package contains icons for guest desktop files that were created on the des
###########################################
%package vnc
Summary: VNC desktop sharing
Group: System/Emulators/PC