Bug 6432

Summary: possible problem with Handle.pm
Product: Mageia Reporter: Stew Benedict <stewbintn>
Component: RPM PackagesAssignee: Jerome Quelin <jquelin>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: jquelin
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: perl-base-5.16.0-6.mga3 CVE:
Status comment:

Description Stew Benedict 2012-06-12 16:08:42 CEST
I'm not completely sure if this is a test problem or a problem with the perl build, but with the uplift to 5.16.0, the LSB perl tests (modified upstream tests) have issues, which is not unusual when there's a version bump.

Anyway, for IO.t, I get this output, which would seem to indicate there's something wrong with the packaged Handle.pm:


CAULDRON-[root@pavilion perl]# ./single_test ../ext/IO/t/IO.t../ext/IO/t/IO....Undefined subroutine &IO::Handle::_create_getline_subs called at /usr/lib/perl5/5.16.0/i386-linux-thread-multi/IO/Handle.pm line 434.
Compilation failed in require at (eval 10) line 1.
 at ../ext/IO/t/IO.t line 45.
# Looks like you planned 18 tests but ran 4.
Use of uninitialized value $fakemod in unlink at ../ext/IO/t/IO.t line 127.
Use of uninitialized value $fakedir in rmdir at ../ext/IO/t/IO.t line 128.
1..18
ok 1 - require IO
ok 2 - IO should call XSLoader::load()
ok 3 - ... loading the IO library
ok 4 - ... with the current .pm version
dubious
	Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 5-18
	Failed 14/18 tests, 22.22% okay
Failed Test      Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
../ext/IO/t/IO.t  255 65280    18   28  5-18
Failed 1/1 test scripts. 14/18 subtests failed.
Files=1, Tests=18,  0 wallclock secs ( 0.04 cusr +  0.00 csys =  0.04 CPU)
Failed 1/1 test programs. 14/18 subtests failed.

I see the _create_getline_subs subroutine with the comment that it's a special XS wrapper. Is there a piece missing from the packaged perl?
Comment 1 Manuel Hiebel 2012-06-17 16:35:03 CEST
Jérome, something for you ?

Assignee: bugsquad => jquelin

Comment 2 Jerome Quelin 2012-06-18 09:34:24 CEST
blind guess - is perl-devel installed?
can i have a snippet of the failing test case?

CC: (none) => jquelin

Comment 3 Stew Benedict 2012-06-21 15:50:36 CEST
Reviewing the changes in IO.t in 5.16.0 the test setup is slightly different, I was able to patch in a check for the perl version and get things working ok for both new and older perl versions. Sorry for the noise.

Status: NEW => RESOLVED
Resolution: (none) => INVALID