Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420259 - perl-core/XSLoader-0.150.0 fails tests on perl 5.16.0
Summary: perl-core/XSLoader-0.150.0 fails tests on perl 5.16.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL: https://rt.cpan.org/Public/Bug/Displa...
Whiteboard:
Keywords:
Depends on:
Blocks: perl-5.16
  Show dependency tree
 
Reported: 2012-06-08 14:39 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2012-06-13 19:52 UTC (History)
0 users

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 2012-06-08 14:39:31 UTC
>>> Starting src_compile
 * emake OTHERLDFLAGS=-Wl,-O1 -Wl,-z,combreloc -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=both
make --jobs=10 --load-average=4.0 OTHERLDFLAGS=-Wl,-O1 -Wl,-z,combreloc -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=both
/usr/bin/perl5.16.0 XSLoader_pm.PL XSLoader.pm
cp XSLoader.pm blib/arch/XSLoader.pm
>>> Done src_compile
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv compile saveenv
>>> Running ebuild phases loadenv test saveenv as portage:portage...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_test
PERL_DL_NONLAZY=1 /usr/bin/perl5.16.0 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
make --jobs=10 --load-average=4.0 test TEST_VERBOSE=0
t/00-load.t ... ok   
# testing XSLoader v0.15 under Perl 5.016000
t/01-api.t .... ok   
t/distchk.t ... ok   
t/pod.t ....... ok   
t/podcover.t .. ok   
t/portfs.t .... ok   
t/XSLoader.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/22 subtests 

Test Summary Report
-------------------
t/XSLoader.t (Wstat: 256 Tests: 22 Failed: 1)
  Failed test:  13
  Non-zero exit status: 1
Files=7, Tests=34,  1 wallclock secs ( 0.04 usr  0.02 sys +  0.42 cusr  0.04 csys =  0.52 CPU)
Result: FAIL

#   Failed test 'File::Glob->can('doglob')'
#   at (eval 19) line 1.
#     File::Glob->can('doglob') failed
# Looks like you failed 1 test of 22.
Failed 1/7 test programs. 1/34 subtests failed.
make: *** [test_dynamic] Error 1


Alas, Perl 5.16 released with XSLoader 0.16 , which is not on CPAN. 

  v5.13.9    0.13      
  v5.13.10   0.13      
  v5.13.11   0.13      
  v5.14.0    0.13      
  v5.14.1    0.13      
  v5.14.2    0.13      
  v5.15.0    0.15      <--- 
  v5.15.1    0.15      
  v5.15.2    0.15      
  v5.15.3    0.16      <---
  v5.15.4    0.16      
  v5.15.5    0.16      
  v5.15.6    0.16      
  v5.15.7    0.16      
  v5.15.8    0.16      
  v5.15.9    0.16      
  v5.16.0    0.16      
  v5.17.0    0.16      

So we need a virtual/perl-XSLoader-0.160.0, that 

a) Is only installable if you are also installing Perl 5.16  ( until XSLoader is on CPAN )
b) removes perl-core/XSLoader installs that are not 0.160.0
Comment 1 Torsten Veller (RETIRED) gentoo-dev 2012-06-08 19:23:25 UTC
Other options:

Drop virtual/perl-XSLoader and perl-core/XSLoader.
(Currently not versioned XSLoader is in R/DEPEND. So everything should work with the core versions.)

Fix the test failure
Comment 2 Torsten Veller (RETIRED) gentoo-dev 2012-06-13 16:16:01 UTC
I am going to add this patch (from commit 960ddb6):

-    'File::Glob' => q| ::can_ok( 'File::Glob' => 'doglob'   ) |,  # 5.6
+    'File::Glob' => q| ::can_ok( 'File::Glob' =>                  # 5.6
+                                   $] > 5.014
+                                     ? 'bsd_glob' : 'doglob') |,

BTW: Why does it check for $] > 5.014 ?
Comment 3 Torsten Veller (RETIRED) gentoo-dev 2012-06-13 19:52:36 UTC
The tests should work. XSLoader.pm is the same our perl versions.
Fixed.