From: Jan Rękorajski Date: Sat, 30 Nov 2019 22:57:31 +0000 (+0100) Subject: - up to 8.047.05 X-Git-Tag: auto/th/r8168-8.047.05-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fr8168.git;a=commitdiff_plain;h=8f8e711 - up to 8.047.05 - fix building with kernel 5.4 --- diff --git a/kernel-5.4.patch b/kernel-5.4.patch new file mode 100644 index 0000000..4dfb03c --- /dev/null +++ b/kernel-5.4.patch @@ -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 + #include + +-#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 + #endif + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,37) diff --git a/r8168.spec b/r8168.spec index 2ceab7a..e83b286 100644 --- a/r8168.spec +++ b/r8168.spec @@ -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}