[bitbake-devel] [PATCH] bitbake: only check that /dev/shm is writable on Linux

Ross Burton ross.burton at intel.com
Wed Jan 21 14:13:38 UTC 2015


Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 bitbake/bin/bitbake |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index d46c3dd..49efdf1 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -44,8 +44,8 @@ from bb import cookerdata
 __version__ = "1.25.0"
 logger = logging.getLogger("BitBake")
 
-# Python multiprocessing requires /dev/shm
-if not os.access('/dev/shm', os.W_OK | os.X_OK):
+# Python multiprocessing requires /dev/shm on Linux
+if sys.platform.startswith('linux') and not os.access('/dev/shm', os.W_OK | os.X_OK):
     sys.exit("FATAL: /dev/shm does not exist or is not writable")
 
 # Unbuffer stdout to avoid log truncation in the event
-- 
1.7.10.4




More information about the bitbake-devel mailing list