bitbake: Switch to use subprocess for forking tasks and FAKEROOTENV to run shell and python under a fakeroot environment

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2010-08-16 16:37:29 +01:00
parent a45e1d54e1
commit b6bfe14205
7 changed files with 198 additions and 109 deletions

View File

@@ -70,12 +70,16 @@ class BBCooker:
self.cache = None
self.bb_cache = None
self.server = server.BitBakeServer(self)
if server:
self.server = server.BitBakeServer(self)
self.configuration = configuration
self.configuration.data = bb.data.init()
if not server:
bb.data.setVar("BB_WORKERCONTEXT", "1", self.configuration.data)
bb.data.inheritFromOS(self.configuration.data)
self.parseConfigurationFiles(self.configuration.file)
@@ -544,7 +548,6 @@ class BBCooker:
bb.event.fire(bb.event.ConfigParsed(), self.configuration.data)
except IOError as e:
bb.msg.fatal(bb.msg.domain.Parsing, "Error when parsing %s: %s" % (files, str(e)))
except bb.parse.ParseError as details: