leon> An irc friend was using GD 1.19 (which is immensely old, I know) and got
leon> the following test error. I haven't had time to look at it.
alex> t/gd................"cmp" is not defined in %GD::EXPORT_TAGS at
alex> blib/lib/Template/Plugin/GD/Constants.pm line 30
The cmp exports appeared at version 1.20, which is also when GIF support
disappeared. Sorry, I didn't test the GD plugins against old versions.
Plugin/GD/Constants.pm will break for GD::VERSION < 1.20.
Here is a backward-compatible fix. I don't have time to send
diff -u patches right now, but they are all one-line changes.
Make these changes before building TT 2.04.
In lib/Template/Plugin/GD/Constants.pm line 30:
old> use GD qw(:DEFAULT :cmp);
new> use GD qw(/^gd/ /^GD/);
Each of the GD tests need to be skipped for GD::VERSION < 1.20 (since
it can't generate png output) so in each of t/gd*t, make this change:
old> if ( $@ ) {
new> if ( $@ || $GD::VERSION < 1.20 ) {
Of course, Unisys would probably expect you to consult a lawyer for
advice before using TT to generate GIFs...
Craig