From: Jan Palus Date: Tue, 28 Feb 2017 23:37:21 +0000 (+0100) Subject: patch for kernel 4.10 X-Git-Tag: auto/th/VirtualBox-5.1.16-2~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2FVirtualBox.git;a=commitdiff_plain;h=11c555e;ds=sidebyside patch for kernel 4.10 --- diff --git a/VirtualBox-kernel-4.10.patch b/VirtualBox-kernel-4.10.patch new file mode 100644 index 0000000..e5dbb8d --- /dev/null +++ b/VirtualBox-kernel-4.10.patch @@ -0,0 +1,13 @@ +diff -urN VirtualBox-5.1.14.orig/src/VBox/Additions/linux/sharedfolders/lnkops.c VirtualBox-5.1.14/src/VBox/Additions/linux/sharedfolders/lnkops.c +--- VirtualBox-5.1.14.orig/src/VBox/Additions/linux/sharedfolders/lnkops.c 2017-03-01 00:11:16.018923166 +0100 ++++ VirtualBox-5.1.14/src/VBox/Additions/linux/sharedfolders/lnkops.c 2017-03-01 00:12:22.178411297 +0100 +@@ -90,7 +90,9 @@ + + struct inode_operations sf_lnk_iops = + { ++# if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0) + .readlink = generic_readlink, ++# endif + # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 5, 0) + .get_link = sf_get_link + # elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) diff --git a/VirtualBox.spec b/VirtualBox.spec index d800b6e..851f910 100644 --- a/VirtualBox.spec +++ b/VirtualBox.spec @@ -82,6 +82,7 @@ Patch14: %{pname}-no-scrextend.patch Patch15: %{pname}-multipython.patch Patch16: %{pname}-lightdm-1.19.2.patch Patch17: %{pname}-no-vboxvideo.patch +Patch18: %{pname}-kernel-4.10.patch URL: http://www.virtualbox.org/ %if %{with userspace} %ifarch %{x8664} @@ -540,6 +541,7 @@ cd ../..\ %patch15 -p0 %patch16 -p0 %patch17 -p0 +%patch18 -p1 %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in