Skip Menu |

This queue is for tickets about the Class-STL-Containers CPAN distribution.

Report information
The Basics
Id: 125650
Status: open
Priority: 0/
Queue: Class-STL-Containers

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: Invalid sort pragma usage (0.37)
Test suite fails with perl 5.28.0: ... Output from '/usr/bin/make test': PERL_DL_NONLAZY=1 "/usr/perl5.28.0-RC2p/bin/perl5.28.0" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'lib', 'blib/arch')" t/*.t Class::STL::Algorithms Invalid sort pragma usage! at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37-0/lib/Class/STL/Algorithms.pm line 137. Class::STL::Algorithms::BEGIN() called at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37-0/lib/Class/STL/Algorithms.pm line 139 eval {...} called at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37-0/lib/Class/STL/Algorithms.pm line 139 require Class/STL/Algorithms.pm called at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37-0/lib/stl.pm line 67 stl::BEGIN() called at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37-0/lib/Class/STL/Algorithms.pm line 139 eval {...} called at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37-0/lib/Class/STL/Algorithms.pm line 139 require stl.pm called at t/Class-STL-Algorithms.t line 12 main::BEGIN() called at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37-0/lib/Class/STL/Algorithms.pm line 139 eval {...} called at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37-0/lib/Class/STL/Algorithms.pm line 139 BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37-0/lib/Class/STL/Algorithms.pm line 139. Compilation failed in require at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37-0/lib/stl.pm line 67. BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37-0/lib/stl.pm line 67. Compilation failed in require at t/Class-STL-Algorithms.t line 12. BEGIN failed--compilation aborted at t/Class-STL-Algorithms.t line 12. t/Class-STL-Algorithms.t ................ Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run ...
On 2018-06-21 16:30:41, SREZIC wrote: Show quoted text
> Test suite fails with perl 5.28.0:
More precisely, it fails with 5.27.6 and newer. Show quoted text
> > ... > Output from '/usr/bin/make test': > > PERL_DL_NONLAZY=1 "/usr/perl5.28.0-RC2p/bin/perl5.28.0" "- > MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef > *Test::Harness::Switches; test_harness(0, 'lib', 'blib/arch')" t/*.t > Class::STL::Algorithms Invalid sort pragma usage! > at /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37- > 0/lib/Class/STL/Algorithms.pm line 137. > Class::STL::Algorithms::BEGIN() called at > /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37- > 0/lib/Class/STL/Algorithms.pm line 139 > eval {...} called at > /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37- > 0/lib/Class/STL/Algorithms.pm line 139 > require Class/STL/Algorithms.pm called at > /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37- > 0/lib/stl.pm line 67 > stl::BEGIN() called at > /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37- > 0/lib/Class/STL/Algorithms.pm line 139 > eval {...} called at > /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37- > 0/lib/Class/STL/Algorithms.pm line 139 > require stl.pm called at t/Class-STL-Algorithms.t line 12 > main::BEGIN() called at > /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37- > 0/lib/Class/STL/Algorithms.pm line 139 > eval {...} called at > /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37- > 0/lib/Class/STL/Algorithms.pm line 139 > BEGIN failed--compilation aborted at > /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37- > 0/lib/Class/STL/Algorithms.pm line 139. > Compilation failed in require at > /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37- > 0/lib/stl.pm line 67. > BEGIN failed--compilation aborted at > /home/cpansand/.cpan/build/2018062120/Class-STL-Containers-0.37- > 0/lib/stl.pm line 67. > Compilation failed in require at t/Class-STL-Algorithms.t line 12. > BEGIN failed--compilation aborted at t/Class-STL-Algorithms.t line 12. > t/Class-STL-Algorithms.t ................ > Dubious, test returned 255 (wstat 65280, 0xff00) > No subtests run > ...
On Thu Jun 21 13:45:03 2018, SREZIC wrote: Show quoted text
> On 2018-06-21 16:30:41, SREZIC wrote:
> > Test suite fails with perl 5.28.0:
> > More precisely, it fails with 5.27.6 and newer.
Thanks for the insight. I'll look into converting to the new recommended approach. Do you have a feel for whether the approach recommended in the POD for 'sort' would still work pre-5.10? I took over co-maint on this module just this week, and just got it passing tests under fairly modern Perls. Sounds like 5.28 will break it again, so I'm hoping the resolution doesn't destroy backwards compatibility.
On 2018-06-21 22:10:12, DAVIDO wrote: Show quoted text
> On Thu Jun 21 13:45:03 2018, SREZIC wrote:
> > On 2018-06-21 16:30:41, SREZIC wrote:
> > > Test suite fails with perl 5.28.0:
> > > > More precisely, it fails with 5.27.6 and newer.
> > Thanks for the insight. I'll look into converting to the new > recommended approach. > > Do you have a feel for whether the approach recommended in the POD for > 'sort' would still work pre-5.10?
The perl 5.8.x documentation already lists "stable" and "defaults" for the sort pragma. So these are the only ones which should be compatible from 5.8 to 5.28. If you're in doubt, you can always create an underscore release and let CPAN Testers find out. Or if you use travis-ci, there's also perl 5.8 available for testing. Show quoted text
> I took over co-maint on this module > just this week, and just got it passing tests under fairly modern > Perls. Sounds like 5.28 will break it again, so I'm hoping the > resolution doesn't destroy backwards compatibility.