[packages/VirtualBox] patch for kernel 4.10

atler atler at pld-linux.org
Wed Mar 1 00:37:42 CET 2017


commit 11c555edb989f420e4fd606a326c52da7c6d715b
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Mar 1 00:37:21 2017 +0100

    patch for kernel 4.10

 VirtualBox-kernel-4.10.patch | 13 +++++++++++++
 VirtualBox.spec              |  2 ++
 2 files changed, 15 insertions(+)
---
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, at VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \
 	-e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in
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)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/VirtualBox.git/commitdiff/11c555edb989f420e4fd606a326c52da7c6d715b



More information about the pld-cvs-commit mailing list