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.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.bbclass')
-rw-r--r-- | meta/classes/cpan.bbclass | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/meta/classes/cpan.bbclass b/meta/classes/cpan.bbclass index 511fe3fb92..e9908ae4b8 100644 --- a/meta/classes/cpan.bbclass +++ b/meta/classes/cpan.bbclass | |||
@@ -10,10 +10,11 @@ EXTRA_PERLFLAGS ?= "" | |||
10 | export PERLCONFIGTARGET = "${@is_target(d)}" | 10 | export PERLCONFIGTARGET = "${@is_target(d)}" |
11 | 11 | ||
12 | # Env var which tells perl where the perl include files are | 12 | # Env var which tells perl where the perl include files are |
13 | export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}/CORE" | 13 | export PERL_INC = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}/CORE" |
14 | export PERL_LIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" | 14 | export PERL_LIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}" |
15 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version(d)}" | 15 | export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/${@get_perl_version(d)}/${@get_perl_arch(d)}" |
16 | export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${@get_perl_version(d)}/" | 16 | export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl5/${@get_perl_version(d)}/" |
17 | export PERLHOSTARCHLIB = "${STAGING_LIBDIR_NATIVE}/perl5/${@get_perl_version(d)}/${@get_perl_hostarch(d)}/" | ||
17 | 18 | ||
18 | cpan_do_configure () { | 19 | cpan_do_configure () { |
19 | yes '' | perl ${EXTRA_PERLFLAGS} Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 PERL=$(which perl) ${EXTRA_CPANFLAGS} | 20 | yes '' | perl ${EXTRA_PERLFLAGS} Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 PERL=$(which perl) ${EXTRA_CPANFLAGS} |
@@ -27,7 +28,7 @@ cpan_do_configure () { | |||
27 | [ -e Makefile ] || bbfatal "No Makefile was generated by Makefile.PL" | 28 | [ -e Makefile ] || bbfatal "No Makefile was generated by Makefile.PL" |
28 | 29 | ||
29 | if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then | 30 | if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then |
30 | . ${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/config.sh | 31 | . ${STAGING_LIBDIR}${PERL_OWN_DIR}/perl5/config.sh |
31 | # Use find since there can be a Makefile generated for each Makefile.PL | 32 | # Use find since there can be a Makefile generated for each Makefile.PL |
32 | for f in `find -name Makefile.PL`; do | 33 | for f in `find -name Makefile.PL`; do |
33 | f2=`echo $f | sed -e 's/.PL//'` | 34 | f2=`echo $f | sed -e 's/.PL//'` |