summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl/dynaloaderhack.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/perl/dynaloaderhack.patch')
-rw-r--r--meta/recipes-devtools/perl/perl/dynaloaderhack.patch24
1 files changed, 18 insertions, 6 deletions
diff --git a/meta/recipes-devtools/perl/perl/dynaloaderhack.patch b/meta/recipes-devtools/perl/perl/dynaloaderhack.patch
index 3df593346c..719f07c9cc 100644
--- a/meta/recipes-devtools/perl/perl/dynaloaderhack.patch
+++ b/meta/recipes-devtools/perl/perl/dynaloaderhack.patch
@@ -1,3 +1,8 @@
1From 2e0ce5d27e70defd66ace0661af7c24daae34f8b Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Sat, 19 Jan 2013 23:49:24 +0000
4Subject: [PATCH 7/8] perl: Add dyanloader build hack
5
1Hack the dynamic module loader so that we use native modules since we can't load 6Hack the dynamic module loader so that we use native modules since we can't load
2the target ones. 7the target ones.
3 8
@@ -6,14 +11,18 @@ Upstream-Status: Inappropriate
6RP 11RP
72013/01/13 122013/01/13
8 13
9Index: perl-5.14.2/ext/DynaLoader/DynaLoader_pm.PL 14---
10=================================================================== 15 ext/DynaLoader/DynaLoader_pm.PL | 4 ++++
11--- perl-5.14.2.orig/ext/DynaLoader/DynaLoader_pm.PL 2011-09-19 13:18:22.000000000 +0000 16 1 file changed, 4 insertions(+)
12+++ perl-5.14.2/ext/DynaLoader/DynaLoader_pm.PL 2013-01-19 16:09:51.020584945 +0000 17
13@@ -310,6 +310,10 @@ 18diff --git a/ext/DynaLoader/DynaLoader_pm.PL b/ext/DynaLoader/DynaLoader_pm.PL
19index e828f35..4021559 100644
20--- a/ext/DynaLoader/DynaLoader_pm.PL
21+++ b/ext/DynaLoader/DynaLoader_pm.PL
22@@ -343,6 +343,10 @@ sub bootstrap {
14 foreach (@INC) { 23 foreach (@INC) {
15 <<$^O-eq-VMS>>chop($_ = VMS::Filespec::unixpath($_));<</$^O-eq-VMS>> 24 <<$^O-eq-VMS>>chop($_ = VMS::Filespec::unixpath($_));<</$^O-eq-VMS>>
16 my $dir = "$_/auto/$modpname"; 25 $dir = "$_/auto/$modpname";
17+ 26+
18+ if (defined $ENV{PERL_LIB} and defined $ENV{PERLHOSTLIB}) { 27+ if (defined $ENV{PERL_LIB} and defined $ENV{PERLHOSTLIB}) {
19+ $dir =~ s/$ENV{PERL_LIB}/$ENV{PERLHOSTLIB}/g; 28+ $dir =~ s/$ENV{PERL_LIB}/$ENV{PERLHOSTLIB}/g;
@@ -21,3 +30,6 @@ Index: perl-5.14.2/ext/DynaLoader/DynaLoader_pm.PL
21 30
22 next unless -d $dir; # skip over uninteresting directories 31 next unless -d $dir; # skip over uninteresting directories
23 32
33--
342.1.4
35