Skip Menu |

This queue is for tickets about the PDL-Fit-Levmar CPAN distribution.

Report information
The Basics
Id: 57569
Status: open
Priority: 0/
Queue: PDL-Fit-Levmar

People
Owner: Nobody in particular
Requestors: david.tulloh [...] AirservicesAustralia.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.0087
Fixed in: (no value)



Subject: Can't compile Makefile.PL
Running Makefile.PL causes an error when trying to compile Func/Makefile.PL. Running Func/Makefile.PL (from within Func) works correctly. Show quoted text
> perl Makefile.PL
Checking if your kit is complete... Warning: the following files are missing in your kit: debian Please inform the author. ERROR from evaluation of /home/lod/PDL-Fit-Levmar-0.0087/Func/Makefile.PL: Bizarre copy of ARRAY in sassign at /usr/share/perl/5.10/Carp/Heavy.pm line 96. Running Perl 5.10.1 (Debian distribution: 5.10.1-12) on Debian Linux 2.6.32
attached patch eliminates the error (explicit scoping for Makefile.PL variables). looks like an instance of the bug described here: http://www.gossamer-threads.com/lists/perl/porters/222537 On Tue May 18 00:28:41 2010, david.tulloh@AirservicesAustralia.com wrote: Show quoted text
> ERROR from evaluation of > /home/lod/PDL-Fit-Levmar-0.0087/Func/Makefile.PL: Bizarre copy of ARRAY > in sassign at /usr/share/perl/5.10/Carp/Heavy.pm line 96.
Subject: PDL-Fit-Levmar-0.0087-bizarrecopy.patch
diff -ur PDL-Fit-Levmar-0.0087.orig/Func/Makefile.PL PDL-Fit-Levmar-0.0087.hacked/Func/Makefile.PL --- PDL-Fit-Levmar-0.0087.orig/Func/Makefile.PL 2006-08-07 07:04:30.000000000 +0200 +++ PDL-Fit-Levmar-0.0087.hacked/Func/Makefile.PL 2011-03-31 14:11:39.000000000 +0200 @@ -3,8 +3,8 @@ use ExtUtils::MakeMaker; PDL::Core::Dev->import(); -$fpackage = ["func.pd", Func, PDL::Fit::Levmar::Func]; -%hash = pdlpp_stdargs($fpackage); +my $fpackage = ["func.pd", Func, PDL::Fit::Levmar::Func]; +my %hash = pdlpp_stdargs($fpackage); $hash{VERSION_FROM} = '../Makefile.PL'; $hash{LIBS} = [' -lm -ldl ']; diff -ur PDL-Fit-Levmar-0.0087.orig/Makefile.PL PDL-Fit-Levmar-0.0087.hacked/Makefile.PL --- PDL-Fit-Levmar-0.0087.orig/Makefile.PL 2008-07-20 07:12:35.000000000 +0200 +++ PDL-Fit-Levmar-0.0087.hacked/Makefile.PL 2011-03-31 14:11:17.000000000 +0200 @@ -4,11 +4,11 @@ use Carp; PDL::Core::Dev->import(); -$VERSION = "0.0087"; # Func/Makefile.PL relies on this! +our $VERSION = "0.0087"; # Func/Makefile.PL relies on this! -$levmarsrc = "./levmar-2.1.3"; -$lmpackage = ["levmar.pd", Levmar, PDL::Fit::Levmar]; -%hash = pdlpp_stdargs($lmpackage); +my $levmarsrc = "./levmar-2.1.3"; +my $lmpackage = ["levmar.pd", Levmar, PDL::Fit::Levmar]; +my %hash = pdlpp_stdargs($lmpackage); $hash{VERSION} = $VERSION; $hash{INC} .= " -I $levmarsrc";