Quoting Alex Muntada (2016-08-07 13:22:21) > Andreas Tille: > >> I can reproduce the problem but I have no idea how to solve it. > > The issue is "use base" of a module without using it first: > > Base class package "t::FileStub" is empty. > (Perhaps you need to 'use' the module which defines that package first, > or make that module available in @INC (@INC contains: > /«PKGBUILDDIR»/blib/lib /«PKGBUILDDIR»/blib/arch lib /etc/perl > /usr/local/lib/x86_64-linux-gnu/perl/5.22.2 /usr/local/share/perl/5.22.2 > /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 > /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 > /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .). > at t/FileStubChunked.pm line 11. > > And the fix is easy: > > $ diff -u t/FileStubChunked.pm{.orig,} > --- t/FileStubChunked.pm.orig 2011-05-06 12:24:03.000000000 +0200 > +++ t/FileStubChunked.pm 2016-08-07 13:17:36.272822915 +0200 > @@ -8,6 +8,7 @@ > package t::FileStubChunked; > use strict; > use warnings; > +use t::FileStub; > use base qw(t::FileStub); > > our $VERSION = do { my @r = (q$Revision: 19 $ =~ /\d+/mxg); sprintf > '%d.'.'%03d' x $#r, @r };
As a sidenote, please note that according to "perldoc base" "use base" is generally discouraged and in most situations one benefits from instead doing "use parent ...". - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: signature