poky/meta/classes-global
Rasmus Villemoes 344bc2f1c2 sstate: apply proper umask when fetching from SSTATE_MIRROR
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.

(From OE-Core rev: e56aa6c62e41667d0eeec5a862b7004d21b4da48)

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a6038553aaef3b88b834a09018c524c4fa41e625)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
2025-07-04 07:50:16 -07:00
..
base.bbclass base: Fix PACKAGECONFIG handling for cross recipes 2025-02-18 22:53:45 +00:00
buildstats.bbclass buildstats: Avoid rare UnboundLocalError 2025-03-03 18:01:29 +00:00
debian.bbclass package/package_write: Improve packagedata code location 2023-11-08 10:56:35 +00:00
devshell.bbclass devshell: Do not add scripts/git-intercept to PATH 2023-02-10 09:25:44 +00:00
insane.bbclass insane.bbclass: Report all invalid PACKAGECONFIGs for a recipe at once 2025-05-14 08:33:40 -07:00
license.bbclass classes-global/license: Move functions to library code 2024-10-25 15:37:10 +01:00
logging.bbclass classes/logging: Added the bbverbnote command to the logging set 2025-01-20 13:38:59 +00:00
mirrors.bbclass mirrors: rationalise Debian mirrors 2025-03-06 11:16:46 +00:00
package_deb.bbclass package/package_write: Improve packagedata code location 2023-11-08 10:56:35 +00:00
package_ipk.bbclass package_ipk: Use preferred form of --force-postinstall 2025-02-11 11:44:19 +00:00
package_pkgdata.bbclass classes: Update classes to match new bitbake class scope functionality 2022-08-12 15:27:17 +01:00
package_rpm.bbclass package_rpm.bbclass: Remove empty build directory 2025-07-04 07:50:16 -07:00
package.bbclass lib/package: Check incompatible licenses at packaging time 2024-10-25 15:37:10 +01:00
packagedata.bbclass classes: Update classes to match new bitbake class scope functionality 2022-08-12 15:27:17 +01:00
patch.bbclass patch.bbclass: Make use of oe.patch.GitApplyTree.commitIgnored() 2024-02-19 16:03:22 +00:00
retain.bbclass classes: add new retain class for retaining build results 2024-08-03 07:56:10 +01:00
sanity.bbclass sanity: Check if the C++ toolchain supports --std=gnu++20 2025-03-20 17:49:16 +00:00
sstate.bbclass sstate: apply proper umask when fetching from SSTATE_MIRROR 2025-07-04 07:50:16 -07:00
staging.bbclass classes/recipes: Switch virtual/XXX-gcc to virtual/cross-cc (and c++/binutils) 2025-01-21 23:09:33 +00:00
uninative.bbclass uninative: Add pthread linking workaround 2024-03-19 15:25:12 +00:00
utility-tasks.bbclass classes/utility-tasks: port do_listtasks to use bb.build.listtasks 2024-12-12 13:31:27 +00:00
utils.bbclass kernel-yocto: make kernel commits reproducible 2025-01-21 13:26:07 +00:00
yocto-check-layer.bbclass yocto-check-layer: expand to cover all required QA checks 2024-12-03 11:42:35 +00:00