summaryrefslogtreecommitdiffstats
path: root/package/perl/0001-fix-EUMM.patch
blob: e2b24ff31162582b8c6dad924f50f56d68c30444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fix EUMM 7.04_01 which comes with Perl 5.22.0

with static lib build, we cannot call _find_magic_vstring(),
which does a `require B;` and B is not a pure Perl module.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>

--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/version/vpp.pm
+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/version/vpp.pm
@@ -933,7 +933,7 @@ sub _un_vstring {
     if ( length($value) >= 3 && $value !~ /[._]/
 	&& _is_non_alphanumeric($value)) {
 	my $tvalue;
-	if ( $] ge 5.008_001 ) {
+	if ( $Config{usedl} && ( $] ge 5.008_001 ) ) {
 	    $tvalue = _find_magic_vstring($value);
 	    $value = $tvalue if length $tvalue;
 	}
OpenPOWER on IntegriCloud