From 06e6bf2f4dd1d7cd4882a3bf935c31968744b758 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Fri, 17 Aug 2007 22:18:29 +0000 Subject: classes/sanity.bbclass: Check stty settings and complain when tostop is present 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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/sanity.bbclass b/classes/sanity.bbclass index 479abce7fa..33cdae33ac 100644 --- a/classes/sanity.bbclass +++ b/classes/sanity.bbclass @@ -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) -- cgit v1.2.3