Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167699 - dev-perl/Template-XML-2.17 LibXML.pm module does not compile
Summary: dev-perl/Template-XML-2.17 LibXML.pm module does not compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-19 23:40 UTC by John Weigel
Modified: 2007-04-15 11:18 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 John Weigel 2007-02-19 23:40:39 UTC
I submitted a patch a while back that fixed this problem in a previous version. It looks like the new version is not fixed and does not include the patch. Here is a patch that fixes the problem.

diff -Nru Template-XML-2.17/lib/Template/Plugin/XML/LibXML.pm Template-XML-2.17-fixed/lib/Template/Plugin/XML/LibXML.pm
--- Template-XML-2.17/lib/Template/Plugin/XML/LibXML.pm 2007-02-09 09:48:07.000000000 -0600
+++ Template-XML-2.17-fixed/lib/Template/Plugin/XML/LibXML.pm   2007-02-19 17:22:29.000000000 -0600
@@ -112,7 +112,7 @@
         eval { $parser->$method($args->{$method}) };

         # if there's a problem throw a Tempalte::Exception
-        $self->throw("option '$method' not supported") if $@;
+        $class->throw("option '$method' not supported") if $@;
     }

     # parse

Reproducible: Always
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2007-04-15 11:18:33 UTC
Fixed (again :)