From 20ceec866f55b195c18a433a8afe9a962bcdc102 Mon Sep 17 00:00:00 2001 From: Jamie Lenehan Date: Tue, 26 Sep 2006 07:42:41 +0000 Subject: [PATCH] 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. --- classes/cpan.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.5