]> code.ossystems Code Review - openembedded-core.git/commitdiff
cpan.bbclass: use LIBDIR instead of DATADIR
authorNitin A Kamble <nitin.a.kamble@intel.com>
Thu, 30 Dec 2010 20:27:54 +0000 (12:27 -0800)
committerSaul Wold <sgw@linux.intel.com>
Wed, 12 Jan 2011 08:55:48 +0000 (00:55 -0800)
perl 5.12.2 does not use /usr/share/perl path, and all that stuff goes
in /usr/lib/perl. This commit fixes cpan class which depends on
/usr/share/perl.

cpan.base/build.bbclass: change /usr/lib/perl5 to /usr/lib/perl

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
meta/classes/cpan-base.bbclass
meta/classes/cpan.bbclass
meta/classes/cpan_build.bbclass

index 1d13ff3f089cd86822577b4d152c944248214b58..6cd2aa340f7141daea46789aa945643c65fd2bd0 100644 (file)
@@ -2,7 +2,7 @@
 # cpan-base providers various perl related information needed for building
 # cpan modules
 #
-FILES_${PN} += "${libdir}/perl5 ${datadir}/perl5"
+FILES_${PN} += "${libdir}/perl ${datadir}/perl"
 
 DEPENDS  += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}"
 RDEPENDS  += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
@@ -27,7 +27,7 @@ def get_perl_version(d):
 # Determine where the library directories are
 def perl_get_libdirs(d):
        libdir = bb.data.getVar('libdir', d, 1)
-       libdirs = libdir + '/perl5'
+       libdirs = libdir + '/perl'
        return libdirs
 
 def is_target(d):
index 513f0b3ce72cc5ef5e9ca54234a802973eb04be7..05f2374f4f5e1d1d3ef16286f4b7bfb713014056 100644 (file)
@@ -10,7 +10,7 @@ export PERLCONFIGTARGET = "${@is_target(d)}"
 
 # Env var which tells perl where the perl include files are
 export PERL_INC = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}/CORE"
-export PERL_LIB = "${STAGING_DATADIR}/perl/${@get_perl_version(d)}"
+export PERL_LIB = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}"
 export PERL_ARCHLIB = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}"
 
 cpan_do_configure () {
index dd8d5434d51b92407d0c9f87fb15aaeffd437562..cc503a424ea727137be43bd985a5aebda4e6da72 100644 (file)
@@ -26,8 +26,8 @@ cpan_build_do_configure () {
 
                        perl Build.PL --installdirs vendor \
                                --destdir ${D} \
-                               --install_path lib="${datadir}/perl5" \
-                               --install_path arch="${libdir}/perl5" \
+                               --install_path lib="${datadir}/perl" \
+                               --install_path arch="${libdir}/perl" \
                                --install_path script=${bindir} \
                                --install_path bin=${bindir} \
                                --install_path bindoc=${mandir}/man1 \