cpan.bbclass: Stop the cpan modules which ask you to confirm the
authorJamie Lenehan <lenehan@twibble.org>
Wed, 2 May 2007 02:14:14 +0000 (02:14 +0000)
committerJamie Lenehan <lenehan@twibble.org>
Wed, 2 May 2007 02:14:14 +0000 (02:14 +0000)
configuration from hanging bitbake. They expect you to press y to indicate
that you are ok with the configuration. For some reason there was no problem
in bitbake 1.6 but this caused hangs in do_configure with bitbake 1.8.

classes/cpan.bbclass

index 410a1c6..be08c84 100644 (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