summaryrefslogtreecommitdiff
path: root/classes/cpan.bbclass
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2007-05-30 06:55:33 +0000
committerJamie Lenehan <lenehan@twibble.org>2007-05-30 06:55:33 +0000
commit39611c22b7715ebba0f61c7a32a237373243d699 (patch)
treefb48cba1963c436294d1f7490f5655a269b5138c /classes/cpan.bbclass
parentb6b6af9be48002cb4a978aa93a827d1b6d11efad (diff)
perl 5.8.8: Patch MakeMaker in perl-native to check for PERL_INC in the
environment and use that instead of the configured location of PERL_INC. Without this PERL_INC for non-native recipes ends up pointing at where the headers will be located on the target. In theory we could override this in cpan class when calling build.PL but for some packages, such as libxml-parser-perl, that only fixes the top-level makefile and is not propagated to the sub-makefiles. This change results in MakeMaker always picking up the correct staged location of the include files without effecting where they expect to be found on the target.
Diffstat (limited to 'classes/cpan.bbclass')
-rw-r--r--classes/cpan.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass
index 3b1a2b72ca..4fff5974c1 100644
--- a/classes/cpan.bbclass
+++ b/classes/cpan.bbclass
@@ -8,6 +8,9 @@ EXTRA_CPANFLAGS ?= ""
# Env var which tells perl if it should use host (no) or target (yes) settings
export PERLCONFIGTARGET = "${@is_target(d)}"
+# Env var which tells perl where the perl include files are
+export PERL_INC = "${STAGING_DIR}/${BUILD_SYS}/lib/perl/${@get_perl_version(d)}/CORE"
+
cpan_do_configure () {
yes '' | perl Makefile.PL ${EXTRA_CPANFLAGS}
if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then