[packages/dahdi-linux] - fix building with kernel 4.9.256 - rel 5
baggins
baggins at pld-linux.org
Sat Feb 6 20:31:58 CET 2021
commit a80a7846e4870f44e85395ca98bf602432aed347
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Feb 6 20:31:30 2021 +0100
- fix building with kernel 4.9.256
- rel 5
dahdi-linux.spec | 4 +++-
kernel-4.9.256.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/dahdi-linux.spec b/dahdi-linux.spec
index 6cbeab9..a9157ea 100644
--- a/dahdi-linux.spec
+++ b/dahdi-linux.spec
@@ -35,7 +35,7 @@ exit 1
%define _enable_debug_packages 0
%endif
-%define rel 4
+%define rel 5
%define pname dahdi-linux
%define FIRMWARE_URL http://downloads.digium.com/pub/telephony/firmware/releases
Summary: DAHDI telephony device support
@@ -62,6 +62,7 @@ Patch1: kernel-5.4.patch
Patch2: math64.patch
Patch3: kernel-5.6.patch
Patch4: kernel-5.9.patch
+Patch5: kernel-4.9.256.patch
URL: http://www.asterisk.org/
%{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
BuildRequires: perl-base
@@ -166,6 +167,7 @@ cd ../..\
%endif
%patch3 -p1
%patch4 -p1
+%patch5 -p1
for a in %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7}; do
ln -s $a drivers/dahdi/firmware
diff --git a/kernel-4.9.256.patch b/kernel-4.9.256.patch
new file mode 100644
index 0000000..04728f5
--- /dev/null
+++ b/kernel-4.9.256.patch
@@ -0,0 +1,11 @@
+--- dahdi-linux-3.1.0/include/dahdi/kernel.h~ 2021-02-06 20:19:28.000000000 +0100
++++ dahdi-linux-3.1.0/include/dahdi/kernel.h 2021-02-06 20:27:57.430773118 +0100
+@@ -1427,7 +1427,7 @@
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ #define refcount_read atomic_read
+
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 10, 0)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0)
+ #define dahdi_ktime_equal ktime_equal
+
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 0, 0)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dahdi-linux.git/commitdiff/a80a7846e4870f44e85395ca98bf602432aed347
More information about the pld-cvs-commit
mailing list