[packages/vpb-driver] - rel 3 - fix building with kernel 4.12 - only build userspace from main Makefile

baggins baggins at pld-linux.org
Tue Aug 1 10:56:08 CEST 2017


commit be35dc3996d2b8db2c7604e903268f63e9c422b0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Aug 1 10:55:43 2017 +0200

    - rel 3
    - fix building with kernel 4.12
    - only build userspace from main Makefile

 linux-4.12.patch     | 12 ++++++++++++
 userspace-only.patch | 12 ++++++++++++
 vpb-driver.spec      |  6 +++++-
 3 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/vpb-driver.spec b/vpb-driver.spec
index 5eb225a..8dae74d 100644
--- a/vpb-driver.spec
+++ b/vpb-driver.spec
@@ -21,7 +21,7 @@ exit 1
 
 %define		_duplicate_files_terminate_build	0
 
-%define	rel	2
+%define		rel	3
 %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
@@ -33,6 +33,8 @@ Group:		Libraries
 Source0:	http://www.voicetronix.com.au/Downloads/vpb-driver-4.x/%{pname}-%{version}.tar.gz
 # Source0-md5:	f8c85b52e8d01b04d86632e98ac59d19
 Patch0:		%{pname}-make.patch
+Patch1:		userspace-only.patch
+Patch2:		linux-4.12.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}}
@@ -139,6 +141,8 @@ p=`pwd`\
 %prep
 %setup -q -n %{pname}-%{version}
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %if %{without kernel}
 %{__sed} -i -e 's,subdirs += $(srcdir)/vtcore $(srcdir)/vpb,,' src/Makefile.in
diff --git a/linux-4.12.patch b/linux-4.12.patch
new file mode 100644
index 0000000..724a547
--- /dev/null
+++ b/linux-4.12.patch
@@ -0,0 +1,12 @@
+--- vpb-driver-4.2.58/src/vpb/vpb.c~	2014-09-28 20:02:28.000000000 +0200
++++ vpb-driver-4.2.58/src/vpb/vpb.c	2017-08-01 10:53:58.063093297 +0200
+@@ -121,6 +121,9 @@
+ #include <linux/pci.h>
+ #include <linux/delay.h>
+ #include <asm/uaccess.h>
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
++#include <linux/uaccess.h>
++#endif
+ 
+ 
+ #if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,9)
diff --git a/userspace-only.patch b/userspace-only.patch
new file mode 100644
index 0000000..189b16c
--- /dev/null
+++ b/userspace-only.patch
@@ -0,0 +1,12 @@
+--- vpb-driver-4.2.58/src/Makefile.in~	2014-09-28 20:02:28.000000000 +0200
++++ vpb-driver-4.2.58/src/Makefile.in	2017-08-01 10:46:21.869784413 +0200
+@@ -7,9 +7,6 @@
+ include $(top_builddir)/Makefile.common
+ 
+ subdirs = libtoneg libvpb utils
+-ifeq ($(HOST_OS),linux)
+-subdirs += $(srcdir)/vtcore $(srcdir)/vpb
+-endif
+ 
+ all: JBS = $(NJOBS)
+ all install: $(top_srcdir)/Version
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vpb-driver.git/commitdiff/be35dc3996d2b8db2c7604e903268f63e9c422b0



More information about the pld-cvs-commit mailing list