app-emulation/virtualbox-modules: Backport fix for compatibility with linux-4.9
authorJustin Lecher <jlec@gentoo.org>
Sun, 18 Dec 2016 11:41:45 +0000 (12:41 +0100)
committerJustin Lecher <jlec@gentoo.org>
Sun, 18 Dec 2016 11:41:57 +0000 (12:41 +0100)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=602942

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Justin Lecher <jlec@gentoo.org>
app-emulation/virtualbox-modules/files/virtualbox-modules-5.1.10-ALIGN-backport.patch [new file with mode: 0644]
app-emulation/virtualbox-modules/metadata.xml
app-emulation/virtualbox-modules/virtualbox-modules-5.1.10.ebuild

diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-5.1.10-ALIGN-backport.patch b/app-emulation/virtualbox-modules/files/virtualbox-modules-5.1.10-ALIGN-backport.patch
new file mode 100644 (file)
index 0000000..1bc3fdd
--- /dev/null
@@ -0,0 +1,12 @@
+Index: trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h
+===================================================================
+--- a/vboxdrv/SUPDrvInternal.h
++++ b/vboxdrv/SUPDrvInternal.h
+@@ -65,7 +65,4 @@
+ #           include <linux/modversions.h>
+ #       endif
+-#   endif
+-#   if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 0)
+-#       undef ALIGN
+ #   endif
+ #   ifndef KBUILD_STR
index 18da31a25e192087291fcafa2715d8700f2acdac..851d70de80c5bf86552cb5e9e1a90cf0e97e267a 100644 (file)
@@ -9,7 +9,7 @@
     <email>masterzorag@gmail.com</email>
     <description>Proxy maintainer. CC him on bugs</description>
   </maintainer>
-<use>
-       <flag name="pax_kernel">Apply patch needed for pax enabled kernels</flag>
-</use>
+  <use>
+    <flag name="pax_kernel">Apply patch needed for pax enabled kernels</flag>
+  </use>
 </pkgmetadata>
index 76cc8f0e241b67f8f199cdf8af9b704c63996b65..847e3c7ba966f825308cb7b8a2ee9a87db5ec863 100644 (file)
@@ -27,6 +27,10 @@ BUILD_TARGETS="all"
 BUILD_TARGET_ARCH="${ARCH}"
 MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-ALIGN-backport.patch
+)
+
 pkg_setup() {
        enewgroup vboxusers