From: Jamie Lenehan Date: Tue, 26 Sep 2006 07:42:41 +0000 (+0000) Subject: cpan.bbclass: Instead of putting modules into ${libdir}/perl5 put them into X-Git-Tag: Release-2010-05/1~9453^2~706 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20ceec866f55b195c18a433a8afe9a962bcdc102;p=openembedded.git 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. --- 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 }