From f09f52cfeaaf6e20d68060c090ca726dc4264856 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 28 Feb 2017 14:42:24 +0100 Subject: [PATCH] virtualbox-ose: add patch for linux 4.10 (via Arch) Closes #5854. --- .../patches/009-linux-4-10.patch | 22 +++++++++++++++++++ srcpkgs/virtualbox-ose/template | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/virtualbox-ose/patches/009-linux-4-10.patch diff --git a/srcpkgs/virtualbox-ose/patches/009-linux-4-10.patch b/srcpkgs/virtualbox-ose/patches/009-linux-4-10.patch new file mode 100644 index 00000000000..e3305fc0652 --- /dev/null +++ b/srcpkgs/virtualbox-ose/patches/009-linux-4-10.patch @@ -0,0 +1,22 @@ +From d9bd947b1fa1d7c47cd1cdb894dadfa07f51e446 Mon Sep 17 00:00:00 2001 +From: vboxsync +Date: Tue, 24 Jan 2017 08:13:25 +0000 +Subject: [PATCH] Additions/linux/sharedfolders: Linux 4.10 fix + +git-svn-id: http://www.virtualbox.org/svn/vbox@65409 cfe28804-0f27-0410-a406-dd0f0b0b656f +--- + trunk/src/VBox/Additions/linux/sharedfolders/lnkops.c | 2 ++ + 1 file changed, 2 insertions(+) + +--- src/VBox/Additions/linux/sharedfolders/lnkops.c.orig ++++ src/VBox/Additions/linux/sharedfolders/lnkops.c +@@ -90,7 +90,9 @@ static const char *sf_get_link(struct dentry *dentry, struct inode *inode, + + 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/srcpkgs/virtualbox-ose/template b/srcpkgs/virtualbox-ose/template index fe7299823f5..6c0e1e47d36 100644 --- a/srcpkgs/virtualbox-ose/template +++ b/srcpkgs/virtualbox-ose/template @@ -1,7 +1,7 @@ # Template file for 'virtualbox-ose' pkgname=virtualbox-ose version=5.1.14 -revision=1 +revision=2 wrksrc="VirtualBox-${version}" short_desc="General-purpose full virtualizer for x86 hardware" maintainer="Juan RP "