[oe-commits] org.oe.dev classes/sanity.bbclass: Check stty settings and complain when tostop is present

freyther commit openembedded-commits at lists.openembedded.org
Fri Aug 17 22:30:54 UTC 2007


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.

Author: freyther at openembedded.org
Branch: org.openembedded.dev
Revision: 5f324e98b61ec50554d929eb59723aaef495ef64
ViewMTN: http://monotone.openembedded.org/revision.psp?id=5f324e98b61ec50554d929eb59723aaef495ef64
Files:
1
classes/sanity.bbclass
Diffs:

#
# mt diff -r7250bdd6a1b59d9f741ef363a1896ead2b82e4c0 -r5f324e98b61ec50554d929eb59723aaef495ef64
#
# 
# 
# patch "classes/sanity.bbclass"
#  from [808f5e34043a37c456f2b223aace94f414b22349]
#    to [994303fc1fb3b4f460621e0ee691d88588acaf70]
# 
============================================================
--- classes/sanity.bbclass	808f5e34043a37c456f2b223aace94f414b22349
+++ classes/sanity.bbclass	994303fc1fb3b4f460621e0ee691d88588acaf70
@@ -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)
 






More information about the Openembedded-commits mailing list