Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32838 - tv_grab_na (xmltv 0.5.19) generates error's when run by mythfilldatabase
Summary: tv_grab_na (xmltv 0.5.19) generates error's when run by mythfilldatabase
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-05 19:11 UTC by Steven Elling
Modified: 2003-11-07 09:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Elling 2003-11-05 19:11:18 UTC
mythfilldatabase runs the North American TV grabber (tv_grab_na) and the grabber
generates an error then quits.  This prevents mythfilldatabase from populating
the database with program information.

I am running MythTV Version 0.12 and xmltv Version 0.5.19.

`perl --version' reports the following:

This is perl, v5.8.0 built for i686-linux

Reproducible: Always
Steps to Reproduce:
1. Run mythfilldatabase
Actual Results:  
----------------- Start of XMLTV output -----------------
Can't call method "say" on an undefined value at /usr/bin/tv_grab_na line 535.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Wed Nov 5 2003
----------------- Start of XMLTV output -----------------
Can't call method "say" on an undefined value at /usr/bin/tv_grab_na line 535.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Thu Nov 6 2003
----------------- Start of XMLTV output -----------------
Can't call method "say" on an undefined value at /usr/bin/tv_grab_na line 535.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Fri Nov 7 2003
----------------- Start of XMLTV output -----------------
Can't call method "say" on an undefined value at /usr/bin/tv_grab_na line 535.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Sat Nov 8 2003
----------------- Start of XMLTV output -----------------
Can't call method "say" on an undefined value at /usr/bin/tv_grab_na line 535.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Sun Nov 9 2003
----------------- Start of XMLTV output -----------------
Can't call method "say" on an undefined value at /usr/bin/tv_grab_na line 535.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Mon Nov 10 2003
----------------- Start of XMLTV output -----------------
Can't call method "say" on an undefined value at /usr/bin/tv_grab_na line 535.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Tue Nov 11 2003
----------------- Start of XMLTV output -----------------
Can't call method "say" on an undefined value at /usr/bin/tv_grab_na line 535.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Wed Nov 12 2003
----------------- Start of XMLTV output -----------------
Can't call method "say" on an undefined value at /usr/bin/tv_grab_na line 535.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Thu Nov 13 2003
----------------- Start of XMLTV output -----------------
Can't call method "say" on an undefined value at /usr/bin/tv_grab_na line 535.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Failed to fetch some program info

Expected Results:  
mythfilldatabase should of run tv_grab_na and populated the database with
program information.
Comment 1 Max Kalika (RETIRED) gentoo-dev 2003-11-05 21:19:18 UTC
can you try xmltv-0.5.20.  some grabber fixes were put in.  if it works we'll
need to push 0.5.20 to stable.  thanks.
Comment 2 Steven Elling 2003-11-06 21:37:32 UTC
xmltv 0.5.20 is a no go.  I got similar errors to version 0.5.19.  The errors
are as follows:

----------------- Start of XMLTV output -----------------
Undefined subroutine &main::say called at /usr/bin/tv_grab_na line 530.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Thu Nov 6 2003
----------------- Start of XMLTV output -----------------
Undefined subroutine &main::say called at /usr/bin/tv_grab_na line 530.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Fri Nov 7 2003
----------------- Start of XMLTV output -----------------
Undefined subroutine &main::say called at /usr/bin/tv_grab_na line 530.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Sat Nov 8 2003
----------------- Start of XMLTV output -----------------
Undefined subroutine &main::say called at /usr/bin/tv_grab_na line 530.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Sun Nov 9 2003
----------------- Start of XMLTV output -----------------
Undefined subroutine &main::say called at /usr/bin/tv_grab_na line 530.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Mon Nov 10 2003
----------------- Start of XMLTV output -----------------
Undefined subroutine &main::say called at /usr/bin/tv_grab_na line 530.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Tue Nov 11 2003
----------------- Start of XMLTV output -----------------
Undefined subroutine &main::say called at /usr/bin/tv_grab_na line 530.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Wed Nov 12 2003
----------------- Start of XMLTV output -----------------
Undefined subroutine &main::say called at /usr/bin/tv_grab_na line 530.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Thu Nov 13 2003
----------------- Start of XMLTV output -----------------
Undefined subroutine &main::say called at /usr/bin/tv_grab_na line 530.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Fetching data for Fri Nov 14 2003
----------------- Start of XMLTV output -----------------
Undefined subroutine &main::say called at /usr/bin/tv_grab_na line 530.
------------------ End of XMLTV output ------------------
Error in 1:1: unexpected end of file
Failed to fetch some program info


The subroutine `say' is missing.  I don't know if it is an internal subroutine
or part of a module.

...

Wait a minute, I found the problem.

/usr/bin/tv_grab_na has the following line in it:
use XMLTV::Ask;

This eventually pulls in the say subroutine from XMLTV::AskTerm which is
only included in newer version of XMLTV.

I found that /usr/lib/perl5/site_perl/5.8.0/XMLTV/Ask.pm existed and after
looking at the file found out it was from version 0.5.16 of XMLTV, which
doesn't contain the XMLTV::AskTerm module and therefore the say subroutine.
 And what does perl do? Perl searches for modules in site_perl before vendor_perl.
 vendor_perl is where modules are installed from portage and where XMLTV
0.5.20 was installed.

I looked at the listing of files in /usr/lib/perl5/site_perl/5.8.0/i686-linux/auto/XMLTV/.packlist
and compared it to the files on the system and sure enough the following
files still existed on my system:

/usr/lib/perl5/site_perl/5.8.0/XMLTV.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Ask.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Clumps.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Config_file.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Europe_TZ.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Get_nice.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Grab_XML.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Grep.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Gunzip.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/IMDB.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Memoize.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Mode.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Summarize.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/TZ.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Usage.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/Version.pm
/usr/lib/perl5/site_perl/5.8.0/XMLTV/ZapListings.pm


I unmerge xmltv, then proceeded to remove the above listed files, then merged
xmltv again and finally ran mythfilldatabase.  mythfilldatabase did show
some errors that I need to figure out but they are unrelated to this issue
(I think/hope).

BTW: I did install XMLTV 0.5.16 from portage so I don't know why it was left
on my system after an update.  I ran a emerge -P xmltv but it stated "No
packages selected for removal".
Comment 3 Max Kalika (RETIRED) gentoo-dev 2003-11-07 09:06:45 UTC
Thank you for your investigation.  It looks like it is a portage problem
after all.  I wonder if when 0.5.16 was merged, not everything was recorded
into the CONTENTS file.  Might have been a one-time fluke.  I'll close this
bug for now, and if you see anything like this again, please create a new
bug and assign it to the portage team.  Thanks.