Skip Menu |

This queue is for tickets about the Template-Toolkit CPAN distribution.

Report information
The Basics
Id: 46250
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Template-Toolkit

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: 2.20_3 is not compatible anymore with 5.6.x
This change in Template/Context.pm +use constant { + EXCEPTION => 'Template::Exception', + BADGER_EXCEPTION => 'Badger::Exception', +}; possibly causes the following errors in perl 5.6.2: failed to create context: failed to load Template/Context.pm: Constant name 'HASH(0x205378f0)' has invalid characters at mnt/i386/var/tmp/CPAN-build/Template-Toolkit-2.20_3-SlZQcV/blib/lib/Template/Context.pm line 36 I think this can be easily fixed by using two "use constant" lines. Regards, Slaven
Subject: Re: [rt.cpan.org #46250] 2.20_3 is not compatible anymore with 5.6.x
Date: Thu, 21 May 2009 01:46:45 +1000
To: bug-Template-Toolkit [...] rt.cpan.org
From: Adam Kennedy <adamkennedybackup [...] gmail.com>
You might want to consider adding a Test::MinimumVersion test script to the list of RELEASE_TESTING-only tests. It's able to pick up this sort of thing before it gets to CPAN without you needing to actually test it on the lower version. It won't get everything, but it should find anything that is visually obvious. If you want a standard one that you can just drop in, here's the one I use for all my modules. http://svn.ali.as/cpan/tools/shared/99_pmv.t Adam K 2009/5/21 Slaven_Rezic via RT <bug-Template-Toolkit@rt.cpan.org>: Show quoted text
> Wed May 20 10:32:53 2009: Request 46250 was acted upon. > Transaction: Ticket created by SREZIC >       Queue: Template-Toolkit >     Subject: 2.20_3 is not compatible anymore with 5.6.x >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: SREZIC@cpan.org >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46250 > > > > This change in Template/Context.pm > > +use constant { > +    EXCEPTION        => 'Template::Exception', > +    BADGER_EXCEPTION => 'Badger::Exception', > +}; > > possibly causes the following errors in perl 5.6.2: > > failed to create context: failed to load Template/Context.pm: Constant > name 'HASH(0x205378f0)' has invalid characters at > mnt/i386/var/tmp/CPAN-build/Template-Toolkit-2.20_3-SlZQcV/blib/lib/Template/Context.pm > line 36 > > I think this can be easily fixed by using two "use constant" lines. > > Regards, >    Slaven > >
Slaven_Rezic: Show quoted text
> I think this can be easily fixed by using two "use constant" lines.
Yes, it can. Thanks Slaven, the fix is in and a new developer release is on the way. Adam K: Show quoted text
>You might want to consider adding a Test::MinimumVersion test script
Thanks for the tip, but alas Test::MinimumumVersion is one of the modules (along with half of CPAN, it seems) that is out-of-bounds for me on my development machines (Macs) due to the dependency on File::HomeDir and Mac::Carbon. https://rt.cpan.org/Ticket/Display.html?id=43549 :-(
Subject: Re: [rt.cpan.org #46250] 2.20_3 is not compatible anymore with 5.6.x
Date: Fri, 22 May 2009 11:34:49 +1000
To: bug-Template-Toolkit [...] rt.cpan.org
From: Adam Kennedy <adamkennedybackup [...] gmail.com>
http://deps.cpantesters.org/?module=Test::MinimumVersion;perl=latest I can't find the dependency you are talking about, or think of an obvious place it might be. Adam K 2009/5/21 Andy Wardley via RT <bug-Template-Toolkit@rt.cpan.org>: Show quoted text
>       Queue: Template-Toolkit >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=46250 > > > Slaven_Rezic:
>> I think this can be easily fixed by using two "use constant" lines.
> > Yes, it can.  Thanks Slaven, the fix is in and a new developer release > is on the way. > > Adam K:
>>You might want to consider adding a Test::MinimumVersion test script
> > Thanks for the tip, but alas Test::MinimumumVersion is one of the > modules (along with half of CPAN, it seems) that is out-of-bounds for > me on my development machines (Macs) due to the dependency on > File::HomeDir and Mac::Carbon. > >  https://rt.cpan.org/Ticket/Display.html?id=43549 > > :-( > >
Thanks, tests passes with 2.20_4 on my 5.6.2 installation. Regards, Slaven