Skip Menu |

This queue is for tickets about the Spoon CPAN distribution.

Report information
The Basics
Id: 11469
Status: new
Priority: 0/
Queue: Spoon

People
Owner: Nobody in particular
Requestors: william [...] knowmad.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.21
Fixed in: (no value)



Subject: Test errors
While trying to build Kwiki under FreeBSD 4.9-stable with Perl 5.6.1, I received the following errors: t/hook............"super" is not exported by the Spiffy module at /home/charlott/perl5/lib/site_perl/5.6.1//Spiffy.pm line 108 "const" is not exported by the Spiffy module at /home/charlott/perl5/lib/site_perl/5.6.1//Spiffy.pm line 108 "stub" is not exported by the Spiffy module at /home/charlott/perl5/lib/site_perl/5.6.1//Spiffy.pm line 108 Can't continue after import errors at /home/charlott/perl5/lib/site_perl/5.6.1//Spiffy.pm line 108 BEGIN failed--compilation aborted at /home/charlott/perl5/lib/site_perl/5.6.1//IO/All.pm line 3. Compilation failed in require at lib/Spoon/Base.pm line 5. BEGIN failed--compilation aborted at lib/Spoon/Base.pm line 5. Compilation failed in require at lib/Spoon.pm line 2. BEGIN failed--compilation aborted at lib/Spoon.pm line 2. Compilation failed in require at t/hook.t line 6. BEGIN failed--compilation aborted at t/hook.t line 6. t/hook............dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-11 These errors did not occur on my Linux workstation with Perl 5.8.4. I hope to be able to test this again under FreeBSD 5.3 with Perl 5.8.6 in the next several days. William
[guest - Fri Feb 11 01:10:41 2005]: Show quoted text
> These errors did not occur on my Linux workstation with Perl 5.8.4. I > hope to be able to test this again under FreeBSD 5.3 with Perl 5.8.6 > in the next several days.
Indeed installing under FreeBSD 5.3 with Perl 5.8.6 works fine. William
From: barbie [...] missbarbell.co.uk
This also fails on Win32. It appears to be related to the way that the export list is created within Spiffy. I have altered the internals of Spiffy::import, and although it now appears to work for Spoon, they fail the distribution tests for Spiffy-0.22. The changes I made for Spoon to work are: --- C:\wip\diffs\spoon\Spiffy-0.22/lib/Spiffy.pm Tue Jan 11 08:44:40 2005 +++ C:\wip\diffs\spoon\Spiffy-0.22-barbie/lib/Spiffy.pm Tue Apr 5 13:55:24 2005 @@ -96,15 +96,20 @@ not defined &{"$caller_package\::$_"}; } @{"$class\::EXPORT_OK"}; my %exportable = map { ($_, 1) } @export, @export_ok; + for(@export_list) { + my ($a,$v) = ($_ =~ m/^([\!\:])?(.*)/); + if($a eq '!') { + delete $exportable{$v}; + delete ${"$class\::EXPORT_TAGS"}{$v}; + } + $exportable{$v} = 1 if($a eq ':'); + } next unless keys %exportable; my @export_save = @{"$class\::EXPORT"}; my @export_ok_save = @{"$class\::EXPORT_OK"}; @{"$class\::EXPORT"} = @export; @{"$class\::EXPORT_OK"} = @export_ok; - my @list = grep { - (my $v = $_) =~ s/^[\!\:]//; - $exportable{$v} or ${"$class\::EXPORT_TAGS"}{$v}; - } @export_list; + my @list = keys %exportable; Exporter::export($class, $caller_package, @list); @{"$class\::EXPORT"} = @export_save; @{"$class\::EXPORT_OK"} = @export_ok_save; However as this breaks the distribution tests, I probably have misunderstood the intent of the code.
From: edward [...] debian.org
I saw the same thing on Solaris running perl 5.8.0, I tracked the problem down to Exporter/Heavy.pm which is one of the modules that comes with Perl.