From: Phil Blundell Date: Tue, 25 Sep 2012 21:33:01 +0000 (+0100) Subject: cpan_build: Unify directory layout for native and target builds X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2637809901aca14f1fe8367ba0a081aaf470df05;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cpan_build: Unify directory layout for native and target builds There seems to be no benefit in having them be different and this appears to cause a certain amount of confusion about paths for the native modules. (From OE-Core rev: 3926a45a26c2d23d9c2fc9c3956f780f607ec7a4) Signed-off-by: Phil Blundell Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/classes/cpan_build.bbclass b/meta/classes/cpan_build.bbclass index 36ffc56b854..080960212df 100644 --- a/meta/classes/cpan_build.bbclass +++ b/meta/classes/cpan_build.bbclass @@ -23,8 +23,9 @@ cpan_build_do_configure () { if [ ${@is_target(d)} == "yes" ]; then # build for target . ${STAGING_LIBDIR}/perl/config.sh + fi - perl Build.PL --installdirs vendor \ + perl Build.PL --installdirs vendor \ --destdir ${D} \ --install_path lib="${datadir}/perl" \ --install_path arch="${libdir}/perl" \ @@ -32,10 +33,6 @@ cpan_build_do_configure () { --install_path bin=${bindir} \ --install_path bindoc=${mandir}/man1 \ --install_path libdoc=${mandir}/man3 - else - # build for host - perl Build.PL --installdirs site --destdir ${D} - fi } cpan_build_do_compile () {