fix build with kernel 5.11; rel 4
authorJan Palus <atler@pld-linux.org>
Tue, 23 Feb 2021 18:38:33 +0000 (19:38 +0100)
committerJan Palus <atler@pld-linux.org>
Tue, 23 Feb 2021 18:38:33 +0000 (19:38 +0100)
VirtualBox.spec
kernel-5.11.patch [new file with mode: 0644]

index 365177d86d72151cdb8b10c5c66263a30f58fb51..6782661b4b5cb4018a5d3f6a0b76cc77b4906f0e 100644 (file)
@@ -47,7 +47,7 @@ exit 1
 
 %define                qtver   5.6.0
 
-%define                rel             3
+%define                rel             4
 %define                pname           VirtualBox
 Summary:       VirtualBox - x86 hardware virtualizer
 Summary(pl.UTF-8):     VirtualBox - wirtualizator sprzętu x86
@@ -89,6 +89,7 @@ Patch16:      %{pname}-no-vboxvideo.patch
 Patch17:       qt5-gl.patch
 Patch18:       32bit.patch
 Patch19:       kernel-4.9.256.patch
+Patch20:       kernel-5.11.patch
 URL:           http://www.virtualbox.org/
 %if %{with userspace}
 %ifarch %{x8664}
@@ -141,7 +142,7 @@ BuildRequires:      kBuild >= 0.1.9998.3093
 BuildRequires: libIDL-devel
 BuildRequires: libcap-static
 BuildRequires: libdrm-devel
-BuildRequires: libpng-devel >= 1.2.5
+BuildRequires: libpng-devel >= 2:1.2.5
 BuildRequires: libstdc++-devel >= 5:3.2.3
 BuildRequires: libstdc++-static >= 5:3.2.3
 BuildRequires: libuuid-devel
@@ -550,6 +551,7 @@ echo override vboxsf %{_kernel_ver} misc >> kernel/installed/etc/depmod.d/%{_ker
 %patch16 -p0
 %patch17 -p1
 %patch18 -p1
+%patch20 -p1
 
 %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \
        -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in
diff --git a/kernel-5.11.patch b/kernel-5.11.patch
new file mode 100644 (file)
index 0000000..06a22df
--- /dev/null
@@ -0,0 +1,12 @@
+--- VirtualBox-6.1.18/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c.orig    2021-01-07 16:41:28.000000000 +0100
++++ VirtualBox-6.1.18/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c 2021-02-23 19:24:57.308526670 +0100
+@@ -39,6 +39,9 @@
+ #endif
+ #include <linux/netdevice.h>
+ #include <linux/etherdevice.h>
++#if RTLNX_VER_MIN(5,11,0)
++#include <linux/ethtool.h>
++#endif
+ #include <linux/rtnetlink.h>
+ #include <linux/miscdevice.h>
+ #include <linux/inetdevice.h>
This page took 0.131052 seconds and 4 git commands to generate.