aboutsummaryrefslogtreecommitdiffstats
path: root/classes/cpan.bbclass
diff options
context:
space:
mode:
authorJamie Lenehan <lenehan@twibble.org>2006-09-26 07:42:41 +0000
committerJamie Lenehan <lenehan@twibble.org>2006-09-26 07:42:41 +0000
commit20ceec866f55b195c18a433a8afe9a962bcdc102 (patch)
tree8665683c8cb10ecc9a7adc7e470bccd114769863 /classes/cpan.bbclass
parent2b3c2d418ea9902ac2190fe0f4dba2acbd178fa5 (diff)
downloadopenembedded-20ceec866f55b195c18a433a8afe9a962bcdc102.tar.gz
cpan.bbclass: Instead of putting modules into ${libdir}/perl5 put them into
${libdir}/perl5/site_perl/${version} since ${libdir}/perl5 is not part of the standard INC (search) path for perl and so these modules are not found by default in the original location. Technically they should go in vendor_perl instead of site_perl, but that requires changes to all of the configuration files which is a much more complex change.
Diffstat (limited to 'classes/cpan.bbclass')
-rw-r--r--classes/cpan.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass
index 78b902f85d..8acc9ab8f8 100644
--- a/classes/cpan.bbclass
+++ b/classes/cpan.bbclass
@@ -5,7 +5,7 @@ cpan_do_configure () {
perl Makefile.PL ${EXTRA_CPANFLAGS}
if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
. ${STAGING_DIR}/${TARGET_SYS}/perl/config.sh
- sed -e "s:\(SITELIBEXP = \).*:\1${sitelibexp}:; s:\(SITEARCHEXP = \).*:\1${sitearchexp}:; s:\(INSTALLVENDORLIB = \).*:\1${D}${libdir}/perl5:; s:\(INSTALLVENDORARCH = \).*:\1${D}${libdir}/perl5:" < Makefile > Makefile.new
+ sed -e "s:\(SITELIBEXP = \).*:\1${sitelibexp}:; s:\(SITEARCHEXP = \).*:\1${sitearchexp}:; s:\(INSTALLVENDORLIB = \).*:\1${D}${libdir}/perl5/site_perl/${version}:; s:\(INSTALLVENDORARCH = \).*:\1${D}${libdir}/perl5/site_perl/${version}:" < Makefile > Makefile.new
mv Makefile.new Makefile
fi
}