]> code.ossystems Code Review - openembedded-core.git/commit
devshell.bbclass: Allow running devshell and fakeroot together
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Feb 2013 13:19:50 +0000 (13:19 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Feb 2013 16:36:54 +0000 (08:36 -0800)
commit0a2662a48eaf0487db043c348e2834bb9cdd0466
tree0f040f1db818c5054b0e807fe173d80d9c2b45a6
parent41437aaac0cfc6f931d3b2974d380f20ec01f6e8
devshell.bbclass: Allow running devshell and fakeroot together

Currently its hard to run a devshell complete with fakeroot context. This
patch allows the fakeroot flag on the task to do this, as with any other
task. Since we may need to start X terminal applications, we need to
only start the fakeroot session on the final command, hence the hoops
this code jumps through.

As always with fakeroot, you can break out and run a command without
the fake permissions with syntax like "PSEUDO_UNLOAD=1 <command>"

[YOCTO #3374]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/devshell.bbclass
meta/classes/terminal.bbclass