Skip to contentSkip to conversation

cpan_build/bbclass: add perl to DEPENDS with target override

PATCH New Hongxu Jia 1 participant 2 messages Nov 7, 2015

lore
Share & tools
lore

Hongxu Jia

author
#0 lore raw

cover cpan_build/bbclass: add perl to DEPENDS with target override

Build libhtml-tree-perl from a fresh environment, there was a failure:
...
| tmp/work/corei7-64-wrs-linux/libhtml-tree-perl/5.03-r0/temp/do_configure/ run.do_configure.156882: line 112: tmp/sysroots/intel-x86-64/usr/lib64/ perl/config.sh: No such file or directory
...

The config.sh was provided by perl.

//Hongxu

The following changes since commit fc45deac89ef63ca1c44e763c38ced7dfd72cbe1:

build-appliance-image: Update to jethro head revision (2015-11-03 14:03:03 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib hongxu/perl
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/perl

Hongxu Jia (1):
cpan_build/bbclass: add perl to DEPENDS with target override

 meta/classes/cpan_build.bbclass | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 cpan_build/bbclass: add perl to DEPENDS with target override

While build for target at task cpan_build_do_configure, it requires ${STAGING_LIBDIR}/perl/config.sh which is provided by perl. So add perl to DEPENDS with target override.

---
 meta/classes/cpan_build.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/cpan_build.bbclass +1 -0
index fac074d..9bfe334 100644
@@ -11,6 +11,7 @@ export PERL_ARCHLIB = "${STAGING_LIBDIR}${PERL_OWN_DIR}/perl/${@get_perl_version
 export PERLHOSTLIB = "${STAGING_LIBDIR_NATIVE}/perl-native/perl/${@get_perl_version(d)}/"
 export LD = "${CCLD}"
 
+DEPENDS_append_class-target = " perl"
 cpan_build_do_configure () {
 	if [ "${@is_target(d)}" = "yes" ]; then
 		# build for target
Signature · 1 line
1.9.1