[packages/dvbtune] don't open dvr device, this only keeps it busy
gotar
gotar at pld-linux.org
Thu Aug 25 00:38:28 CEST 2016
commit 7ca65b5445fb976d57824f9dad415d089bcea5c4
Author: Tomasz Pala <gotar at pld-linux.org>
Date: Thu Aug 25 00:37:52 2016 +0200
don't open dvr device, this only keeps it busy
dvbtune-dvr.patch | 18 ++++++++++++++++++
dvbtune.spec | 4 +++-
2 files changed, 21 insertions(+), 1 deletion(-)
---
diff --git a/dvbtune.spec b/dvbtune.spec
index 5db7cca..62687a7 100644
--- a/dvbtune.spec
+++ b/dvbtune.spec
@@ -2,13 +2,14 @@ Summary: Tuning application for DVB cards
Summary(pl.UTF-8): Aplikacja do strojenia kart DVB
Name: dvbtune
Version: 0.5
-Release: 3
+Release: 4
License: GPL v2+
Group: Networking
Source0: http://downloads.sourceforge.net/dvbtools/%{name}-%{version}.tar.gz
# Source0-md5: 5212564c786f2538db753214e0e21473
Patch0: %{name}-dumb31adapters.patch
Patch1: define-int-types.patch
+Patch2: %{name}-dvr.patch
URL: http://dvbtools.sourceforge.net/
BuildRequires: libxml2-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -23,6 +24,7 @@ Prosta aplikacja do strojenia kart DVB.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__make} %{name} xml2vdr \
diff --git a/dvbtune-dvr.patch b/dvbtune-dvr.patch
new file mode 100644
index 0000000..3d62ffb
--- /dev/null
+++ b/dvbtune-dvr.patch
@@ -0,0 +1,18 @@
+diff -urN dvbtune-0.5a/dvbtune.c dvbtune-0.5/dvbtune.c
+--- dvbtune-0.5a/dvbtune.c 2004-02-11 16:59:19.000000000 +0100
++++ dvbtune-0.5/dvbtune.c 2016-08-25 00:30:22.550994813 +0200
+@@ -1262,13 +1262,13 @@
+ fprintf(stderr,"Invalid parameters\n");
+ exit(-1);
+ }
+-#endif
+
+ if((fd_dvr = open(dvrdev[card],O_RDONLY|O_NONBLOCK)) < 0){
+ fprintf(stderr,"FD %d: ",i);
+ perror("fd_dvr DEMUX DEVICE: ");
+ return -1;
+ }
++#endif
+
+ if((fd_frontend = open(frontenddev[card],O_RDWR)) < 0){
+ fprintf(stderr,"frontend: %d",i);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dvbtune.git/commitdiff/7ca65b5445fb976d57824f9dad415d089bcea5c4
More information about the pld-cvs-commit
mailing list