summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/cpan.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass
index 687dbcd1cb..be08c84379 100644
--- a/classes/cpan.bbclass
+++ b/classes/cpan.bbclass
@@ -4,7 +4,7 @@
FILES_${PN} += '${libdir}/perl5 ${datadir}/perl5'
EXTRA_CPANFLAGS ?= ""
-DEPENDS += "perl-native"
+DEPENDS += "perl perl-native"
RDEPENDS += "perl"
# Determine the staged version of perl from the perl configuration file
@@ -54,7 +54,7 @@ PERLLIBDIRS = "${@perl_get_libdirs(d)}"
export PERLCONFIGTARGET = "${@is_target(d)}"
cpan_do_configure () {
- perl Makefile.PL ${EXTRA_CPANFLAGS}
+ yes '' | perl Makefile.PL ${EXTRA_CPANFLAGS}
if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
. ${STAGING_DIR}/${TARGET_SYS}/perl/config.sh
if [ "${IS_NEW_PERL}" = "yes" ]; then