From: mkanat%bugzilla.org <> Date: Tue, 25 Jul 2006 13:21:07 +0000 (+0000) Subject: Bug 345389: Template-Toolkit 2.15 moved Template::Plugin::GD into a separate package X-Git-Tag: bugzilla-2.22.1~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43ee098c298ff4ceb9b5dd2041d443fd1fcd9011;p=thirdparty%2Fbugzilla.git Bug 345389: Template-Toolkit 2.15 moved Template::Plugin::GD into a separate package Patch By Max Kanat-Alexander r=LpSolit, a=myk --- diff --git a/checksetup.pl b/checksetup.pl index 7794e2123f..5780d06d54 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -354,6 +354,7 @@ my %ppm_modules = ( 'Mail::Mailer' => 'MailTools', 'Mail::Base64' => 'MIME-Base64', 'MIME::Tools' => 'MIME-Tools', + 'Template::Plugin::GD' => 'Template', ); sub install_command { @@ -378,6 +379,7 @@ foreach my $module (@{$modules}) { print "\nThe following Perl modules are optional:\n" unless $silent; my $gd = have_vers("GD","1.20"); +my $template_gd = have_vers('Template::Plugin::GD::Image', 0); my $chartbase = have_vers("Chart::Base","1.0"); my $xmlparser = have_vers("XML::Twig",0); my $gdgraph = have_vers("GD::Graph",0); @@ -416,7 +418,7 @@ if (!$imagemagick && !$silent) { " " . install_command("Image::Magick") . "\n\n"; } -if ((!$gd || !$gdgraph || !$gdtextalign) && !$silent) { +if ((!$gd || !$gdgraph || !$gdtextalign || !$template_gd) && !$silent) { print "If you you want to see graphical bug reports (bar, pie and line "; print "charts of \ncurrent data), you should install libgd and the "; print "following Perl modules:\n\n"; @@ -425,6 +427,8 @@ if ((!$gd || !$gdgraph || !$gdtextalign) && !$silent) { if !$gdgraph; print "GD::Text::Align: " . install_command("GD::Text::Align") . "\n" if !$gdtextalign; + print "Template::Plugin::GD: " . install_command('Template::Plugin::GD') + . "\n" if !$template_gd; print "\n"; } if (!$patchreader && !$silent) { diff --git a/docs/xml/modules.xml b/docs/xml/modules.xml index 151358cbd4..8e2df5999c 100644 --- a/docs/xml/modules.xml +++ b/docs/xml/modules.xml @@ -148,6 +148,16 @@ + + Template::Plugin::GD: + + CPAN Download Page: + PPM Download Link: (Just install Template-Toolkit using the instructions below) + + Documentation: + + + MIME::Base64: diff --git a/testserver.pl b/testserver.pl index 0d1d08ba58..87c6c08020 100755 --- a/testserver.pl +++ b/testserver.pl @@ -194,6 +194,14 @@ if ($@ eq '') { print "TEST-FAILED Chart returned: $@\n"; } } + + eval 'use Template::Plugin::GD::Image'; + if ($@) { + print "TEST-FAILED Template::Plugin::GD is not installed.\n"; + } + else { + print "TEST-OK Template::Plugin::GD is installed.\n"; + } } sub fetch {