Skip to contentSkip to conversation

bitbake: only check that /dev/shm is writable on Linux

PATCH In review Ross Burton 2 participants 3 messages Jan 21, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: only check that /dev/shm is writable on Linux

---
 bitbake/bin/bitbake |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
bitbake/bin/bitbake +2 -2
index d46c3dd..49efdf1 100755
@@ -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
Signature · 1 line
1.7.10.4
#1 lore raw

bitbake/bin/bitbake from bb import cookerdata · line 48

Quoted 4 lines · Ross Burton
bitbake/bin/bitbake +2 -2
-# 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):

Cool! On what other platforms does bitbake work?

#2 lore raw
Quoted 2 lines · Trevor Woerner

Cool! On what other platforms does bitbake work?

I've been experimenting with OS X. I'm not sure I'd use the word "work". Well, bitbake works - but oe-core can't bootstrap the toolchain.

(poky-contrib:ross/darwin)

Ross