forked from mirrors/nixpkgs
18 lines
632 B
Diff
18 lines
632 B
Diff
|
diff -Naur a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm
|
||
|
--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm 2017-06-30 17:03:20.000000000 -0400
|
||
|
+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm 2018-02-28 10:06:37.031237946 -0500
|
||
|
@@ -1267,7 +1267,12 @@
|
||
|
my $value = shift;
|
||
|
return $value if $UNDER_CORE;
|
||
|
my $tvalue = '';
|
||
|
- require B;
|
||
|
+ eval {
|
||
|
+ require B;
|
||
|
+ };
|
||
|
+ if ($@) {
|
||
|
+ return $tvalue;
|
||
|
+ }
|
||
|
my $sv = B::svref_2object(\$value);
|
||
|
my $magic = ref($sv) eq 'B::PVMG' ? $sv->MAGIC : undef;
|
||
|
while ( $magic ) {
|