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:47:36 +0000 (08:47 -0800)
commit8606f39b952c4fa1afc93a42843c6e22ecffba19
tree725f27dceef6e0b118d0f5254def905c43bf97e9
parent75f885eb337c359d9d241b08669163a9d85c033a
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]

(From OE-Core rev: 0a2662a48eaf0487db043c348e2834bb9cdd0466)

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