classes/sanity.bbclass: Check stty settings and complain when tostop is present
authorHolger Freyther <zecke@selfish.org>
Fri, 17 Aug 2007 22:18:29 +0000 (22:18 +0000)
committerHolger Freyther <zecke@selfish.org>
Fri, 17 Aug 2007 22:18:29 +0000 (22:18 +0000)
tostop is known to make bitbake-1.8 processes hang. Make the user aware of the
upcoming issue and propose a solution to this problem.

classes/sanity.bbclass

index 479abce..33cdae3 100644 (file)
@@ -90,7 +90,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 bzip2 tar gzip gawk md5sum"
+       required_utilities = "patch help2man diffstat texi2html makeinfo cvs svn bzip2 tar gzip gawk md5sum stty"
 
        for util in required_utilities.split():
                if not check_app_exists( util, e.data ):
@@ -109,6 +109,11 @@ def check_sanity(e):
        if not oes_bb_conf:
                messages = messages + 'You do not include OpenEmbeddeds version of conf/bitbake.conf\n'
 
+     # Check if the terminal has stty +tostop
+       if "tostop" in os.popen("stty").read():
+               messages = messages + "You have tostop in your stty terminal setting. This will make BitBake hang when executing. Execute stty -tostop fix this.\n"
+
        if messages != "":
                raise_sanity_error(messages)