Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365507 - <dev-perl/Test-WWW-Mechanize-1.32 fails tests on Perl 5.14
Summary: <dev-perl/Test-WWW-Mechanize-1.32 fails tests on Perl 5.14
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL: http://code.google.com/p/www-mechaniz...
Whiteboard:
Keywords:
Depends on:
Blocks: perl-5.14.0
  Show dependency tree
 
Reported: 2011-05-01 07:20 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2012-02-26 19:14 UTC (History)
1 user (show)

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 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2011-05-01 07:20:26 UTC
There are other reasons why Test-WWW-Mechanize fails tests, such as bug #328899  and http://code.google.com/p/www-mechanize/issues/detail?id=199&sort=-id , but there's a new one introduced by Perl 5.14 that will hit you even if the other 2 don't. ( Of those 2, one is related to which Test::Builder / WWW-Mech  you are using, the other is related to DNS configuration ). 

In Perl 5.14, the following command:

  perl -e 'my $re = qr/Test/; print $re;'

prints 

   (?^:Test)

instead of what it used to do, and print 

   (?-xism:Test)

And this module has in its tests, hardcoded expectations on what it expects certain regexes to output when stringified.

I have patched all the issues I know about so far and put them into the experimental overlay with a patch which has been tested to work for me for people who need a more immediate solution. ( TWM has been broken since sometime before 5.12.2 was released )

http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=blob;f=dev-perl/Test-WWW-Mechanize/Test-WWW-Mechanize-1.30-r2.ebuild;h=b87a0aae2191b5fb9a7e10a9389e4ed466da88b0;hb=f454abe2d3fd99b57189dde2de511c1945d23043

http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=blob;f=dev-perl/Test-WWW-Mechanize/files/1.30/fix_dns-r2.patch;h=ccfac4c1fc6c38d1244e6ea7f331921de79256be;hb=f454abe2d3fd99b57189dde2de511c1945d23043
Comment 1 Christopher J. Madsen 2011-06-20 21:42:20 UTC
According to http://cpansearch.perl.org/src/PETDANCE/Test-WWW-Mechanize-1.32/Changes this is fixed in Test-WWW-Mechanize 1.32.
Comment 2 Ooblick 2012-02-26 16:17:45 UTC
As we now have Test-WWW-Mechanize-1.38.0 in the tree can this be removed as a blocked for 5.14?
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2012-02-26 19:14:35 UTC
Yes.