]> git.openpandora.org Git - openembedded.git/commitdiff
cpan.bbclass: Instead of putting modules into ${libdir}/perl5 put them into
authorJamie Lenehan <lenehan@twibble.org>
Tue, 26 Sep 2006 07:42:41 +0000 (07:42 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Tue, 26 Sep 2006 07:42:41 +0000 (07:42 +0000)
${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

index 78b902f85db369f69bda021624513127e94636d2..8acc9ab8f874776b0525c88d2e30fa656950898d 100644 (file)
@@ -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
 }