summaryrefslogtreecommitdiff
path: root/classes/recipe_sanity.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/recipe_sanity.bbclass')
-rw-r--r--classes/recipe_sanity.bbclass14
1 files changed, 7 insertions, 7 deletions
diff --git a/classes/recipe_sanity.bbclass b/classes/recipe_sanity.bbclass
index d929da6319..bb60ffa00e 100644
--- a/classes/recipe_sanity.bbclass
+++ b/classes/recipe_sanity.bbclass
@@ -1,16 +1,16 @@
def __note(msg, d):
bb.note("%s: recipe_sanity: %s" % (d.getVar("P", 1), msg))
-__recipe_sanity_badtargetvars = "RDEPENDS RPROVIDES"
-def bad_target_vars(cfgdata, d):
+__recipe_sanity_badruntimevars = "RDEPENDS RPROVIDES RRECOMMENDS RCONFLICTS"
+def bad_runtime_vars(cfgdata, d):
if bb.data.inherits_class("native", d) or \
bb.data.inherits_class("cross", d):
return
- for var in d.getVar("__recipe_sanity_badtargetvars", 1).split():
+ for var in d.getVar("__recipe_sanity_badruntimevars", 1).split():
val = d.getVar(var, 0)
if val and val != cfgdata.get(var):
- __note("%s should not be set, but is set to '%s'" % (var, val), d)
+ __note("%s should be %s_${PN}" % (var, var), d)
__recipe_sanity_reqvars = "DESCRIPTION"
__recipe_sanity_reqdiffvars = "LICENSE"
@@ -51,7 +51,7 @@ def can_use_autotools_base(cfgdata, d):
if not bb.data.inherits_class("autotools", d):
return False
- for i in ["autoreconf"] + ["%s_do_configure" % cls for cls in ["gnome", "e", "autotools", "autotools_stage", "efl", "gpephone", "openmoko", "openmoko2", "xfce", "xlibs"]]:
+ for i in ["autoreconf"] + ["%s_do_configure" % cls for cls in ["gnomebase", "gnome", "e", "autotools", "efl", "gpephone", "openmoko", "openmoko2", "xfce", "xlibs"]]:
if cfg.find(i) != -1:
return False
@@ -133,7 +133,7 @@ python do_recipe_sanity () {
can_remove_others(p, cfgdata, d)
var_renames_overwrite(cfgdata, d)
req_vars(cfgdata, d)
- bad_target_vars(cfgdata, d)
+ bad_runtime_vars(cfgdata, d)
}
do_recipe_sanity[nostamp] = "1"
#do_recipe_sanity[recrdeptask] = "do_recipe_sanity"
@@ -150,7 +150,7 @@ python recipe_sanity_eh () {
from bb.event import getName
if getName(e) != "ConfigParsed":
- return NotHandled
+ return
d = e.data