[oe-commits] Roman I Khimov : cpan_build: adapt to new staging for native

git version control git at git.openembedded.org
Wed Mar 24 17:24:12 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 243f90253fdf8c69821d5328c1073a69277a1194
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=243f90253fdf8c69821d5328c1073a69277a1194

Author: Roman I Khimov <khimov at altell.ru>
Date:   Thu Mar 18 18:29:38 2010 +0300

cpan_build: adapt to new staging for native

Signed-off-by: Roman I Khimov <khimov at altell.ru>

---

 classes/cpan_build.bbclass |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/classes/cpan_build.bbclass b/classes/cpan_build.bbclass
index 899c401..56f5816 100644
--- a/classes/cpan_build.bbclass
+++ b/classes/cpan_build.bbclass
@@ -3,7 +3,7 @@
 #
 inherit cpan-base
 
-INHIBIT_NATIVE_STAGE_INSTALL = "1"
+NATIVE_INSTALL_WORKS = "1"
 
 #
 # We also need to have built libmodule-build-perl-native for
@@ -46,12 +46,8 @@ cpan_build_do_compile () {
 cpan_build_do_install () {
 	if [ ${@is_target(d)} == "yes" ]; then
 		perl Build install
-	fi
-}
-
-do_stage_append () {
-	if [ ${@is_target(d)} == "no" ]; then
-		perl Build install
+	else
+		perl Build install destdir="${WORKDIR}/image"
 	fi
 }
 





More information about the Openembedded-commits mailing list