Only in cpan2rpm-2.022: blib diff -ru cpan2rpm-2.022-orig/cpan2rpm cpan2rpm-2.022/cpan2rpm --- cpan2rpm-2.022-orig/cpan2rpm 2004-02-03 17:24:05.000000000 -0600 +++ cpan2rpm-2.022/cpan2rpm 2004-02-03 17:31:38.000000000 -0600 @@ -452,17 +455,18 @@ # no input or output std_close(); # execute the makefile - my $crash = ""; - if (1) { - local $SIG{__DIE__} = sub { $crash = $_[0]; die @_; }; + my $ok = 0; + eval { do $t; - } + $ok = 1; + }; + my $err = $@; # clean up std_restore(); unlink $t || die "get_meta(): rm[$t] - $!"; - if ($crash) { - $crash =~ s/$t/$info{PL}/g; - die "FATAL CRASH! Could not load $info{PL}:\n$crash"; + if (!$ok) { + $err =~ s/$t/$info{PL}/g; + die "FATAL CRASH! Could not load $info{PL}:\n$err"; } # map Build.PL hash keys to MakeMaker's