diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2018-12-02 12:52:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-11 10:39:09 +0000 |
commit | d460892f32fd6ec0a26231db9eead27a1ec7fcb4 (patch) | |
tree | f57fcfe3b6777295894feff4dedfc654741f4412 /meta/classes/cpan_build.bbclass | |
parent | 00b9e7011e1e468a94fdd4dd5fc321d6adc90b79 (diff) | |
download | poky-d460892f32fd6ec0a26231db9eead27a1ec7fcb4.tar.gz |
meta/classes: adjust perl-related classes to the new recipes
This mostly means tweaking the paths to match upstream defaults.
get_perl_arch() functions are taken from the patch by Jens Rehsack:
http://lists.openembedded.org/pipermail/openembedded-core/2018-November/276546.html
(From OE-Core rev: d6b36b1babb4d3e8d41278111e71c71fde9af39e)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cpan_build.bbclass')
-rw-r--r-- | meta/classes/cpan_build.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/cpan_build.bbclass b/meta/classes/cpan_build.bbclass index 9a2ad895ef..f3fb4666ef 100644 --- a/meta/classes/cpan_build.bbclass +++ b/meta/classes/cpan_build.bbclass | |||
@@ -7,14 +7,15 @@ EXTRA_CPAN_BUILD_FLAGS ?= "" | |||
7 | 7 | ||
8 | # Env var which tells perl if it should use host (no) or target (yes) settings | 8 | # Env var which tells perl if it should use host (no) or target (yes) settings |
9 | export PERLCONFIGTARGET = "${@is_target(d)}" | 9 | export PERLCONFIGTARGET = "${@is_target(d)}" |
10 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" | 10 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}" |
11 | export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${@get_perl_version(d)}/" | 11 | export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl5/${@get_perl_version(d)}/" |
12 | export PERLHOSTARCHLIB = "${STAGING_LIBDIR_NATIVE}/perl5/${@get_perl_version(d)}/${@get_perl_hostarch(d)}/" | ||
12 | export LD = "${CCLD}" | 13 | export LD = "${CCLD}" |
13 | 14 | ||
14 | cpan_build_do_configure () { | 15 | cpan_build_do_configure () { |
15 | if [ "${@is_target(d)}" = "yes" ]; then | 16 | if [ "${@is_target(d)}" = "yes" ]; then |
16 | # build for target | 17 | # build for target |
17 | . ${STAGING_LIBDIR}/perl/config.sh | 18 | . ${STAGING_LIBDIR}/perl5/config.sh |
18 | fi | 19 | fi |
19 | 20 | ||
20 | perl Build.PL --installdirs vendor --destdir ${D} \ | 21 | perl Build.PL --installdirs vendor --destdir ${D} \ |