[packages/vpb-driver] - build fix for kernel 5.17, rel 8
baggins
baggins at pld-linux.org
Sat Apr 2 22:22:20 CEST 2022
commit 571cdb94b0ae24f7715ba46392d2bce503dd142e
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Apr 2 22:22:03 2022 +0200
- build fix for kernel 5.17, rel 8
kernel-5.17.patch | 12 ++++++++++++
vpb-driver.spec | 4 +++-
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/vpb-driver.spec b/vpb-driver.spec
index 38dad07..9b3dc40 100644
--- a/vpb-driver.spec
+++ b/vpb-driver.spec
@@ -21,7 +21,7 @@ exit 1
%define _duplicate_files_terminate_build 0
-%define rel 7
+%define rel 8
%define pname vpb-driver
Summary: Voicetronix voice processing board (VPB) driver software
Summary(pl.UTF-8): Oprogramowanie sterowników dla kart przetwarzających głos (VPB) Voicetronix
@@ -39,6 +39,7 @@ Patch3: kernel-4.14.patch
Patch4: gcc8.patch
Patch5: kernel-5.6.patch
Patch6: kernel-5.13.patch
+Patch7: kernel-5.17.patch
URL: http://www.voicetronix.com.au/downloads.htm#linux
BuildRequires: rpmbuild(macros) >= 1.701
%{?with_kernel:%{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2}}
@@ -153,6 +154,7 @@ p=`pwd`\
%patch4 -p1
%patch5 -p1
%patch6 -p1
+%patch7 -p1
%if %{without kernel}
%{__sed} -i -e 's,subdirs += $(srcdir)/vtcore $(srcdir)/vpb,,' src/Makefile.in
diff --git a/kernel-5.17.patch b/kernel-5.17.patch
new file mode 100644
index 0000000..83eac00
--- /dev/null
+++ b/kernel-5.17.patch
@@ -0,0 +1,12 @@
+--- vpb-driver-4.2.58/src/vtcore/vtcore_main.c~ 2022-04-02 22:16:28.000000000 +0200
++++ vpb-driver-4.2.58/src/vtcore/vtcore_main.c 2022-04-02 22:19:19.064381658 +0200
+@@ -131,6 +131,9 @@
+ return PROC_I(inode)->pde->data;
+ }
+ #endif
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0)
++#define PDE_DATA pde_data
++#endif
+
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(3,8,0)
+ static inline struct inode *file_inode(struct file *f)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vpb-driver.git/commitdiff/571cdb94b0ae24f7715ba46392d2bce503dd142e
More information about the pld-cvs-commit
mailing list