[oe-commits] Richard Purdie : base.bbclass: Detect recipes where there are problems with staging functions after staging upgrades

git version control git at git.openembedded.org
Wed Nov 11 13:52:21 UTC 2009


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

Author: Richard Purdie <rpurdie at linux.intel.com>
Date:   Wed Nov 11 13:52:02 2009 +0000

base.bbclass: Detect recipes where there are problems with staging functions after staging upgrades

Signed-off-by: Richard Purdie <rpurdie at linux.intel.com>

---

 classes/base.bbclass |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index aa1037e..e4fc2ac 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -1085,6 +1085,8 @@ python do_populate_staging () {
     if legacy:
         bb.data.setVar("SYSROOT_DESTDIR", "", d)
         bb.note("Legacy staging mode for %s" % bb.data.getVar("FILE", d, True))
+        if bb.data.getVarFlags('do_stage', d) is None:
+            bb.fatal("This recipe (%s) has a do_stage_prepend or do_stage_append and do_stage now doesn't exist. Please rename this to do_stage()" % bb.data.getVar("FILE", d, True))
         lock = bb.utils.lockfile(lockfile)
         bb.build.exec_func('do_stage', d)
         bb.build.exec_func('populate_staging_prehook', d)
@@ -1248,6 +1250,9 @@ python () {
     base_after_parse(d)
     if is_legacy_staging(d):
         bb.debug(1, "Legacy staging mode for %s" % bb.data.getVar("FILE", d, True))
+        if bb.data.getVarFlags('do_stage', d) is None:
+            bb.error("This recipe (%s) has a do_stage_prepend or do_stage_append and do_stage now doesn't exist. Please rename this to do_stage()" % bb.data.getVar("FILE", d, True))
+
 }
 
 def check_app_exists(app, d):





More information about the Openembedded-commits mailing list