diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2007-07-29 21:23:19 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2007-07-29 21:23:19 +0000 |
commit | d36084001d8e5c40a8f75338c293f0ca99880b85 (patch) | |
tree | c6799e8848ac184735fc0614b9c566677913cf3d /classes/sanity.bbclass | |
parent | 6e06e5879e2cfb4d66001f0df10d22a1120e617a (diff) |
sanity.bbclass: Run sanity checker after configuration parsing for bitbake > 1.8.6
Diffstat (limited to 'classes/sanity.bbclass')
-rw-r--r-- | classes/sanity.bbclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index a0da0667dd..cd3b5efbfe 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -89,7 +89,7 @@ def check_sanity(e): if not check_app_exists('${BUILD_PREFIX}g++', e.data): missing = missing + "C++ Compiler (${BUILD_PREFIX}g++)," - required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn git bzip2 tar gzip gawk md5sum bison" + required_utilities = "patch diffstat texi2html makeinfo cvs svn git bzip2 tar gzip gawk md5sum bison" for util in required_utilities.split(): if not check_app_exists( util, e.data ): @@ -111,6 +111,16 @@ python check_sanity_eventhandler() { from bb import note, error, data, __version__ from bb.event import getName + try: + from distutils.version import LooseVersion + except ImportError: + def LooseVersion(v): print "WARNING: sanity.bbclass can't compare versions without python-distutils"; return 1 + + if (LooseVersion(bb.__version__) > LooseVersion("1.8.6")): + if getName(e) == "ConfigParsed": + check_sanity(e) + return NotHandled + if getName(e) == "BuildStarted": check_sanity(e) |