]> git.pld-linux.org Git - packages/dahdi-linux.git/commitdiff
- fix building with kernel 4.9.256 auto/th/dahdi-linux-3.1.0-5
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 6 Feb 2021 19:31:30 +0000 (20:31 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 6 Feb 2021 19:31:30 +0000 (20:31 +0100)
- rel 5

dahdi-linux.spec
kernel-4.9.256.patch [new file with mode: 0644]

index 6cbeab97064a7657dba1e4a6f3ea41cb1938a517..a9157eaa70a8ccc4c238014908df99c3c9308aa9 100644 (file)
@@ -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 (file)
index 0000000..04728f5
--- /dev/null
@@ -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)
This page took 0.058576 seconds and 4 git commands to generate.