Bug 557580

Summary: czap fails to parse channel config
Product: [Fedora] Fedora Reporter: Ville Skyttä <ville.skytta>
Component: dvb-appsAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: mlh, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.1.1-20.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-09 05:03:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ville Skyttä 2010-01-21 21:06:15 UTC
Redirecting from private mail:

----
I'am trying to get my TechnoTrend C1501 dvb-c tuner card work under 
fedora 12. While at it i ran in to a error of czap.

czap -c ~/.czap/czap-final.txt "Nederland 1"
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
  84 Nederland 1:388000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:88:89:8004
ERROR: cannot parse service data

At the v4l-dvb mailing list i got the following awnser:

[quote]
The czap utility (dvb-apps/util/szap/czap.c) cannot scan the channel
configuration file when compiled on Fedora 12 with gcc-4.4.2.
Problem is tha the "sscanf" function uses the "%a[^:]" format
specifier. According to "man sscanf" you need to define _GNU_SOURCE if
you want this to work because it is a gnu-only extension.
Adding a first line "#define _GNU_SOURCE" to czap.c and recompiling
solves the problem.
[/quote]
----

Upstream bug report: http://thread.gmane.org/gmane.linux.drivers.video-input-infrastructure/14331

Comment 1 Fedora Update System 2010-01-21 21:32:57 UTC
dvb-apps-1.1.1-20.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/dvb-apps-1.1.1-20.fc12

Comment 2 Fedora Update System 2010-01-22 22:33:27 UTC
dvb-apps-1.1.1-20.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dvb-apps'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0897

Comment 3 Fedora Update System 2010-02-09 05:03:23 UTC
dvb-apps-1.1.1-20.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 4 Matthew Hannigan 2010-02-23 18:15:40 UTC
I'm still getting the error.

$ rpm -q dvb-apps
dvb-apps-1.1.1-20.fc12.i686
$ czap -c mychannels.conf -n 2 -r
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
  2 ABC1:226500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:512:650:545
ERROR: cannot parse service data

Comment 5 Matthew Hannigan 2010-02-23 18:35:55 UTC
(In reply to comment #4)
> I'm still getting the error. [ ... ]

I guess I should be using tzap not czap.
Seems to working now.