[oe-commits] org.oe.dev cpan.bbclass: Instead of putting modules into ${libdir}/perl5 put them into

lenehan commit openembedded-commits at lists.openembedded.org
Tue Sep 26 07:51:36 UTC 2006


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.

Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: 2ae64e9d4514b3db2e07b3ed4a38383b9fd81057
ViewMTN: http://monotone.openembedded.org/revision.psp?id=2ae64e9d4514b3db2e07b3ed4a38383b9fd81057
Files:
1
classes/cpan.bbclass
Diffs:

#
# mt diff -ra88f8d7e6ddabb9351d127ccf3500ed17c6670fa -r2ae64e9d4514b3db2e07b3ed4a38383b9fd81057
#
# 
# 
# patch "classes/cpan.bbclass"
#  from [682b95f3869bf7b1eb09941a52ac1433a724c5b9]
#    to [944cfcd22db6c5944be9e70cf3963c24c8ee5dc8]
# 
============================================================
--- classes/cpan.bbclass	682b95f3869bf7b1eb09941a52ac1433a724c5b9
+++ classes/cpan.bbclass	944cfcd22db6c5944be9e70cf3963c24c8ee5dc8
@@ -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
 }






More information about the Openembedded-commits mailing list