diff --git a/fixes_for_4.19.patch b/fixes_for_4.19.patch new file mode 100644 index 0000000..3c47a0a --- /dev/null +++ b/fixes_for_4.19.patch @@ -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; + } diff --git a/virtualbox.changes b/virtualbox.changes index ae1a48a..5079f5b 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 30 15:11:17 UTC 2018 - Larry Finger + +- 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 diff --git a/virtualbox.spec b/virtualbox.spec index 8a537af..c9fd420 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -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