Skip to contentSkip to conversation

sstate.bbclass: apply proper umask when fetching from SSTATE_MIRROR

PATCH Rasmus Villemoes 1 participant 1 message Jun 13, 2025 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 11 lines · Rasmus Villemoes via lists.openembedded.org

From: Rasmus Villemoes <[email protected]>

Currently, files and directories created under ${SSTATE_DIR} when fetching from an sstate mirror are not created with group write, unlike when the sstate artifacts are generated locally. That's inconsistent, and problematic when the local sstate dir is shared among multiple users.

Wrap the fetching in a bb.utils.umask() context manager, and for simplicity move the mkdir of SSTATE_DIR inside that.

Ping.