diff --git a/fixes_for_5.0.patch b/fixes_for_5.0.patch new file mode 100644 index 0000000..f331962 --- /dev/null +++ b/fixes_for_5.0.patch @@ -0,0 +1,15 @@ +Index: VirtualBox-5.2.24/src/VBox/Additions/linux/sharedfolders/vfsmod.c +=================================================================== +--- VirtualBox-5.2.24.orig/src/VBox/Additions/linux/sharedfolders/vfsmod.c ++++ VirtualBox-5.2.24/src/VBox/Additions/linux/sharedfolders/vfsmod.c +@@ -37,6 +37,9 @@ + # include + #endif + #include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) ++#include ++#endif + + MODULE_DESCRIPTION(VBOX_PRODUCT " VFS Module for Host File System Access"); + MODULE_AUTHOR(VBOX_VENDOR); + diff --git a/virtualbox.changes b/virtualbox.changes index 361fdd8..c4f7f09 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 29 15:15:53 UTC 2019 - Larry Finger + +- Part of the API changes for kernel 5.0 are not fixed upstream. Add file "fixes_for_5.0" back in. + ------------------------------------------------------------------- Mon Jan 28 20:29:22 UTC 2019 - Larry Finger diff --git a/virtualbox.spec b/virtualbox.spec index 176b85f..2609776 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -125,6 +125,8 @@ Patch123: switch_to_python3.4+.patch Patch124: fix_32_bit_builds.patch # Use build parameters to control video driver problems Patch125: remove_vbox_video_build.patch +# Fix for API changes in late v5.0 +Patch126: fixes_for_5.0 # fix library search Patch128: fix_lib_search.patch # Fixes for modified kernel in Leap 15.1 @@ -428,6 +430,7 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL. %patch123 -p1 %patch124 -p1 %patch125 -p1 +%patch126 -p1 %patch128 -p1 %patch129 -p1