From cd06ddeb542ed16dac350a6e40924d5891fd8ffa481c3811572efa62edeab9e8 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Tue, 18 Jul 2017 14:23:30 +0000 Subject: [PATCH] - In kernel 4.13, wait_queue_t => wait_queue_entry_t. File "vbox_fix_for_kernel_4.13.patch" patches the source to account for this change. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=350 --- vbox_fix_for_kernel_4.13.patch | 14 ++++++++++++++ virtualbox.changes | 5 +++++ virtualbox.spec | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 vbox_fix_for_kernel_4.13.patch diff --git a/vbox_fix_for_kernel_4.13.patch b/vbox_fix_for_kernel_4.13.patch new file mode 100644 index 0000000..bb84087 --- /dev/null +++ b/vbox_fix_for_kernel_4.13.patch @@ -0,0 +1,14 @@ +Index: VirtualBox-5.1.22/src/VBox/Runtime/r0drv/linux/waitqueue-r0drv-linux.h +=================================================================== +--- VirtualBox-5.1.22.orig/src/VBox/Runtime/r0drv/linux/waitqueue-r0drv-linux.h ++++ VirtualBox-5.1.22/src/VBox/Runtime/r0drv/linux/waitqueue-r0drv-linux.h +@@ -39,6 +39,9 @@ + * schedule_hrtimeout_range. */ + #define RTR0SEMLNXWAIT_RESOLUTION 50000 + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 13, 0) ++#define wait_queue_t wait_queue_entry_t ++#endif + + /** + * Kernel mode Linux wait state structure. diff --git a/virtualbox.changes b/virtualbox.changes index 7587f30..b0b9811 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 18 14:19:44 UTC 2017 - Larry.Finger@lwfinger.net + +- In kernel 4.13, wait_queue_t => wait_queue_entry_t. File "vbox_fix_for_kernel_4.13.patch" patches the source to account for this change. + ------------------------------------------------------------------- Mon Jul 10 18:22:25 UTC 2017 - Larry.Finger@lwfinger.net diff --git a/virtualbox.spec b/virtualbox.spec index 0ab9d99..e680ee6 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -106,6 +106,8 @@ Patch116: Fix_for_server_1.19.patch Patch117: vbox_fix_for_kernel_4.12.patch # Fix for missing cleanup in KMS support Patch118: fix_KMS_support.patch +# Fix for kernel 4.13 API changes +Patch119: vbox_fix_for_kernel_4.13.patch # BuildRequires: LibVNCServer-devel BuildRequires: SDL-devel @@ -388,6 +390,7 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL. %patch116 -p1 %patch117 -p1 %patch118 -p1 +%patch119 -p1 #copy user manual cp %{SOURCE1} UserManual.pdf