summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sbraz@gentoo.org>2021-02-22 20:50:21 +0100
committerLouis Sautier <sbraz@gentoo.org>2021-02-22 20:53:05 +0100
commitf9d40ea3a468742fafb3dc6cd5071ba1126b5133 (patch)
treed7ecd3c8ed97caeb58fd0b3168fe1d5e3484feac /app-emulation/virtualbox-modules
parentsys-cluster/kube-scheduler: remove 1.20.1 (diff)
downloadgentoo-f9d40ea3a468742fafb3dc6cd5071ba1126b5133.tar.gz
gentoo-f9d40ea3a468742fafb3dc6cd5071ba1126b5133.tar.bz2
gentoo-f9d40ea3a468742fafb3dc6cd5071ba1126b5133.zip
app-emulation/virtualbox-modules: fix build with kernel 5.11
Closes: https://bugs.gentoo.org/762994 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Louis Sautier <sbraz@gentoo.org>
Diffstat (limited to 'app-emulation/virtualbox-modules')
-rw-r--r--app-emulation/virtualbox-modules/files/virtualbox-modules-6.1.18-kernel-5.11.ebuild16
-rw-r--r--app-emulation/virtualbox-modules/virtualbox-modules-6.1.18.ebuild4
2 files changed, 20 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-modules/files/virtualbox-modules-6.1.18-kernel-5.11.ebuild b/app-emulation/virtualbox-modules/files/virtualbox-modules-6.1.18-kernel-5.11.ebuild
new file mode 100644
index 000000000000..844e37e9fda7
--- /dev/null
+++ b/app-emulation/virtualbox-modules/files/virtualbox-modules-6.1.18-kernel-5.11.ebuild
@@ -0,0 +1,16 @@
+Fixes build with kernel 5.11.
+
+Bug: https://www.virtualbox.org/ticket/20198
+Bug: https://bugs.gentoo.org/762994
+From: jospezial@gmx.de
+
+--- a/vboxnetflt/linux/VBoxNetFlt-linux.c
++++ b/vboxnetflt/linux/VBoxNetFlt-linux.c
+@@ -38,6 +38,7 @@
+ #include <linux/nsproxy.h>
+ #endif
+ #include <linux/netdevice.h>
++#include <linux/ethtool.h>
+ #include <linux/etherdevice.h>
+ #include <linux/rtnetlink.h>
+ #include <linux/miscdevice.h>
diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-6.1.18.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-6.1.18.ebuild
index a884e1456d03..bbc7f312dbe5 100644
--- a/app-emulation/virtualbox-modules/virtualbox-modules-6.1.18.ebuild
+++ b/app-emulation/virtualbox-modules/virtualbox-modules-6.1.18.ebuild
@@ -29,6 +29,10 @@ MODULESD_VBOXDRV_ENABLED="yes"
MODULESD_VBOXNETADP_ENABLED="no"
MODULESD_VBOXNETFLT_ENABLED="no"
+PATCHES=(
+ "${FILESDIR}/${P}-linux-5.11.patch" #762994
+)
+
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"