- up to 8.047.05 auto/th/r8168-8.047.05-1
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 30 Nov 2019 22:57:31 +0000 (23:57 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 30 Nov 2019 22:57:31 +0000 (23:57 +0100)
- fix building with kernel 5.4

kernel-5.4.patch [new file with mode: 0644]
r8168.spec

diff --git a/kernel-5.4.patch b/kernel-5.4.patch
new file mode 100644 (file)
index 0000000..4dfb03c
--- /dev/null
@@ -0,0 +1,11 @@
+--- r8168-8.047.01/src/r8168_n.c~      2019-04-01 17:58:10.000000000 +0200
++++ r8168-8.047.01/src/r8168_n.c       2019-11-30 23:52:41.804500848 +0100
+@@ -56,7 +56,7 @@
+ #include <linux/rtnetlink.h>
+ #include <linux/completion.h>
+-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)) && (LINUX_VERSION_CODE < KERNEL_VERSION(5,4,0))
+ #include <linux/pci-aspm.h>
+ #endif
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37)
index 2ceab7a076765382cab7b2f91e5ec233365c4a0f..e83b2865bb9e8d352b8dfb4a7dacf27264b8d3ff 100644 (file)
@@ -9,7 +9,7 @@
 Summary:       Linux driver for RTL8111/8168B PCI Express Gigabit Ethernet controllers
 Summary(pl.UTF-8):     Linuksowy sterownik dla kart sieciowych RTL8111/8168B PCI Express Gigabit Ethernet
 Name:          %{pname}%{_alt_kernel}
-Version:       8.047.01
+Version:       8.047.05
 Release:       %{rel}%{?_pld_builder:@%{_kernel_ver_str}}
 License:       GPL
 Group:         Base/Kernel
@@ -18,7 +18,8 @@ URL:          http://www.realtek.com.tw/
 # https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software
 # unfortunately this download is not DF-friendly.
 Source0:       %{pname}-%{version}.tar.bz2
-# Source0-md5: 1d4e403cf7fa579b1bd02adc33336cbb
+# Source0-md5: d239300e229061c449848707819c1d0d
+Patch0:                kernel-5.4.patch
 BuildRequires: rpmbuild(macros) >= 1.701
 %{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}
 BuildRoot:     %{tmpdir}/%{pname}-%{version}-root-%(id -u -n)
@@ -70,6 +71,7 @@ Express Gigabit Ethernet.\
 
 %prep
 %setup -q -n %{pname}-%{version}
+%patch0 -p1
 
 %build
 %{expand:%build_kernel_packages}
This page took 0.082245 seconds and 4 git commands to generate.