tag 466847 patch
thanks

On Thu, Feb 21, 2008 at 02:10:42PM +0200, Niko Tyni wrote:
> Package: swish-e
> Version: 2.4.5-2
> Severity: important
> User: [EMAIL PROTECTED]
> Usertags: perl-5.10-transition
> 
> Your package fails to build with Perl 5.10 (currently in experimental.) 

>   ** ERROR: Can't call method "isa" without a package or object reference at 
> /usr/share/perl/5.10/ExtUtils/MakeMaker.pm line 125.
>   Run perl Makefile.PL SWISHHELP for options

This is discussed in

 http://rt.cpan.org/Public/Bug/Display.html?id=31205 

and fixed upstream with

 http://dev.swish-e.org/changeset/1974

which also includes whitespace changes, so I'm attaching the isolated fix.

I can build swish-e on both Perl 5.10.0 and 5.8.8 with this.

Cheers,
-- 
Niko Tyni   [EMAIL PROTECTED]
diff --git a/perl/Makefile.PL b/perl/Makefile.PL
index 69be46f..711dfa8 100644
--- a/perl/Makefile.PL
+++ b/perl/Makefile.PL
@@ -80,11 +80,9 @@ Can be either environment variables or passed on command line like:
 
 EOF
 
-$SIG{__DIE__} = sub {
-    print STDERR "\n  ** ERROR: ", @_;
-    print STDERR "  Run perl Makefile.PL SWISHHELP for options\n\n";
-    exit 1;
-};
+END {
+    print STDERR "Run perl Makefile.PL SWISHHELP for options\n\n" if $?;
+}
 
 #----------------------------------------------------------------------------------
 

Reply via email to