Various dvb-apps fixes and enhancements
Subsystems (2)
PATCH 3/6 dvb-apps: make zap flush stdout after status line
In reply to Jonathan McCrohanBug-Debian: http://bugs.debian.org/357126
--- util/szap/czap.c | 3 ++- util/szap/szap.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
util/szap/czap.c +2 -1
@@ -227,9 +227,10 @@ int monitor_frontend (int fe_fd, int human_readable)if (status &FE_HAS_LOCK )printf ("FE_HAS_LOCK" ); -usleep (1000000 );printf ("\n" ); +fflush (stdout); +usleep (1000000 );if (exit_after_tuning && (status &FE_HAS_LOCK ))break ;
util/szap/szap.c +1 -0
@@ -204,6 +204,7 @@ static int monitor_frontend (int fe_fd, int dvr, int human_readable)if (exit_after_tuning && ((status &FE_HAS_LOCK ) || (++timeout >=10 )))break ; +fflush (stdout);usleep (1000000 ); }while (1 );
Signature · 1 line
1.9.2
PATCH 4/6 dvb-apps: pass LDFLAGS to alevt and lib binaries
In reply to Jonathan McCrohanBased on patch by Tobias Grimm in Debian's dvb-apps 1.1.1+rev1500-1 package.
Description: Use LDFLAGS passed in from dpkg-buildflags
The alevt and lib binaries are not linked with the hardening options provided by dpkg-buildflags because LDFLAGS isn't used there. This patch simple adds the LDFLAGS to the Makefiles.
Author: Tobias Grimm <[email protected]>
Date: Thu, 19 Sep 2013 23:04:58 +0200
--- Make.rules | 4 ++-- util/alevt/Makefile | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
Make.rules +2 -2
@@ -46,7 +46,7 @@ ifeq ($(V),1) %: %.c $(CC) $(CPPFLAGS) $(CFLAGS) -MMD $(LDFLAGS) -o $@ $< $(filter-out %.h %.c,$^) $(LOADLIBES) $(LDLIBS) %.so: - $(CC) -shared -o $@ $^ + $(CC) -shared $(LDFLAGS) -o $@ $^ %.a: $(AR) rcs $@ $^ clean::
@@ -76,7 +76,7 @@ else @$(CC) $(CPPFLAGS) $(CFLAGS) -MMD $(LDFLAGS) -o $@ $< $(filter-out %.h %.c,$^) $(LOADLIBES) $(LDLIBS) %.so: @echo CC $@ - @$(CC) -shared -o $@ $^ + @$(CC) -shared $(LDFLAGS) -o $@ $^ %.a: @echo AR $@ @$(AR) rcs $@ $^
util/alevt/Makefile +3 -3
@@ -25,13 +25,13 @@ endif all: alevt alevt-date alevt-cap alevt.1 alevt-date.1 alevt-cap.1 alevt: $(OBJS) - $(CC) $(OPT) $(OBJS) -o alevt -L$(PREFIX)/lib -L$(PREFIX)/lib64 -lX11 $(EXPLIBS) + $(CC) $(OPT) $(OBJS) $(LDFLAGS) -o alevt -L$(PREFIX)/lib -L$(PREFIX)/lib64 -lX11 $(EXPLIBS) alevt-date: $(TOBJS) - $(CC) $(OPT) $(TOBJS) -o alevt-date $(ZVBILIB) + $(CC) $(OPT) $(TOBJS) $(LDFLAGS) -o alevt-date $(ZVBILIB) alevt-cap: $(COBJS) - $(CC) $(OPT) $(COBJS) -o alevt-cap $(EXPLIBS) + $(CC) $(OPT) $(COBJS) $(LDFLAGS) -o alevt-cap $(EXPLIBS) font.o: font1.xbm font2.xbm font3.xbm font4.xbm fontsize.h: font1.xbm font2.xbm font3.xbm font4.xbm
Signature · 1 line
1.9.2
PATCH 1/6 dvb-apps: fix typos throughout the dvb-apps tree
In reply to Jonathan McCrohanAs found by Debian's Lintian tool.
--- lib/libdvben50221/en50221_transport.c | 4 ++-- lib/libdvbsec/dvbsec_cfg.h | 2 +- util/alevt/exp-gfx.c | 2 +- util/dib3000-watch/dib3000-watch.c | 2 +- util/dvbscan/dvbscan.c | 2 +- util/scan/scan.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-)
lib/libdvben50221/en50221_transport.c +2 -2
@@ -929,7 +929,7 @@ static int en50221_tl_process_data(struct en50221_transport_layer *tl,break ;default :LOG_LEVEL ,ERROR ,1 , -"Recieved unexpected TPDU tag %02x from module on slot %02x\n" , +"Received unexpected TPDU tag %02x from module on slot %02x\n" , tpdu_tag, slot_id); tl->error_slot = slot_id; tl->error =EN50221ERR_BADCAMDATA ;
@@ -1226,7 +1226,7 @@ static int en50221_tl_handle_sb(struct en50221_transport_layer *tl,// did we get enough data in the T_SB? if (data_length !=1 ) {LOG_LEVEL ,ERROR ,1 , -"Recieved T_SB with invalid length from module on slot %02x\n" , +"Received T_SB with invalid length from module on slot %02x\n" , slot_id); tl->error_slot = slot_id; tl->error =EN50221ERR_BADCAMDATA ;
lib/libdvbsec/dvbsec_cfg.h +1 -1
@@ -81,7 +81,7 @@* * The cmd-<lo|hi>-<v|h|l|r> describes the SEC cmd string to use in advanced mode for each of the possible combinations of * frequency band and polarisation. If a certain combination is not required, it may be omitted. It consists of a -* space seperated combination of commands - those available are as follows: +* space separated combination of commands - those available are as follows: * * tone(<0|1>) - control the 22kHz tone 0:off, 1:on * voltage(<0|13|18>) - control the LNB voltage 0v, 13v, or 18v
util/alevt/exp-gfx.c +1 -1
@@ -123,7 +123,7 @@ static int ppm_output(struct export *e, char *name, struct fmt_page *pg) {if (!fwrite (rgb1[(int ) *(colour_matrix+n)],3 ,1 , fp)) { -export_error ("error while writting to file" ); +export_error ("error while writing to file" );free (colour_matrix);fclose (fp);return -1 ;
util/dib3000-watch/dib3000-watch.c +1 -1
@@ -285,7 +285,7 @@ int main (int argc, char * const argv[])break ;default : interrupted=1 ; -err ("no monitoring writting for this demod, yet.\n" ); +err ("no monitoring writing for this demod, yet.\n" ); }usleep ((int ) (intervall *1000000 )); }
util/dvbscan/dvbscan.c +1 -1
@@ -77,7 +77,7 @@ static void usage(void)" -inversion <on|off|auto> Specify inversion (default: auto) (note: this option is ignored).\n" " -uk-ordering Use UK DVB-T channel ordering if present (note: this option is ignored).\n" " -timeout <secs> Specify filter timeout to use (standard specced values will be used by default)\n" -" -filter <filter> Specify service filter, a comma seperated list of the following tokens:\n" +" -filter <filter> Specify service filter, a comma separated list of the following tokens:\n" " (If no filter is supplied, all services will be output)\n" " * tv - Output TV channels\n" " * radio - Output radio channels\n"
util/scan/scan.c +1 -1
@@ -1560,7 +1560,7 @@ static int parse_section (struct section_buf *s) buf +=8 ;/* past generic table header */ section_length -=5 +4 ;/* header + crc */ if (section_length <0 ) { -warning ("truncated section (PID 0x%04x, lenght %d)" , +warning ("truncated section (PID 0x%04x, length %d)" , s->pid, section_length +9 );return 0 ; }
Signature · 1 line
1.9.2
cover Various dvb-apps fixes and enhancements
Hi,
The following patch set contains various fixes and enhancements found during the packaging of the next version of Debian's dvb-apps package.
A number of these patches have lived as Debian specific patches for a long time, however, there is no reason not to upstream them for everyone's benefit.
Jon
Jonathan McCrohan (6):
dvb-apps: fix typos throughout the dvb-apps tree
dvbscan: fix infinite loop parsing arguments
dvb-apps: make zap flush stdout after status line
dvb-apps: pass LDFLAGS to alevt and lib binaries
alevt: fix FTBFS with libpng15
dvb-apps: add man pages
Make.rules | 5 ++- Makefile | 1 + lib/libdvben50221/en50221_transport.c | 4 +- lib/libdvbsec/dvbsec_cfg.h | 2 +- man/Makefile | 13 ++++++ man/atsc_epg.1 | 35 +++++++++++++++ man/av7110_loadkeys.1 | 26 +++++++++++ man/azap.1 | 35 +++++++++++++++ man/czap.1 | 46 +++++++++++++++++++ man/dib3000-watch.1 | 34 ++++++++++++++ man/dst_test.1 | 41 +++++++++++++++++ man/dvbdate.1 | 38 ++++++++++++++++ man/dvbnet.1 | 38 ++++++++++++++++ man/dvbscan.1 | 72 +++++++++++++++++++++++++++++ man/dvbtraffic.1 | 26 +++++++++++ man/femon.1 | 32 +++++++++++++ man/gnutv.1 | 79 ++++++++++++++++++++++++++++++++ man/gotox.1 | 33 ++++++++++++++ man/lsdvb.1 | 9 ++++ man/scan.1 | 85 +++++++++++++++++++++++++++++++++++ man/szap.1 | 57 +++++++++++++++++++++++ man/tzap.1 | 56 +++++++++++++++++++++++ man/zap.1 | 44 ++++++++++++++++++ util/alevt/Makefile | 6 +-- util/alevt/exp-gfx.c | 3 +- util/dib3000-watch/dib3000-watch.c | 2 +- util/dvbscan/dvbscan.c | 3 +- util/scan/scan.c | 2 +- util/szap/czap.c | 3 +- util/szap/szap.c | 1 + 30 files changed, 818 insertions(+), 13 deletions(-) create mode 100644 man/Makefile create mode 100644 man/atsc_epg.1 create mode 100644 man/av7110_loadkeys.1 create mode 100644 man/azap.1 create mode 100644 man/czap.1 create mode 100644 man/dib3000-watch.1 create mode 100644 man/dst_test.1 create mode 100644 man/dvbdate.1 create mode 100644 man/dvbnet.1 create mode 100644 man/dvbscan.1 create mode 100644 man/dvbtraffic.1 create mode 100644 man/femon.1 create mode 100644 man/gnutv.1 create mode 100644 man/gotox.1 create mode 100644 man/lsdvb.1 create mode 100644 man/scan.1 create mode 100644 man/szap.1 create mode 100644 man/tzap.1 create mode 100644 man/zap.1
Signature · 1 line
1.9.2
PATCH 5/6 alevt: fix FTBFS with libpng15
libpng15 no longer includes zlib.h; we must include it ourselves
Bug-Debian: http://bugs.debian.org/742566
--- util/alevt/exp-gfx.c | 1 + 1 file changed, 1 insertion(+)
util/alevt/exp-gfx.c +1 -0
@@ -138,6 +138,7 @@ static int ppm_output(struct export *e, char *name, struct fmt_page *pg)#ifdef WITH_PNG #include <png.h> +#include <zlib.h> static int png_open (struct export *e);static int png_option (struct export *e,int opt,char *arg);static int png_output (struct export *e,char *name,struct fmt_page *pg);
Signature · 1 line
1.9.2
PATCH 6/6 dvb-apps: add man pages
In reply to Jonathan McCrohanAdd man pages written by Uwe Bugla and Tobias Grimm.
Add Makefile written by myself.
Bug-Debian: http://bugs.debian.org/312570
--- Make.rules | 1 + Makefile | 1 + man/Makefile | 13 ++++++++ man/atsc_epg.1 | 35 +++++++++++++++++++++ man/av7110_loadkeys.1 | 26 ++++++++++++++++ man/azap.1 | 35 +++++++++++++++++++++ man/czap.1 | 46 ++++++++++++++++++++++++++++ man/dib3000-watch.1 | 34 +++++++++++++++++++++ man/dst_test.1 | 41 +++++++++++++++++++++++++ man/dvbdate.1 | 38 +++++++++++++++++++++++ man/dvbnet.1 | 38 +++++++++++++++++++++++ man/dvbscan.1 | 72 +++++++++++++++++++++++++++++++++++++++++++ man/dvbtraffic.1 | 26 ++++++++++++++++ man/femon.1 | 32 +++++++++++++++++++ man/gnutv.1 | 79 +++++++++++++++++++++++++++++++++++++++++++++++ man/gotox.1 | 33 ++++++++++++++++++++ man/lsdvb.1 | 9 ++++++ man/scan.1 | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++ man/szap.1 | 57 ++++++++++++++++++++++++++++++++++ man/tzap.1 | 56 +++++++++++++++++++++++++++++++++ man/zap.1 | 44 ++++++++++++++++++++++++++ 21 files changed, 801 insertions(+) create mode 100644 man/Makefile create mode 100644 man/atsc_epg.1 create mode 100644 man/av7110_loadkeys.1 create mode 100644 man/azap.1 create mode 100644 man/czap.1 create mode 100644 man/dib3000-watch.1 create mode 100644 man/dst_test.1 create mode 100644 man/dvbdate.1 create mode 100644 man/dvbnet.1 create mode 100644 man/dvbscan.1 create mode 100644 man/dvbtraffic.1 create mode 100644 man/femon.1 create mode 100644 man/gnutv.1 create mode 100644 man/gotox.1 create mode 100644 man/lsdvb.1 create mode 100644 man/scan.1 create mode 100644 man/szap.1 create mode 100644 man/tzap.1 create mode 100644 man/zap.1
Make.rules +1 -0
@@ -33,6 +33,7 @@ bindir ?= $(prefix)/bin includedir ?= $(prefix)/include libdir ?= $(prefix)/lib sharedir ?= $(prefix)/share +mandir ?= $(prefix)/share/man/man1 ifneq ($(DESTDIR),) DESTDIR := $(DESTDIR)/
Makefile +1 -0
@@ -12,6 +12,7 @@ all clean install: $(MAKE) -C lib $@ $(MAKE) -C test $@ $(MAKE) -C util $@ + $(MAKE) -C man $@ update: @echo "Pulling changes & updating from master repository"
man/Makefile new file +13 -0
@@ -0,0 +1,13 @@ +manpages = *.1 +inst_man = $(manpages) + +.PHONY: install + +include ../Make.rules + +all: + +install:: + @echo installing manpages + @mkdir -p $(DESTDIR)$(mandir) + @install -m 644 $(inst_man) $(DESTDIR)$(mandir)/
man/atsc_epg.1 new file +35 -0
@@ -0,0 +1,35 @@ +.TH atsc_epg 1 "February 14, 2010" +.SH NAME +atsc_epg \- an electronic program guide using ATSC devices. +.SH SYNOPSIS +.B atsc_epg +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B atsc_epg +commands. +.PP +\fBatsc_epg\fP is an electronic program guide for ATSC devices. +.SH OPTIONS +.TP +.B \-a +adapter index to use, (default 0) +.TP +.B \-f +tuning frequency +.TP +.B \-h +print this help text +.TP +.B \-p +period in hours, (default 12) +.TP +.B \-m +modulation ATSC vsb_8|vsb_16 (default vsb_8) +.TP +.B \-t +enable ETT to receive program details, if available +.br +.PP +This manual page was written by Uwe Bugla <[email protected]>.
man/av7110_loadkeys.1 new file +26 -0
@@ -0,0 +1,26 @@ +.TH av7110_loadkeys 1 "February 14, 2010" +.SH NAME +av7110_loadkeys \- a program to load keymaps. +.SH SYNOPSIS +.B av7110_loadkeys +.RI [ options ] keymap_filename.(rc5|rcmm +.br +.SH DESCRIPTION +This manual page documents briefly the +.B av7110_loadkeys +commands. +.PP +\fBav7110_loadkeys\fP is a program to load keymaps. +.SH OPTIONS +.TP +.B \-i +invert +.TP +.B \-a +address <num> +.TP +.B \-h +print this help text +.br +.PP +This manual page was written by Uwe Bugla <[email protected]>.
man/azap.1 new file +35 -0
@@ -0,0 +1,35 @@ +.TH azap 1 "February 14, 2010" +.SH NAME +azap \- a program to process channels.conf files. +.SH SYNOPSIS +.B azap +.RI [ options ] <channel name> +.br +.SH DESCRIPTION +This manual page documents briefly the +.B azap +commands. +.PP +\fBazap\fP is a program to process a channels.conf file. +.SH OPTIONS +.TP +.B \-a adapter_num +use given adapter (default 0) +.TP +.B \-f frontend_id +use given frontend (default 0) +.TP +.B \-d demux_id +use given demux (default 0) +.TP +.B \-c conf_file +read channels list from 'file' +.TP +.B \-r +set up /dev/dvb/adapterX/dvr0 for TS recording +.TP +.B \-h +print this help text +.br +.PP +This manual page was written by Uwe Bugla <[email protected]>.
man/czap.1 new file +46 -0
46 lines not on this page · raw message
man/dib3000-watch.1 new file +34 -0
@@ -0,0 +1,34 @@ +.TH dib3000-watch 1 "February 14, 2010" +.SH NAME +dib3000-watch \- a program to check DVB cards. +.SH SYNOPSIS +.B dib3000-watch +.RI [ options ] <channel name> +.br +.SH DESCRIPTION +This manual page documents briefly the +.B dib3000-watch +commands. +.PP +\fBdib3000-watch\fP is a program to check DVB cards. +.SH OPTIONS +.TP +.B \-d <i2c-device> +\-d: normally one of /dev/i2c-[0-255] +.TP +.B \-a <i2c-address> +\-a: is 8 for DiB3000M-B and 9, 10, 11 or 12 for DiB3000M-C or DiB3000-P +.TP +.B \-o <type> +\-o: output type (print|csv) (default: print) +.TP +.B \-i <seconds> +\-i: query interval in seconds (default: 0.1) +.TP +.B \-h +print this help text +.br +.SH AUTHOR +Copyright (C) 2005 by Patrick Boettcher <[email protected]> +.PP +This manual page was written by Uwe Bugla <[email protected]>.
man/dst_test.1 new file +41 -0
41 lines not on this page · raw message
man/dvbdate.1 new file +38 -0
@@ -0,0 +1,38 @@ +.TH dvbdate 1 "February 14, 2010" +.SH NAME +dvbdate \- a program to show the actual time. +.SH SYNOPSIS +.B dvbdate +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B dvbdate +commands. +.PP +\fBdvbdate\fP is a program to show the actual time. +.SH OPTIONS +.TP +.B \-a --adapter +adapter to use, default: 0 +.TP +.B \-p --print +print current time, received time and delta +.TP +.B \-s --set +set the system clock to received time +.TP +.B \-f --force +force the setting of the clock +.TP +.B \-q --quiet +be silent +.TP +.B \-h --help +display this message +.TP +.B \-t --timeout n +max seconds to wait, default: 25 +.br +.PP +This manual page was written by Uwe Bugla <[email protected]>.
man/dvbnet.1 new file +38 -0
@@ -0,0 +1,38 @@ +.TH dvbnet 1 "February 14, 2009" +.SH NAME +dvbnet \- a DVB Network Interface Manager. +.SH SYNOPSIS +.B dvbnet +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B dvbnet +commands. +.PP +\fBdvbnet\fP is a DVB Network Interface Manager. +.SH OPTIONS +.TP +.B \-a AD +Adapter card (default 0) +.TP +.B \-n DD +Demux (default 0) +.TP +.B \-p PID +Add interface listening on PID +.TP +.B \-d NUM +Remove interface NUM +.TP +.B \-l +List currently available interfaces +.TP +.B \-U +use ULE framing (default: MPE) +.TP +.B \-v +Print current version +.br +.PP +This manual page was written by Uwe Bugla <[email protected]>.
man/dvbscan.1 new file +72 -0
72 lines not on this page · raw message
man/dvbtraffic.1 new file +26 -0
@@ -0,0 +1,26 @@ +.TH dvbtraffic 1 "February 14, 2010" +.SH NAME +dvbtraffic \- a program to show satellite traffic. +.SH SYNOPSIS +.B dvbtraffic +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B dvbtraffic +commands. +.PP +\fBdvbtraffic\fP is a program to show satellite traffic. +.SH OPTIONS +.TP +.B \-a N +use dvb adapter N +.TP +.B \-d N +use demux N +.TP +.B \-h +display this help +.br +.PP +This manual page was written by Uwe Bugla <[email protected]>.
man/femon.1 new file +32 -0
@@ -0,0 +1,32 @@ +.TH femon 1 "February 14, 2010" +.SH NAME +femon \- a program to monitor DVB frontend signal input. +.SH SYNOPSIS +.B femon +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B femon +commands. +.PP +\fBfemon\fP is a program to monitor DVB frontend signal input. +.SH OPTIONS +.TP +.B \-h +print this help text +.TP +.B \-H +human readable output +.TP +.B \-a number +use given adapter (default 0) +.TP +.B \-f number +use given frontend (default 0) +.TP +.B \-c number +samples to take (default 0 = infinite) +.br +.PP +This manual page was written by Uwe Bugla <[email protected]>.
man/gnutv.1 new file +79 -0
79 lines not on this page · raw message
man/gotox.1 new file +33 -0
@@ -0,0 +1,33 @@ +.TH gotox 1 "February 14, 2010" +.SH NAME +gotox \- a program to operate a rotor of a satellite dish. +.SH SYNOPSIS +.B gotox +.RI [ options ] +.br +.SH DESCRIPTION +This manual page documents briefly the +.B gotox +commands. +.PP +\fBgotox \fP is a program to operate a rotor set to tune a satellite dish. +.SH OPTIONS +.TP +.B \-h +print this help text +.TP +.B \-d degrees +Goto the specified angle. Positive value for East rotation, +negative value for West rotation on Northern Hemisphere (default 0) +.TP +.B \-a number +use given adapter (default 0) +.TP +.B \-f number +use given frontend (default 0) +.TP +.B \-t seconds +leave power on to rotor for at least specified seconds of time (default 30) +.br +.PP +This manual page was written by Uwe Bugla <[email protected]>.
man/lsdvb.1 new file +9 -0
@@ -0,0 +1,9 @@ +.TH lsdvb 1 "September February 19, 2013" +.SH NAME +lsdvb \- a simple utility to list PCI/PCIe DVB devices +.SH SYNOPSIS +.B lsdvb +.br +.SH DESCRIPTION +.B lsdvb +lists all available PCI/PCIe DVB devices.
man/scan.1 new file +85 -0
85 lines not on this page · raw message
man/szap.1 new file +57 -0
57 lines not on this page · raw message
man/tzap.1 new file +56 -0
56 lines not on this page · raw message
man/zap.1 new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
1.9.2
PATCH 2/6 dvbscan: fix infinite loop parsing arguments
In reply to Jonathan McCrohanReproducible using 'dvbscan -out raw - some_file'
Bug-Debian: http://bugs.debian.org/606728
--- util/dvbscan/dvbscan.c | 1 + 1 file changed, 1 insertion(+)
util/dvbscan/dvbscan.c +1 -0
@@ -198,6 +198,7 @@ int main(int argc, char *argv[]) }else if (!strcmp (argv[argpos],"-out" )) {if ((argc - argpos) <3 )usage (); + argpos+=3 ; }else {if ((argc - argpos) !=1 )usage ();
Signature · 1 line
1.9.2
Hi,
Quoted 6 lines · Jonathan McCrohan
The following patch set contains various fixes and enhancements found during the packaging of the next version of Debian's dvb-apps package.
A number of these patches have lived as Debian specific patches for a long time, however, there is no reason not to upstream them for everyone's benefit.
Any thoughts on whether this patchset could be applied?
Thanks,
Jon