summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-05-09 11:22:26 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-09 14:14:12 +0100
commitfd8dcd7b88925dbb8203b0d2ec6ac62fe667676c (patch)
treee34eda191946669b2f55cfefc0dbb0f22bdcc206 /bitbake
parenta189ec4ae74022fddfb5e1b13c4747bb891e3c6b (diff)
downloadpoky-fd8dcd7b88925dbb8203b0d2ec6ac62fe667676c.tar.gz
bitbake: bin/bitbake: add a check for /dev/shm existing
Python multiprocessing needs /dev/shm, and if it doesn't exist (e.g. in a chroot environment) or is not writable, you'll get "OSError: [Errno 38] Function not implemented" or "OSError: [Errno 13] Permission denied" with a traceback, which doesn't really help to explain what is wrong. Implements [YOCTO #4407]. (Bitbake rev: e7460d01f281f913a94192e1f4bd20688164bdd4) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/bin/bitbake4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index e05ff5bd38..1f9bbc4039 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -43,6 +43,10 @@ from bb import server
43__version__ = "1.19.0" 43__version__ = "1.19.0"
44logger = logging.getLogger("BitBake") 44logger = logging.getLogger("BitBake")
45 45
46# Python multiprocessing requires /dev/shm
47if not os.access('/dev/shm', os.W_OK | os.X_OK):
48 sys.exit("FATAL: /dev/shm does not exist or is not writable")
49
46# Unbuffer stdout to avoid log truncation in the event 50# Unbuffer stdout to avoid log truncation in the event
47# of an unorderly exit as well as to provide timely 51# of an unorderly exit as well as to provide timely
48# updates to log files for use with tail 52# updates to log files for use with tail