[Buildroot] [PATCH] perl: fix static build

Francois Perrad fperrad at gmail.com
Sun Sep 13 10:26:22 UTC 2015


see http://autobuild.buildroot.net/results/502/502e6a6280451acc48e5f500e774b2bd04c7229e/

Signed-off-by: Francois Perrad <francois.perrad at gadz.org>
---
 package/perl/0001-hack-EUMM.patch | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 package/perl/0001-hack-EUMM.patch

diff --git a/package/perl/0001-hack-EUMM.patch b/package/perl/0001-hack-EUMM.patch
new file mode 100644
index 0000000..3d54f47
--- /dev/null
+++ b/package/perl/0001-hack-EUMM.patch
@@ -0,0 +1,20 @@
+hack 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.
+
+--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/version/vpp.pm
++++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/version/vpp.pm
+@@ -933,11 +933,7 @@ sub _un_vstring {
+     if ( length($value) >= 3 && $value !~ /[._]/
+ 	&& _is_non_alphanumeric($value)) {
+ 	my $tvalue;
+-	if ( $] ge 5.008_001 ) {
+-	    $tvalue = _find_magic_vstring($value);
+-	    $value = $tvalue if length $tvalue;
+-	}
+-	elsif ( $] ge 5.006_000 ) {
++	if ( $] ge 5.006_000 ) {
+ 	    $tvalue = sprintf("v%vd",$value);
+ 	    if ( $tvalue =~ /^v\d+(\.\d+){2,}$/ ) {
+ 		# must be a v-string
-- 
2.1.4



More information about the buildroot mailing list