[OE-core] Directory permissions and ownership -- RFC

Phil Blundell pb at pbcl.net
Tue Jun 21 21:58:54 UTC 2011


On Tue, 2011-06-21 at 22:52 +0100, Phil Blundell wrote:
> On Tue, 2011-06-21 at 16:41 -0500, Mark Hatle wrote:
> > Unfortunately it won't work as the umask would only be set in the "mytask" -
> > task.  It needs to be set in all of the do_install and do_package tasks.
> > 
> > The only way to do this (from what Chris L told me) is to setup an event handler
> > and set the umask when we get into specific events.  I'm not sure if I could
> > correctly capture do_install and later.. plus if someone did what you are
> > mentioning, then it would no longer be in the umask 022.
> 
> I think you could probably fix do_install by wrapping it in a python
> method.  That is, something along the lines of:

Or, I guess, if you were prepared to countenance patching bitbake, just
set:

do_install[umask] = 022

and arrange for the right things to happen.  That might not be so awful.

p.






More information about the Openembedded-core mailing list