]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
sstate: Fix dir ownership issues in SSTATE_DIR
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 10 Dec 2023 09:33:17 +0000 (09:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 Dec 2023 11:14:29 +0000 (11:14 +0000)
commitae642a4b038c6946e6c8aa9778bf09099d938a31
tree397ac256308b76e555b6597b32f3a811b85ffc89
parent380631797f0d63124a8c21efa93ab672dbd79283
sstate: Fix dir ownership issues in SSTATE_DIR

We currently use mkdir -p to create missing parent directories within SSTATE_DIR.
Reading the man page for mkdir mentions that parent directories are created with
the current umask, *not* the mode passed upon the commandline.

We could fix this by setting and resetting the umask but since we already have
decent python code able to do this, move to using that injecting a python function
into the chain of functions already present.

This should help fix the occasional sstate directory creation with the wrong
permissions.

[YOCTO #14385]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/sstate.bbclass