1
0
forked from pool/virtualbox

- Fix builds for kernel 4.19-rc1. File "fixes_for_4.19.patch" is added.

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=442
This commit is contained in:
Larry Finger 2018-08-30 15:11:52 +00:00 committed by Git OBS Bridge
parent a3af852450
commit fbf48998d6
3 changed files with 24 additions and 0 deletions

16
fixes_for_4.19.patch Normal file
View File

@ -0,0 +1,16 @@
Index: VirtualBox-5.2.18/src/VBox/Additions/linux/drm/vbox_mode.c
===================================================================
--- VirtualBox-5.2.18.orig/src/VBox/Additions/linux/drm/vbox_mode.c
+++ VirtualBox-5.2.18/src/VBox/Additions/linux/drm/vbox_mode.c
@@ -703,7 +703,11 @@ static int vbox_connector_init(struct dr
drm_connector_register(connector);
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)
+ drm_connector_attach_encoder(connector, encoder);
+#else
drm_mode_connector_attach_encoder(connector, encoder);
+#endif
return 0;
}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Aug 30 15:11:17 UTC 2018 - Larry Finger <Larry.Finger@gmail.com>
- Fix builds for kernel 4.19-rc1. File "fixes_for_4.19.patch" is added.
-------------------------------------------------------------------
Wed Aug 15 16:06:01 UTC 2018 - Larry.Finger@gmail.com

View File

@ -134,6 +134,8 @@ Patch125: fixes_for_Qt5.11.patch
Patch126: switch_to_python3.6.patch
# Fix 32-bit builds
Patch127: fix_32_bit_builds.patch
# Fix API changes for kernel 4.19+
Patch128: fixes_for_4.19.patch
#
BuildRequires: LibVNCServer-devel
BuildRequires: SDL-devel
@ -435,6 +437,7 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL.
%patch125 -p1
%patch126 -p1
%patch127 -p1
%patch128 -p1
#copy user manual
cp %{SOURCE1} UserManual.pdf