diff options
| author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2010-12-30 12:27:54 -0800 |
|---|---|---|
| committer | Saul Wold <sgw@linux.intel.com> | 2011-01-12 00:55:48 -0800 |
| commit | 83796edd29561f02b6f7b036351711f8def77a4f (patch) | |
| tree | 6a71cc0f9a71c3c14a0557bab12f1859830909b3 /meta/classes/cpan-base.bbclass | |
| parent | f57e9daf74d5fbab6c9a3f5e60e1320a0bf0642d (diff) | |
| download | poky-83796edd29561f02b6f7b036351711f8def77a4f.tar.gz | |
cpan.bbclass: use LIBDIR instead of DATADIR
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>
Diffstat (limited to 'meta/classes/cpan-base.bbclass')
| -rw-r--r-- | meta/classes/cpan-base.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass index 1d13ff3f08..6cd2aa340f 100644 --- a/meta/classes/cpan-base.bbclass +++ b/meta/classes/cpan-base.bbclass | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | # cpan-base providers various perl related information needed for building | 2 | # cpan-base providers various perl related information needed for building |
| 3 | # cpan modules | 3 | # cpan modules |
| 4 | # | 4 | # |
| 5 | FILES_${PN} += "${libdir}/perl5 ${datadir}/perl5" | 5 | FILES_${PN} += "${libdir}/perl ${datadir}/perl" |
| 6 | 6 | ||
| 7 | DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}" | 7 | DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}" |
| 8 | RDEPENDS += "${@["perl", ""][(bb.data.inherits_class('native', d))]}" | 8 | RDEPENDS += "${@["perl", ""][(bb.data.inherits_class('native', d))]}" |
| @@ -27,7 +27,7 @@ def get_perl_version(d): | |||
| 27 | # Determine where the library directories are | 27 | # Determine where the library directories are |
| 28 | def perl_get_libdirs(d): | 28 | def perl_get_libdirs(d): |
| 29 | libdir = bb.data.getVar('libdir', d, 1) | 29 | libdir = bb.data.getVar('libdir', d, 1) |
| 30 | libdirs = libdir + '/perl5' | 30 | libdirs = libdir + '/perl' |
| 31 | return libdirs | 31 | return libdirs |
| 32 | 32 | ||
| 33 | def is_target(d): | 33 | def is_target(d): |
