From: Wenzong Fan <wenzong....@windriver.com> If $TOPDIR includes the string "blib", filter it out from @INC may empty the @INC and cause build errors like:
Can't locate ExtUtils/MakeMaker.pm in @INC \ (you may need to install the ExtUtils::MakeMaker module) \ (@INC contains: .) at Makefile.PL Signed-off-by: Wenzong Fan <wenzong....@windriver.com> --- ...-PathTools-don-t-filter-out-blib-from-INC.patch | 33 ++++++++++++++++++++++ meta/recipes-devtools/perl/perl-native_5.20.0.bb | 4 ++- meta/recipes-devtools/perl/perl_5.20.0.bb | 1 + 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-devtools/perl/perl-5.20.0/perl-PathTools-don-t-filter-out-blib-from-INC.patch diff --git a/meta/recipes-devtools/perl/perl-5.20.0/perl-PathTools-don-t-filter-out-blib-from-INC.patch b/meta/recipes-devtools/perl/perl-5.20.0/perl-PathTools-don-t-filter-out-blib-from-INC.patch new file mode 100644 index 0000000..7dd9041 --- /dev/null +++ b/meta/recipes-devtools/perl/perl-5.20.0/perl-PathTools-don-t-filter-out-blib-from-INC.patch @@ -0,0 +1,33 @@ +From 90c252cecc38aed5d5faedb30485dd6eee2e54eb Mon Sep 17 00:00:00 2001 +From: Wenzong Fan <wenzong....@windriver.com> +Date: Wed, 11 Feb 2015 15:14:40 +0800 +Subject: [PATCH] perl / PathTools: don't filter out blib from @INC + +If $TOPDIR includes the string "blib", filter it out from @INC may empty +the @INC and cause build errors like: + + Can't locate ExtUtils/MakeMaker.pm in @INC \ + (you may need to install the ExtUtils::MakeMaker module) \ + (@INC contains: .) at Makefile.PL + +Upstream-Status: Pending + +Signed-off-by: Wenzong Fan <wenzong....@windriver.com> +--- + dist/PathTools/Makefile.PL | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/dist/PathTools/Makefile.PL b/dist/PathTools/Makefile.PL +index 1b21de4..f562cb2 100644 +--- a/dist/PathTools/Makefile.PL ++++ b/dist/PathTools/Makefile.PL +@@ -1,6 +1,3 @@ +- +-BEGIN { @INC = grep {!/blib/} @INC } +- + require 5.005; + use ExtUtils::MakeMaker; + WriteMakefile +-- +1.9.1 + diff --git a/meta/recipes-devtools/perl/perl-native_5.20.0.bb b/meta/recipes-devtools/perl/perl-native_5.20.0.bb index 586a347..c8cdad7 100644 --- a/meta/recipes-devtools/perl/perl-native_5.20.0.bb +++ b/meta/recipes-devtools/perl/perl-native_5.20.0.bb @@ -17,7 +17,9 @@ SRC_URI = "http://www.cpan.org/src/5.0/perl-${PV}.tar.gz \ file://MM_Unix.pm.patch \ file://debian/errno_ver.diff \ file://dynaloaderhack.patch \ - file://perl-5.14.3-fix-CVE-2010-4777.patch " + file://perl-5.14.3-fix-CVE-2010-4777.patch \ + file://perl-PathTools-don-t-filter-out-blib-from-INC.patch \ + " SRC_URI[md5sum] = "406ec049ebe3afcc80d9c76ec78ca4f8" SRC_URI[sha256sum] = "4e8c28ad6ecc89902f9cb2e76f2815bb1a8287ded278e15f7a36ca45f8bbcd02" diff --git a/meta/recipes-devtools/perl/perl_5.20.0.bb b/meta/recipes-devtools/perl/perl_5.20.0.bb index db65202..a99b3c8 100644 --- a/meta/recipes-devtools/perl/perl_5.20.0.bb +++ b/meta/recipes-devtools/perl/perl_5.20.0.bb @@ -76,6 +76,7 @@ SRC_URI += " \ file://perl-5.14.3-fix-CVE-2010-4777.patch \ file://0001-Makefile.SH-fix-do_install-failed.patch \ file://make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch \ + file://perl-PathTools-don-t-filter-out-blib-from-INC.patch \ " # Fix test case issues -- 1.9.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core