Skip Menu |

This queue is for tickets about the AnyMongo CPAN distribution.

Report information
The Basics
Id: 67035
Status: open
Priority: 0/
Queue: AnyMongo

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

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



Subject: Does not compile anymore since perl 5.13.9 ('PMf_LOCALE' undeclared)
RT-Send-CC: andreas.koenig.7os6VVqR [...] franz.ak.mind.de
On Mon Mar 28 17:08:36 2011, SREZIC wrote: Show quoted text
> See subject. A overview of test results: > http://matrix.cpantesters.org/?dist=AnyMongo&maxver= > > A sample fail report: > http://www.cpantesters.org/cpan/report/99503ed4-58eb-11e0-b66d-1f3c8e62ae86 > > Regards, > Slaven
This was broken by <http://perl5.git.perl.org/perl.git/commitdiff/a62b1201c>. I think the module needs to change to use set_regex_charset() for 5.14.
From: mmaslano [...] redhat.com
Patch might look something like I attached. You might write new test for it, because I'm not sure how test this behaviour. Tests passed for me, but only with old mongodb 1.6.4 and perl 5.14.1 from perlbrew.
Subject: perl-MongoDB-perl5.14-PMf_LOCALE.patch
diff -up MongoDB-0.41/perl_mongo.c.struct MongoDB-0.41/perl_mongo.c --- MongoDB-0.41/perl_mongo.c.struct 2011-07-26 12:31:14.650995886 +0200 +++ MongoDB-0.41/perl_mongo.c 2011-07-26 14:01:25.195508125 +0200 @@ -459,7 +459,11 @@ elem_to_sv (int type, buffer *buf) while(*(buf->pos) != 0) { switch(*(buf->pos)) { case 'l': +#if PERL_REVISION==5 && PERL_VERSION>12 + set_regex_charset(flags, REGEX_LOCALE_CHARSET); +#else flags |= PMf_LOCALE; +#endif break; case 'm': flags |= PMf_MULTILINE;
From: mmaslano [...] redhat.com
On Wed Jul 27 05:51:16 2011, mmaslano@redhat.com wrote: Show quoted text
> Patch might look something like I attached. You might write new test for > it, because I'm not sure how test this behaviour. > > Tests passed for me, but only with old mongodb 1.6.4 and perl 5.14.1 > from perlbrew.
I'm sorry the previous post should go to MongoDB :-(