From: Jan Rękorajski Date: Tue, 1 Aug 2017 08:55:43 +0000 (+0200) Subject: - rel 3 X-Git-Tag: auto/th/vpb-driver-4.2.58-3 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fvpb-driver.git;a=commitdiff_plain;h=be35dc3 - rel 3 - fix building with kernel 4.12 - only build userspace from main Makefile --- 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 + #include + #include ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0)) ++#include ++#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 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